Shoutbox

Multiple Accounts - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Multiple Accounts (/showthread.php?tid=63824)

Multiple Accounts by bigbob85 on 07-23-2006 at 02:10 AM

Is MP!L going to support a feature, where I can have a certain script enabled, where-as my brother dosnt have any of them enabled?

Or would I like have to install WLM into a seperate directory for my brother?
(He hates all my scirpts :P)


RE: Multiple Accounts by John Anderton on 07-25-2006 at 06:55 PM

quote:
Originally posted by bigbob85
Is MP!L going to support a feature, where I can have a certain script enabled, where-as my brother dosnt have any of them enabled?

Or would I like have to install WLM into a seperate directory for my brother?
(He hates all my scirpts :P)
I thought the script settings are based on the passport settings meaning that you could install all the scripts you want just like him but only the ones you enabled will be the ones working ... this is what i feel :)
If it is not this way then imo it should be :)
RE: Multiple Accounts by Sunshine on 07-25-2006 at 07:14 PM

No, scripts are global and loaded for all unless the scripter included enabling/disabling per account.

Also see IDEA: Scripts should be able to activate / disable them on a per user basis

Edit: you're welcome ;)


RE: Multiple Accounts by John Anderton on 07-25-2006 at 07:24 PM

quote:
Originally posted by Sunshine
No, scripts are global and loaded for all unless the scripter included the option for enabling/disabling per account.
Ok i didnt know that. Thanks sushi :)
RE: Multiple Accounts by bigbob85 on 07-26-2006 at 12:38 AM

I think ill just go mod all my scripts then... :D


RE: Multiple Accounts by Squelettor on 07-26-2006 at 01:42 AM

What you can do :

In all your script :

on the top :

code:
var email_authorized = new Array("example@truc.fr");
var authorized;


in the OnEvent_Signin (creat it if don't exist)

code:
function OnEvent_Signin(Email)
{
      authorized = false;
      for (var i =0; i<email_authorized.length;i++)
      {
            if (email_authorized[i] ==Messenger.MyEmail)
            {
                   authorized = true:
                   break;
            }
            return;
      }

       //real code of the OnEvent_Signin...
}


and in all the function OnEvent, on the top :

code:
function OnEvent_XXXXXX(....)
{
             if (!authorized)
            {
                   return;
            }

           //real code of the OnEvent_XXXX...
}


If you have a lot of script, It can be long but you just have make this juste 1 on time ^^


Squelettor
RE: Multiple Accounts by qgroessl on 07-26-2006 at 02:23 AM

is it possible to make one script, that would enable/disable all scripts for a user?... or something...

Like... User A wants scripts User B doesn't

Both users have the scripts globally... and then when User A signs in, the scripts disableing script wouldn't start... but then when User B signs in, it would disable all scripts.


RE: Multiple Accounts by bigbob85 on 07-26-2006 at 02:28 AM

Im not sure UTI.
But what i might do, is mod all my scripts, but make them make a ini config file. And have that stored just n the /scripts/ directory. And it will be like.
email=bigbob85@vizzed.com
nowplaying=true

email=(other email)
nowplaying=flase

or something like that.
If anyone wants to make it , that'd be super :P


RE: RE: Multiple Accounts by Squelettor on 07-26-2006 at 02:31 AM

quote:
Originally posted by bigbob85
Im not sure UTI.
But what i might do, is mod all my scripts, but make them make a ini config file. And have that stored just n the /scripts/ directory. And it will be like.
email=bigbob85@vizzed.com
nowplaying=true

email=(other email)
nowplaying=flase

or something like that.
If anyone wants to make it , that'd be super :P


And when look you in the ini config file ?? MspPlus look or all your script ??
RE: Multiple Accounts by bigbob85 on 07-26-2006 at 03:36 AM

Id mode all scripts, to check the ini file, to see if they should have this script enabled. And if its not, ill either.
1. Disable the script via JScript (if possible)
or
2. Just not allow the code.

so just in persudo code.
if (checkini(bigbob85@vizzed.com) == true){
show code
}


RE: RE: Multiple Accounts by Squelettor on 07-26-2006 at 10:25 AM

quote:
Originally posted by bigbob85
Id mode all scripts, to check the ini file, to see if they should have this script enabled. And if its not, ill either.
1. Disable the script via JScript (if possible)
or
2. Just not allow the code.

so just in persudo code.
if (checkini(bigbob85@vizzed.com) == true){
show code
}


I think it is not possible ^^