[BETA] Account Links

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
Locked
Drakkim
Registered User
Posts: 176
Joined: Thu Feb 05, 2004 5:48 am
Contact:

[BETA] Account Links

Post by Drakkim »

MOD Title: Linked Accounts
MOD Description: Link accounts so that users can switch between them
MOD Version: 0.7.9
Tested with: phpBB3 3.0.6 - 3.0.11

MOD Download: Download
phpBB.com Support topic: Account Links

This mod is intended for RP forums, but works for any forum that allows a user to have multiple accounts. It allows a user to link all of his accounts and switch between them without logging out.

The whole thing is designed as a module to minimize changes to the core... only two additions to the the core code and one line placed anywhere in a template file are needed to add the Account Switch box to any page.

Changelog:
8/27/07 Version 0.5.1
Replace some development files were accidentally put into the 0.5.0 archive.

8/27/07 Version 0.5.2 (Downloaded 32 times)
account_switch_form function now uses language variables

10/17/07 Version 0.5.3 (Downloaded 20 times)
  • Updated password checks to use phpbb_hash_check (for phpBB 3.0 RC7)
  • Change all sql_update_limit to sql_update for pgSQL compatibility. The queries should all be specific enough to not need the limit (but the extra load sucks :-/ ) (Thanks mhorst)
  • Fixed autologin cookie issues (Thanks mhorst)
11/27/07 Version 0.5.4 (Downloaded 72 times)
  • updated forms to use $phpbb_root_path instead of assuming a path of './' (broke one of my own wrapper)
  • Corrected a couple typos in the code (Thanks iamgregg)
  • Change Account Switch Form to use a template. (TheMiNd)
6/5/08 Version 0.5.5 (Downloaded 49 times)
  • Update to phpBB 3.0.1 and MODX 1.2.0
  • [Cleanup] Removed function account_switch_form (Not used since 0.5.3)
  • [Bug Fix] Set variables to prevent 'unset' warnings in functions_linked_acct.php (Thanks Scriptmaster10)
  • [Bug Fix] Removed quotes in SQL (Thanks Frug)
  • [Bug Fix] Can't link users with single quotes (') in name (Thanks MydnyteSyn)
  • [Bug Fix] Can't link users with non-english characters in name (Thanks 'Christa)
  • Added UCP module install instructions to MODX
  • Added 'documentation' comments and headers
  • Fixed several errors in root/styles/prosilver/template/ucp_linked_acct.html
  • [Bug Fix] prosilver UCP Template always switches users on press Enter
10/5/08 Version 0.7.0 (Downloaded 45 times)
  • Update to phpBB 3.0.2 and MODX 1.2.1
  • Simplify edits
  • Rename files, functions, and variables for consistancy
  • [Bug Fix] /styles/prosilver/template/account_link_form.html was missing
  • [New Feature] Moderators can link accounts (incomplete) (Thanks Rotsblok)
  • [Request] Redirect back to page after switch (Natural-Hazard)
  • [Request] Added MCP module (Thanks Rotsblok)
1/2/09 Version 0.7.1 (Downloaded 16 times)
  • Update to phpBB 3.0.3
  • Fix ModX for files added in 0.7.0
  • [Request] Added en-us language file (Popeston)
  • [bug fix] Blank pages / Errors if no users are linked (Thanks Valace)
  • [bug fix] Only variables can be passed by reference (Thanks WDaquell)
1/29/09 Version 0.7.2 (Downloaded 17 times)
  • [Bug Fix] Clear autologin cookie before switching users (Thanks Khamosh-Saya and Arkos)
  • [Bug Fix] Check for subnit buttons doesn't work with accented characters (Thanks Arkos)
  • [New Feature] Added French Language (Thanks 'Christa)
  • [Request] account_link_form.html works w/o submit button (mitthoo)
2/17/09 Version 0.7.3 (Downloaded 2 times)
  • Update to phpBB 3.0.4 and ModX 1.2.2
  • Renamed instructions to install.xml (per MODX instructions)
  • Added 'ACCOUNTS_NOT_LINKED' to English language file (Need updates for other languages)
  • Fixed error message when trying to switch to an account not linked to the current one.
  • [Bug Fix] account_link_form.html REALLY works w/o submit button (Thanks Natural-Hazard)
  • [Bug Fix] subsilver2's ucp_account_link.html had an extra field that did nothing...
2/17/09 Version 0.7.3a
  • [Bug Fix] Can't switch to first account in list (Thanks Natural-Hazard)
4/9/11 Version 0.7.4
  • Tweaked package to better work with Automod
  • [Feature] Added 'create linked account'
  • [Feature] Added code for checking PMs from linked accounts (not in template yet)
  • [Bug Fix] Linked accounts no longer require activation (in 0.7.3a this caused a problem for Admin Activated boards)
  • [Feature] Can now link/unlink accounts for other users from MCP (Requires admin users permission)
9/6/11 Version 0.7.5
  • [Bug Fix] Switch account didn't work in 3.0.6 if cookie settings were wrong.
  • [Bug Fix] Removed file extension from language in account_links_install.php
9/6/11 Version 0.7.6
  • [Update] Updated install.xml for prosilver template changes in phpBB 3.0.9.
  • [Bug Fix] Removed a stray semi-colon in en and en-us language files. (Thanks Namor76 and Z.R.)
10/20/11 - Version 0.7.7
  • [Update] Updated install.xml for prosilver template changes.
10/22/11 Version 0.7.8
  • [Bug Fix] Incorrect variable for add_log() in ucp_account_link.php
09/02/12 Version0.7.9
  • [Bug Fix] Converted language files to UTF-8 without BOM
  • [Bug Fix] Made UCP/MCP install files translatable
  • [Bug Fix] Fixed problems in install.xml
  • [Feature] Added German language files
  • [Feature] Added logging to MCP module
  • [Cleanup] moved language files to /contrib
  • [Cleanup] Cleaned up all template files
Last edited by Drakkim on Sun Sep 02, 2012 11:08 am, edited 18 times in total.
Forum-UK.co.uk
Registered User
Posts: 39
Joined: Thu Jul 26, 2007 2:31 pm
Contact:

Re: [BETA] Linked Accounts

Post by Forum-UK.co.uk »

Hi there,
Can you please explain a wee bit better of what the mod actually does?

Thanks
theman83
Registered User
Posts: 9
Joined: Thu Jan 27, 2005 1:42 am

Re: [BETA] Linked Accounts

Post by theman83 »

Hey seems like a good idea for admins maybe could switch between a mod account, admin account, a regular user account easily to test things. If you can get a list of features up possible so can tell a bit more about how it works and the settings you can set on it that would be great. Would be interested in using this to test things after more details are know :)
Rizzn.
Registered User
Posts: 264
Joined: Wed Dec 28, 2005 9:53 am
Contact:

Re: [BETA] Linked Accounts

Post by Rizzn. »

theman83 wrote:Hey seems like a good idea for admins maybe could switch between a mod account, admin account, a regular user account easily to test things.
Except that you can just pull up a member with the appropriate permissions in the ACP and "Test out user’s permissions" or just click it from their profile.

I think this is designed more for people with multiple user accounts, perhaps for roleplaying boards, so that a member can quickly post from both names without having to log out/in.
[Alpha] Store MOD (phpBB3)
- Support site forthcoming -
--------------------------------------
[RC1] wGEric Store MOD (phpBB2)
Additional Usable Items and Store MOD Support Forums (separate site)
mhmdkhamis
Registered User
Posts: 125
Joined: Thu Sep 21, 2006 6:03 pm
Contact:

Re: [BETA] Linked Accounts

Post by mhmdkhamis »

demo board please :)
theman83
Registered User
Posts: 9
Joined: Thu Jan 27, 2005 1:42 am

Re: [BETA] Linked Accounts

Post by theman83 »

Rizzn. wrote:Except that you can just pull up a member with the appropriate permissions in the ACP and "Test out user’s permissions" or just click it from their profile.

I think this is designed more for people with multiple user accounts, perhaps for roleplaying boards, so that a member can quickly post from both names without having to log out/in.
Didn't know that thanks for the information. Haven't really checked out all the functions added in phpbb3. Well good luck with the mod Drakkim but with the tip from Rizzn not something I could use personally.
mhorst
Registered User
Posts: 4
Joined: Sun Aug 26, 2007 11:07 am

Re: [BETA] Linked Accounts

Post by mhorst »

I've been looking for a mod like this for my RP board.

Unfortunately I can't test it since the download link doesn't seem to work. I just end up with an empty (size = 0) zip file.
Drakkim
Registered User
Posts: 176
Joined: Thu Feb 05, 2004 5:48 am
Contact:

Re: [BETA] Linked Accounts

Post by Drakkim »

mhorst wrote:I've been looking for a mod like this for my RP board.

Unfortunately I can't test it since the download link doesn't seem to work. I just end up with an empty (size = 0) zip file.
Very strange... It should work now.
Forum-UK.co.uk
Registered User
Posts: 39
Joined: Thu Jul 26, 2007 2:31 pm
Contact:

Re: [BETA] Linked Accounts

Post by Forum-UK.co.uk »

Drakkim wrote:
mhorst wrote:I've been looking for a mod like this for my RP board.

Unfortunately I can't test it since the download link doesn't seem to work. I just end up with an empty (size = 0) zip file.
Very strange... It should work now.
Yes, works fine for me :)
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Re: [BETA] Linked Accounts

Post by drumstix42 »

This is something I've been looking around for some time now (for phpBB2 or other similar boards). I'll be very interested in checking this out once phpBB3 goes gold.

I'm planning to make a site/forum where users can sign-up and manage their own checklists in co ordinance with a MMO game they might play. With this mod, people could have checklists for all their in-game characters, and have them linked together. Hopefully it would work well this way. :)
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
mhorst
Registered User
Posts: 4
Joined: Sun Aug 26, 2007 11:07 am

Re: [BETA] Linked Accounts

Post by mhorst »

Forum-UK.co.uk wrote:
Drakkim wrote:
mhorst wrote:I've been looking for a mod like this for my RP board.

Unfortunately I can't test it since the download link doesn't seem to work. I just end up with an empty (size = 0) zip file.
Very strange... It should work now.
Yes, works fine for me :)
And for me too. Thanks for the mod. I'll see if I can test it.
saashannon
Registered User
Posts: 4
Joined: Mon Jul 23, 2007 12:11 am

Re: [BETA] Linked Accounts

Post by saashannon »

Hi!

Tried adding this mod and I keep getting this error:
Parse error: parse error, unexpected T_VARIABLE in /home/alphabet/public_html/phpBB3/includes/functions_linked_acct.php on line 53'

I know nothing of code ad have no idea what to be looking for. Any help is appreciated.
Drakkim
Registered User
Posts: 176
Joined: Thu Feb 05, 2004 5:48 am
Contact:

Re: [BETA] Linked Accounts

Post by Drakkim »

I missed a couple quotes on line 51. The download is updated with this fix.

find line 51:

Code: Select all

		$switch_form .='<input type="submit" name="submit" VALUE="'. $user->lang['L_SWITCH_USER'] ." /></FORM>';
		
		return "$switch_form";

Replace with:

Code: Select all

		$switch_form .='<input type="submit" name="submit" VALUE="'. $user->lang['L_SWITCH_USER'] .'" /></FORM>';
		
		return $switch_form;
saashannon
Registered User
Posts: 4
Joined: Mon Jul 23, 2007 12:11 am

Re: [BETA] Linked Accounts

Post by saashannon »

That fixed it, thanks!

Only other question I have is...how does it work? I keep trying to link the accounts and they're not linking? (It comes back to the same initial screen reading that there are no linked accounts). I'm probably missing something, I'm sure, but again, any help would be appreciated.
Drakkim
Registered User
Posts: 176
Joined: Thu Feb 05, 2004 5:48 am
Contact:

Re: [BETA] Linked Accounts

Post by Drakkim »

Did you run the SQL at the beginning of the 'Linked_Accounts.xml' file?
Locked

Return to “[3.0.x] MODs in Development”