Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Thema gestartet von: jack in Dezember 03, 2004, 09:19:17 NACHMITTAGS

Titel: [BETA] Multiple personas mod
Beitrag von: jack in Dezember 03, 2004, 09:19:17 NACHMITTAGS
I'm working on my forst SMF mod. It's amazing that I posted a load of stuff back in March, and yet have not had time/inclination to actually develop anything till now ::)

Anyways, this mod will allow users to 'become' another user with only two clicks of the mouse. No passwords or hassle etc.
Naturally, it will be up to the admin (or suitably authorised user) what accounts can be used in this way and by whom.
This has been loing on my wish-list, but I only realised a simple way of achieving it earlier this week.

It is of most obvious use fof boards that cater for role-players with online games who prefer users to have an account for each character they use in a game. This is, at least, my primary aim for the mod.
The changeover is only at a single level. That is, if account A can use accounts B and C as personas and account B can use account D as a persona, there is no way for account A to access the resources available to account D.

The version I have working on my board allows all this and seems to work well . The only bad complaints  I've had from my users is the terseness of the interface (the avalable personas list is a quicj hack & slash of the who's online template).

As it is, I still have to implement an interface where then administrator can select what accounts can be used as personas by a specified account. BUt this should not take long (it is a fairly somple dtabase table.

How many people would be interested in this mod? and what extra features would you want?
Titel: Re: Multiple personas mod
Beitrag von: Amacythe in Dezember 03, 2004, 09:25:01 NACHMITTAGS
/me waves her hand.

I'd love to have a simple way for my members who suffer from CMPD (cyber multiple personality disorder)  to switch from one personna to another.

I do have concerns about security in this matter.
Titel: Re: Multiple personas mod
Beitrag von: jack in Dezember 03, 2004, 09:38:51 NACHMITTAGS
It's quite simple :-

Who can become who is controlled by one DB table. This has two fields with user ID numbers. :-

ID_MEMBER -> ID_PERSONA

Which effectively means : ID_MEMBER can become ID_PERSONA.

My mod interrupts just before most of the user data is loaded (but  and checks iafter the user's password has in the cookie is checked). If a 'persona=' parameter is given on the url (and if it is numeric), a session variable is set.

If the sesion variable exisists, the database is checked to see if the 'login' user is allowed to become the 'persona' user. If so, a few extra variables are set-up so SMF knows who the original user is and '$ID_MEMBER' and '$user_settings' are set to match the persona user.  If these don't match, the persona id number is forgotten about and the software behaves as normal.

The rest of the software only references those two data-structures, so the user has effectively switched accounts.
There is no user interface yet to say that 'user x' can use 'user y' as a persona (I am currently just modifying the db with user id numbers as necessary.
The other problem is that the password checks for admin functions and to change some parts of the profile will request the persona's password and not the original user's password. If you asign admin privileges to a user accessed as a persona, then all bets are off.

If you want to try it, I can provide the mod as it is and instructions on how to mod the database (don't even think about it unless you are comfortable editing PHP and making tar files etc.)
Titel: Re: Multiple personas mod
Beitrag von: Justyne in Dezember 03, 2004, 10:08:57 NACHMITTAGS
would be useful for me as I run a rpg board. We would definitely volunteer to test it.

Titel: [BETA] Multiple personas mod
Beitrag von: jack in Dezember 05, 2004, 06:57:21 NACHMITTAGS
OK, I've done a lot of work on this, and it is live on my current board.

It is obviously in BETA status and has only been tested on SMF 1.0(preview).

Once it is installed, users will see a new 'Persona' button on the menu bar. Clicking on that will give them the list of personas that they are allowed to become. Clicking it while they are using a persona will give the list but with a 'Return to Normal' option.

There is an extra admin option on user's accounts which allows the administrator to manage the list of accounts the user can use as a persona. That should be straight-forward to use.

When using a persona,  if you modify the profile and need the password, you should use the password you originally logged in as. You do not need to know the persona's actual password.

There are two additional permissions, neither of which do much useful :-

* Change persona - shows or hides the menu icon. The actual 'magic' occurs before most of the user's info is loaded, so the permissions system isn't accessible.
* Edit available personas - wether the user can change the list af available personas for an account. WARNING there is nothing then stopping the user from adding an admin account to their list. The permission is set-up as a hook for me to add some extra ideas I'm thinking up, but at the moment, it is useless.

Suggested uses :-

* Allowing users to flip between different accounts with different names etc. (eg. to 'become' characters in a RPG)
* Creation of a forum equivilent of Unix's "su" command. In case you sometimes need privileges, but want to avoid accidentally doing stuff with them.

I would be greatful if someone could give it a spin and let me know what they think.

Ta :)
Titel: Re: [BETA] Multiple personas mod
Beitrag von: WolfMan_TC in Mai 19, 2005, 04:30:44 NACHMITTAGS
This was something I was looking for, I didn't realize someone had already been developing one...

Can anyone give me an update for this, because this kind of functionality is just the thing I need!

Thanks in advance for any info!!

WolfMan_TC
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Mai 20, 2005, 12:28:47 NACHMITTAGS
Wow .. a response :o

Looks like I'll have to update/check this to support SMF 1.0.3 (my board with this is still running an old version /me slaps wrist)

I'll get you some confirmation sometime during next week.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: WolfMan_TC in Mai 20, 2005, 01:25:30 NACHMITTAGS
Cool!  I look forward to hearing from you!!

I was seeking such a thing because the board I'm in partnership in running is a gaming board, and to have the ability to have multiple personas, or characters for want of another name, would be ideal to make things that much better for our users!

I'll anxiously await your response!

WolfMan_TC
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Mai 22, 2005, 03:26:56 NACHMITTAGS
I have fixed a minor typo, and it now works against 1.0.3.

I've also added an uninstall option ;)
Titel: Re: [BETA] Multiple personas mod
Beitrag von: WolfMan_TC in Mai 23, 2005, 12:31:27 NACHMITTAGS
Cool, great!!

Now, forgive me for being a complete noob, but how do I 'install' this mod to work?

*grins*  Thanks for any and all help!!

WolfMan
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Mai 23, 2005, 12:45:08 NACHMITTAGS
DON'T !!

(I've just found a nasty bug ;-[)


Actually, I haven't - just me doing something silly
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Mai 23, 2005, 12:57:36 NACHMITTAGS
Goto Admin -> Package Manager.

Then Download new Packages, and use the browse button to upload the tar.gz file.

Then follow the prompts through to completion (note, the screen with lots of 'Success!' lines is not the end screen).

This has only been tested against 1.0.3 (but should work on earlier versions, as it works on the .10 bets releases).
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Seta Soujiro in August 20, 2005, 06:03:33 NACHMITTAGS
I'll have to try it out.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: mennou in August 20, 2005, 06:35:37 NACHMITTAGS
An Error Has Occurred!
Hacking attempt... 


how can i make it work?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 21, 2005, 07:15:39 VORMITTAG
What version of SMF are you using?
What other mods are installed?
Did you get any errors during the mod install?
What were you trying when you got that message?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: mennou in August 21, 2005, 01:50:43 NACHMITTAGS
I was installed your mod man


--------------------------------------------------------------------------------
PersonaMOD0.9.1.tar.gz

my site work but my profile still  not working..  how can i fix  it? i am using  bet a 1.3
check it for urself  www.mixspot.com/forum2/index.php  username  test pass test click profile u will see the error.




Zitat von: jack in August 21, 2005, 07:15:39 VORMITTAG
What version of SMF are you using?
What other mods are installed?
Did you get any errors during the mod install?
What were you trying when you got that message?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 21, 2005, 02:12:38 NACHMITTAGS
looks like you've tried installing the mod twice. See if you can revert back to the old version of Sources/Profile.php

I haven't tested it yet with SMF 1.1 - looks like it doesn't work 'out of the box' ;)

I will put some work into getting it running on 1.1 this week for you :D
Titel: Re: [BETA] Multiple personas mod
Beitrag von: mennou in August 21, 2005, 02:14:41 NACHMITTAGS
i did not make no backup... that's my problem now...
Titel: Re: [BETA] Multiple personas mod
Beitrag von: [Unknown] in August 21, 2005, 03:18:06 NACHMITTAGS
Zitat von: jack in August 21, 2005, 02:12:38 NACHMITTAGS
looks like you've tried installing the mod twice. See if you can revert back to the old version of Sources/Profile.php

I haven't tested it yet with SMF 1.1 - looks like it doesn't work 'out of the box' ;)

I will put some work into getting it running on 1.1 this week for you :D

1.1 does some query sniffing.  If any of your queries end in ;, have comments in them, or have "SET PASSWORD" in them outside a string, you'll need to change them :P.  The idea is to prevent injections.

-[Unknown]
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 21, 2005, 03:20:53 NACHMITTAGS
I don't think that that is the case (I will check things though) - just that the mod has not yet been updated for the changes in files in version 1.1, pacman can't figure out what changes should be made to ModSettings.php and Profile.php.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 21, 2005, 03:41:29 NACHMITTAGS
Ahh, you meant in the code that is executed during Mod install!

/me is enlighened :D
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 21, 2005, 04:34:01 NACHMITTAGS
OK, I have updated this, and done some quick testing on SMF 1.1 Beta 3 and 4.

Should work off a clean install of SMF.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Sai in März 01, 2006, 08:25:58 NACHMITTAGS
Can someone make an update of this mod? I'm really needing it and it is the only thing I could find. I tried installing it, but when I click on the "Assign Available Personas", it says an error occurs and it cannot show me the "edit personas" template.

Much help will be appreciated!
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Gwydion Frost in März 02, 2006, 09:11:38 NACHMITTAGS
I like the concept.

I'd like to see a slightly different tweak on it, however.

What if the board itself would recognize you, and displayed the board appropriate profile/persona for the post...? Thus, once creating the persona, you'd not need to be concerned whether you've posted to the correct place with the correct id, because it would do it for you!
Titel: Re: [BETA] Multiple personas mod
Beitrag von: pjr in März 03, 2006, 03:31:56 NACHMITTAGS
Is this mod still available if so where? even if unsupported I like to use this
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Mai 02, 2006, 07:13:28 NACHMITTAGS
I'm still here .. occasionally :)

The files should be available from various posts in this thread.

Gwydion, I like that idea! I'm not sure when I'll get a chance to work on that, but I'll think on how best to do it.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Dezember 03, 2006, 08:17:40 VORMITTAG
I have just updated this for the 1.1 release, and it now works with the new default theme.

Two things I've noticed :-
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in Dezember 29, 2006, 07:23:23 VORMITTAG
I'm having problems I have Smf 1.1.1 unfornatly it doesn't work as there is no way to switch personas. When I install it I get
Type Action Description
1. Extract File ./Themes/default/images/english/persona.gif 
2. Extract File ./Sources/Personas.php 
3. Extract File ./Themes/default/Personas.template.php 
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Sources/Load.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test successful
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Profile.php Test successful
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Sources/ManagePermissions.php Test failed
12. Execute Code PersonasDB.php

Modify: I fixed the problem it was with my themes index.template.php. I am using Black Rain by Crip so in the interest of helping anybody with similar issues heres what I did. After installing the mod edit index.template.php. This is only through trial and error and observing the differences in coding it may not work with other themes. 
Find
// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

Insert After it
if (allowedTo('personas_change'))
echo '<li><a href="', $scripturl, '?action=personas"><span>' , $txt['personas_menu'] , '</span></a></li>';
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Gwydion Frost in Januar 03, 2007, 07:31:56 VORMITTAG
Zitat von: jack in Mai 02, 2006, 07:13:28 NACHMITTAGSGwydion, I like that idea! I'm not sure when I'll get a chance to work on that, but I'll think on how best to do it.

Well, if you are setting up personas, then they need permissions. And permissions can be set up so that the Board would allow ID "A" or "B" to be the poster...

Thus, one could designate a board as IC or OOC... ;)
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in Mai 17, 2007, 03:55:04 NACHMITTAGS
I'm having another not so serious issue error.
8: Undefined index: persona
/home/content/A/b/a/Abangyarudo/html/NewYork/smf/Sources/Load.php
428

line 428 has this line && (is_numeric($_REQUEST['persona']) || is_numeric($_SESSION['persona']) ) ) {
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in Mai 18, 2007, 07:02:25 VORMITTAG
Aye, I spotted that one recently too (trust me to not look at error logs enough ::)

I'll get that fixed soon.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 11, 2007, 07:25:15 VORMITTAG
Well it only took a couple of moths to get it packaged up ::)

My apologies, work got really crazy for the past few months, meaning I couldn't concentrate on pretty much anything :-/

Oh well, fixed now. This will happily upgrade from 0.9.2

Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in August 11, 2007, 07:45:11 VORMITTAG
Zitat von: jack in August 11, 2007, 07:25:15 VORMITTAG
Well it only took a couple of moths to get it packaged up ::)

My apologies, work got really crazy for the past few months, meaning I couldn't concentrate on pretty much anything :-/

Oh well, fixed now. This will happily upgrade from 0.9.2



np understandable thanks for the update but personally I received an error installing then the error log shows two of the error with a different line number

8: Undefined index: persona
/home/content/A/b/a/Abangyarudo/html/NewYork/smf/Sources/Load.php
473
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 11, 2007, 05:59:17 NACHMITTAGS
What version of SMF are you using?

You should not have recieved any errors during installation.

Can you send me a copy of your Load.php please?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in August 12, 2007, 07:54:29 VORMITTAG
1.1.3 I couldn't find how to attach it with the new site layout I'll try sending in pm
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in August 15, 2007, 01:56:32 NACHMITTAGS
Hmm .. looks like you managed to get the older version installed twice somehow (or at lesat the mod in Load.php is in there twice).

I'll fix your Load.php file and mail it back to you.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in August 15, 2007, 09:32:10 NACHMITTAGS
Zitat von: jack in August 15, 2007, 01:56:32 NACHMITTAGS
Hmm .. looks like you managed to get the older version installed twice somehow (or at lesat the mod in Load.php is in there twice).

I'll fix your Load.php file and mail it back to you.

thanks I apperciate it
Titel: Re: [BETA] Multiple personas mod
Beitrag von: AnnaLee in September 09, 2007, 05:02:24 NACHMITTAGS
Hi,

  Okay, up uploaded the mod to my site, but I don't see a Personas tab or anyplace on the member accounts where I can give permission for accounts to have multiple personas.  However, I am not using the default them and I don't know enough about coding to understand what I'm seeing.  Can someone help?  I'd like to use my forum for an RP game, but I need to make sure they can have multiple accounts for their characters and, if they can, what options they have with those accounts.


Thanks!

Anna
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in September 09, 2007, 07:09:17 NACHMITTAGS
Zitat von: AnnaLee in September 09, 2007, 05:02:24 NACHMITTAGS
Hi,

  Okay, up uploaded the mod to my site, but I don't see a Personas tab or anyplace on the member accounts where I can give permission for accounts to have multiple personas.  However, I am not using the default them and I don't know enough about coding to understand what I'm seeing.  Can someone help?  I'd like to use my forum for an RP game, but I need to make sure they can have multiple accounts for their characters and, if they can, what options they have with those accounts.


Thanks!

Anna


what theme are you using?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: AnnaLee in September 09, 2007, 07:11:20 NACHMITTAGS
Space, designed by simply sibyl. 


Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in September 09, 2007, 07:14:47 NACHMITTAGS
Zitat von: AnnaLee in September 09, 2007, 07:11:20 NACHMITTAGS
Space, designed by simply sibyl. 




I'm not a coding guru but I'll see what I can find out for ya
Titel: Re: [BETA] Multiple personas mod
Beitrag von: AnnaLee in September 09, 2007, 07:15:34 NACHMITTAGS
Thank you! :D

Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in September 09, 2007, 07:17:54 NACHMITTAGS
Zitat von: AnnaLee in September 09, 2007, 07:15:34 NACHMITTAGS
Thank you! :D



do you happen to know where ya found that theme?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: AnnaLee in September 09, 2007, 07:55:42 NACHMITTAGS
I downloaded it from here:

http://custom.simplemachines.org/themes/index.php?lemma=253 (http://custom.simplemachines.org/themes/index.php?lemma=253)



Anna
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in September 09, 2007, 09:03:30 NACHMITTAGS
Zitat von: AnnaLee in September 09, 2007, 07:55:42 NACHMITTAGS
I downloaded it from here:

http://custom.simplemachines.org/themes/index.php?lemma=253 (http://custom.simplemachines.org/themes/index.php?lemma=253)



Anna


do you know how to edit php in a program like dreamweaver or something?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: AnnaLee in September 09, 2007, 09:23:21 NACHMITTAGS
Zitat von: Abangyarudo in September 09, 2007, 09:03:30 NACHMITTAGS

do you know how to edit php in a program like dreamweaver or something?


That I can do, if I know exactly what needs editing and where. :)


Anna
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in September 10, 2007, 03:19:46 NACHMITTAGS
Zitat von: Abangyarudo in Dezember 29, 2006, 07:23:23 VORMITTAG
I'm having problems I have Smf 1.1.1 unfornatly it doesn't work as there is no way to switch personas. When I install it I get
Type Action Description
1. Extract File ./Themes/default/images/english/persona.gif 
2. Extract File ./Sources/Personas.php 
3. Extract File ./Themes/default/Personas.template.php 
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Sources/Load.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test successful
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Profile.php Test successful
10. Execute Modification ./Themes/default/Profile.template.php Test successful
11. Execute Modification ./Sources/ManagePermissions.php Test failed
12. Execute Code PersonasDB.php

Modify: I fixed the problem it was with my themes index.template.php. I am using Black Rain by Crip so in the interest of helping anybody with similar issues heres what I did. After installing the mod edit index.template.php. This is only through trial and error and observing the differences in coding it may not work with other themes. 
Find
// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

Insert After it
if (allowedTo('personas_change'))
echo '<li><a href="', $scripturl, '?action=personas"><span>' , $txt['personas_menu'] , '</span></a></li>';


Anna use the button directions said here make sure to make a copy incase it doesn't work. So if you have any problems ya can just replace it again this was what worked with my theme.
I haven't gotten around to installing that theme on my forum and playing with it.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in Oktober 03, 2007, 02:19:17 NACHMITTAGS
Bug Report:

If a single persona is assigned to two different accounts, and one enters that persona while the other is under the persona as well, the first person is unable to return to normal. The only situation I might see this happening for is if two people share an account, or if it was a staff account, like an NPC.

Also, personas cannot be assigned by user account ID for some reason. Suggest either allowing this or changing the text to say "Enter Persona Account Username" or something like that.

Other than that, good mod. Hope you can get this polished and up on the main SMF mod site. It's a powerful mod.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in Oktober 07, 2007, 03:02:55 NACHMITTAGS
I think thats the purpose of it really. I really don't share accounts in the rp games I work on NPCS are always played by one st well before I had some downtime with school and stopped working on it. As far as the account ID thats interesting. I guess we'll see if the mod designer takes ya advice
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in Oktober 08, 2007, 12:51:06 VORMITTAG
Well, at least it would be good to make sure it's either impossible to log on as a persona if someone else is on it (and active within the whoisonline list parameter) or be able to track who logged on from where.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in Oktober 09, 2007, 02:49:51 VORMITTAG
Zitat von: Eliana Tamerin in Oktober 08, 2007, 12:51:06 VORMITTAG
Well, at least it would be good to make sure it's either impossible to log on as a persona if someone else is on it (and active within the whoisonline list parameter) or be able to track who logged on from where.

maybe he'll add that as a feature but I don't know because I'm not the author if it was meant to handle such things as staff run npcs and etc.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: askaniblue in Oktober 28, 2007, 02:55:30 NACHMITTAGS
Hello! After much hunting someone mentioned your mod. I run an RPG site with a friend so this thing should be awesome for us. I only have a couple questions. Firstly, we're using 1.1.2, so do we have to do anything special to install your mod, and secondly, why isn't it in the mod section of SMF? *pouts at how hard this mod was to find*
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in November 10, 2007, 02:23:57 VORMITTAG
Zitat von: askaniblue in Oktober 28, 2007, 02:55:30 NACHMITTAGS
Hello! After much hunting someone mentioned your mod. I run an RPG site with a friend so this thing should be awesome for us. I only have a couple questions. Firstly, we're using 1.1.2, so do we have to do anything special to install your mod, and secondly, why isn't it in the mod section of SMF? *pouts at how hard this mod was to find*

I'm not the mod's author but its still in beta meaning it either hasn't been submitted or failed their coding tests. Either way its in a testing phase and while it works perfectly for me after some fine tuning it hasn't been guaranteed to work. I personally run it on SMF 1.1.2 without any problems.

EDIT: Fixed spelling mistakes
Titel: Re: [BETA] Multiple personas mod
Beitrag von: askaniblue in November 13, 2007, 12:50:02 VORMITTAG
Thanks for the reply. I'll have to talk to our webmistress and see if we can't get this on our site. It would make everyone really happy.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Abangyarudo in November 13, 2007, 01:48:40 VORMITTAG
Also to clarify my fine tuning was due to my custom theme so its really not the mod's fault.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jkrlvgn in Januar 04, 2008, 11:30:10 NACHMITTAGS
So, I love this mod, but...trying to keep my error log error free...

I'm not sure where this is coming from, but...I've got to be missing something...and...I keep getting this:

8: Use of undefined constant Personas - assumed 'Personas'

.....any ideas?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in April 26, 2008, 08:52:14 VORMITTAG
Hi guys, I've got a bit of time to work on this again. Apologiers for not following the thread more closely - I thought it were dead as I hadn't recieved notifications for it.

Zitat von: Eliana Tamerin in Oktober 03, 2007, 02:19:17 NACHMITTAGSIf a single persona is assigned to two different accounts, and one enters that persona while the other is under the persona as well, the first person is unable to return to normal. The only situation I might see this happening for is if two people share an account, or if it was a staff account, like an NPC.

That's odd, I've not noticed (or been informed) of that on my site - which is used for presicely that, NPC characters for players and staff, I will check it out. I can't think why this would happen, when you say 'cannot return to normal', what happens? is the option just not there.

ZitatAlso, personas cannot be assigned by user account ID for some reason. Suggest either allowing this or changing the text to say "Enter Persona Account Username" or something like that.

Unfortunately, UserIDs are all numerical, if I accepted UserIDs, there would be no way for my code to distingush between an ID and numerical username.

ZitatOther than that, good mod. Hope you can get this polished and up on the main SMF mod site. It's a powerful mod.

Thanks! I have it working on 2.0B3 here now and intend to put that through the formal mod publication process :)
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in April 26, 2008, 08:54:45 VORMITTAG
Zitat von: jkrlvgn in Januar 04, 2008, 11:30:10 NACHMITTAGS
So, I love this mod, but...trying to keep my error log error free...

I'm not sure where this is coming from, but...I've got to be missing something...and...I keep getting this:

8: Use of undefined constant Personas - assumed 'Personas'

.....any ideas?

i thought I had corrected something similar a while ago - what version of the mod are you using?
/me goes off to kick the notification settings.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in April 26, 2008, 09:36:23 VORMITTAG
Zitat von: jack in April 26, 2008, 08:52:14 VORMITTAG
Hi guys, I've got a bit of time to work on this again. Apologiers for not following the thread more closely - I thought it were dead as I hadn't recieved notifications for it.

Zitat von: Eliana Tamerin in Oktober 03, 2007, 02:19:17 NACHMITTAGSIf a single persona is assigned to two different accounts, and one enters that persona while the other is under the persona as well, the first person is unable to return to normal. The only situation I might see this happening for is if two people share an account, or if it was a staff account, like an NPC.

That's odd, I've not noticed (or been informed) of that on my site - which is used for presicely that, NPC characters for players and staff, I will check it out. I can't think why this would happen, when you say 'cannot return to normal', what happens? is the option just not there.

Correct, it does not appear in that situation.

Zitat von: jack in April 26, 2008, 08:52:14 VORMITTAG
ZitatAlso, personas cannot be assigned by user account ID for some reason. Suggest either allowing this or changing the text to say "Enter Persona Account Username" or something like that.

Unfortunately, UserIDs are all numerical, if I accepted UserIDs, there would be no way for my code to distingush between an ID and numerical username.

You have a point there. Another useful feature might be to accept real/display names alongside usernames. Would assist greatly on my site, where the display name field is displayed on registration page for members to take advantage of it.

Zitat von: jack in April 26, 2008, 08:52:14 VORMITTAG
ZitatOther than that, good mod. Hope you can get this polished and up on the main SMF mod site. It's a powerful mod.

Thanks! I have it working on 2.0B3 here now and intend to put that through the formal mod publication process :)

I would love it for 2.0. I haven't upgraded my forums yet, since Tinyportal is still strictly 1.1.4 and won't allow any DIY upgrade tutorials by members. But, in the future, when it decides to play nice and friendly, I should think I'll be upgrading my forums, and I'd love the MPM for 2.0.

One last thing, might be a small aesthetic thing, but why isn't there some kind of submit button for assigning personas? I was thinking of someone who might be on a tablet PC or iPhone with a touch-only interface, and would have no way of assigning personas from that kind of interface.

Anyways, I should say thanks for a great mod. I can't wait to see what improvements you make for it in the future. Thanks for the good work and hard effort!
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in April 26, 2008, 09:45:26 VORMITTAG
Zitat von: Eliana Tamerin in April 26, 2008, 09:36:23 VORMITTAGCorrect, it does not appear in that situation.

Hmm.. I'll check it out.

ZitatYou have a point there. Another useful feature might be to accept real/display names alongside usernames. Would assist greatly on my site, where the display name field is displayed on registration page for members to take advantage of it.

It already uses the standard SMF user search widget. Click on the blue box thing just to the right of the input box and you can search for users using realnames and wildcards.

ZitatOne last thing, might be a small aesthetic thing, but why isn't there some kind of submit button for assigning personas? I was thinking of someone who might be on a tablet PC or iPhone with a touch-only interface, and would have no way of assigning personas from that kind of interface.

Good point. I'll add that.

ZitatAnyways, I should say thanks for a great mod. I can't wait to see what improvements you make for it in the future. Thanks for the good work and hard effort!

You're welcome :)
Titel: Re: [BETA] Multiple personas mod
Beitrag von: jack in April 26, 2008, 10:11:55 VORMITTAG
Hmm. I can't replicate your problem.

Here is what I have done :

Created three accounts, test1 test2 and testpers

Set up two Virtual Machines for the 'users' and am using my live server.


Modified test1 and test2 so that they can both use testpers as a persona.

Logged in as test1 and switched to the testpers persona.
Browsed around.

In a separate VM session, logged into the site as test2 and switched to the testpers persona
Browsed around.

Going back to the first session, I can click on 'Personas' and can see 'Return to Normal' same on the second session.

Is the above the scenario you are experiencing problems?
Do you have any other mods applied to the forum?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Altair in Mai 03, 2008, 07:24:51 NACHMITTAGS
Just posting here so it appears in "New replies to your posts" when I check it. I am very happy that jack is going to upgrade this for 2.0 8D
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in Mai 04, 2008, 01:17:59 VORMITTAG
Ok, I tested it now, and it works. Must have been an older version.

Also, I've been trying to get it to display under the username in the TinyPortal User block. So far, I can only get the "Return to Normal' statement to display on all pages, but not the actual usernames to switch to. The odd thing is, they'll show up in the User block while I'm on the Personas page, but nowhere else.

Any ideas as to how I could get this working? I'm getting undefined index errors on is_persona and personas when I try to do this.

I've attached the code I use for this. It's just ripped from the Personas.template.php file with a few cosmetic alterations. All globals are declared that are on the Personas.template.php page.
if (allowedTo('personas_change'))
  {
    if (count($context['personas'])) {
      echo '<br /><span class="smalltext"><b>Switch to:</b></span>';
      // For every member display their name, time and action (and more for admin).
      foreach ($context['personas'] as $persona) {
         
        echo '
            <br /><span class="smalltext"> <a href="' . $scripturl . '?persona=' . $persona["ID"] . '">' . $persona['name'] . '</a></span>';
      }
    }
    else
    {
      echo '';
    }


    if ($context['persona']['is_persona']) {
    echo '
      <br /><span class="smalltext"<b><a href="' .  $scripturl . '?persona=0">' . $txt['personas_revert'] . '</a></b></span>';
    }
    else
    {
      echo '';
    }
}


I'm thinking it's probably something to do with the declarations in index.php. However, even adding 'personas' => array('Personas.php', 'TPortalBlocks'), doesn't allow it to show up.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Burke ♞ Knight in Mai 04, 2008, 08:54:32 VORMITTAG
I installed the mod, yet can't find anything about it in my forum.
I'm running 1.1.5 and it installed nicely.
However, no settings, no nothing.
Where do I go to see it?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in Mai 04, 2008, 10:22:41 VORMITTAG
Admin CP > Features and Options > Karma. Enable it there.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Burke ♞ Knight in Mai 04, 2008, 06:58:25 NACHMITTAGS
Ok, I got it going.
However, how do I make it so a person can only use their own accounts for personas?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Altair in Mai 08, 2008, 11:05:36 NACHMITTAGS
I never figured that out either. I just have my Mod team take care of it at the members request. That it what they are there for besides watching for trouble. :)

Titel: Re: [BETA] Multiple personas mod
Beitrag von: SanaMV in Mai 16, 2008, 02:47:04 NACHMITTAGS
How do I get this mod?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Noctivagus in Juli 11, 2008, 01:11:23 VORMITTAG
Hi there, I'm a bit new to php and forum building and stuff but I have what I think is a feature request...

Would it be at all possible to link the accounts based on the e-mail address registered with, as, most of the time all of the linked personas belong to the same person... it would kill two birds with one stone on my forum... that being, allowing the use of what looks like an awesome mod, as well, letting members register each time with the same e-mail address.

If this is too difficult or a bad idea please disregard this message as a techno peasant blabbering.

Thanks.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in Juli 11, 2008, 04:19:17 VORMITTAG
I developed a tip for this, Noctivagus. http://www.simplemachines.org/community/index.php?topic=228675.0
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Burke ♞ Knight in Juli 11, 2008, 09:03:25 VORMITTAG
Eliana Tamerin,

Instead of using yout trick, as you do admit there could be problems. (I respect the fact you put those messages in that topic. :) )

I have my own domain, so I just make forwarded email accounts for my members. That way, they can use the forwarded email addresses to register, and any emails sent, gets forwarded to their main account's true email address.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in Juli 11, 2008, 12:19:33 NACHMITTAGS
While I make warnings, I have yet to encounter any security issues while using my mod. I put the warnings up for liability issues, but I use the trick on my own forum, so I would say that it's pretty secure. There's not much somebody can do by registering with your email unless they have access to that email.

However, SlammedDime is currently developing a Sub-Accounts mod that should completely replace the functionality of the MP mod. This is currently being developed for 2.0, but he intends to backport it to 1.1.5 when it's stable. http://www.simplemachines.org/community/index.php?topic=241961.0
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Burke ♞ Knight in Oktober 30, 2008, 09:17:59 VORMITTAG
Is this mod going to be made for SMF 2.0?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Dollie in November 26, 2008, 10:58:29 NACHMITTAGS
Is this currently unsupported? Also, is the most recent code still valid? I tried to install it, however, it gives me a verification error when I attempt to apply the mod.

ZitatSession verification failed. Please try logging out and back in again, and then try again.

Is there anything to be done about it?
Titel: Re: [BETA] Multiple personas mod
Beitrag von: [SiNaN] in Dezember 06, 2008, 11:07:29 VORMITTAG
Yeah, it seems like it is no longer supported. Check this topic though, a similar one:

http://www.simplemachines.org/community/index.php?topic=241961.0
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Esgaroth in August 22, 2011, 11:55:06 NACHMITTAGS
Hello - am VERY new to forum management and not really sure where to begin. I came across this thread by searching for what I could on any suggestions on how to handle multiple registrations on one email address. I have set up my forum as a place for RPG and my users will want to switch to different characters. Ive been reading through this thread and understand that there are methods where I can create a persona switch, but I was curious to know if there were security issues after all with using the mod.  We've been trying to avoid some trolls who know a bit about hacking into sites and we want to keep as strong a security for our forum as possible, but we're also trying to over come the usual RPG problems when it comes to forums. Id like to use the mod if it is viable, but Id also like to hear from someone if there are indeed any security problems by setting up this mod.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in August 23, 2011, 12:58:07 VORMITTAG
This mod is more secure and updated: http://custom.simplemachines.org/mods/index.php?mod=2264
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Esgaroth in August 23, 2011, 04:42:03 NACHMITTAGS
Thank you for the response!
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Snickerz in September 11, 2014, 04:28:32 NACHMITTAGS
Zitat von: Eliana Tamerin in August 23, 2011, 12:58:07 VORMITTAG
This mod is more secure and updated: http://custom.simplemachines.org/mods/index.php?mod=2264

I do believe this is no longer working. I have 2.0.8 and this mod didn't work, but I do really like this idea, so if perhaps there's another one I haven't found, or anyone knows someone that is doing something, or able to do something like this for my version. I'd certainly like to let them know I'm interested.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Eliana Tamerin in September 14, 2014, 06:15:01 NACHMITTAGS
Zitat von: Snickerz in September 11, 2014, 04:28:32 NACHMITTAGS
Zitat von: Eliana Tamerin in August 23, 2011, 12:58:07 VORMITTAG
This mod is more secure and updated: http://custom.simplemachines.org/mods/index.php?mod=2264

I do believe this is no longer working. I have 2.0.8 and this mod didn't work, but I do really like this idea, so if perhaps there's another one I haven't found, or anyone knows someone that is doing something, or able to do something like this for my version. I'd certainly like to let them know I'm interested.

Yeah, sadly it seems like SlammedDime left and no one decided to take over the mod. It's a shame, there's a small community that could make use of it if only someone would take it up. I think someone is writing a similar mod for Elkarte (SMF fork), but I'm not sure if they've released it to the public yet.
Titel: Re: [BETA] Multiple personas mod
Beitrag von: Branko. in September 15, 2014, 07:44:35 VORMITTAG
Hmm... tested on my local 2.0.8
Core Features (http://prntscr.com/4n0qfh)
Profile (http://prntscr.com/4n0rtz)
Manage SubAccounts (http://prntscr.com/4n0s79)
Manage SubAccounts general (http://prntscr.com/4n0tkh)
View SubAccounts (http://prntscr.com/4n0ujr)
General Permissions (http://prntscr.com/4n0vkt)
Members List (http://prntscr.com/4n0t2m)