I see. I guess I just didn't understand that since this mod is for convenience of users. Nothing will stop people from manually switching accounts.Drakkim wrote:For one, perhaps only mods or admins are allowed to have multiple accounts... for another, if only mods have access to the create links panel, they can keep track of who is using what names...
Code: Select all
'auth' => ''
Sorry, didn't see this post. If I'm understanding you correctly, you want a list of usernames to just click? Here's some template code to get that goal, but I'd certainly recommend against using it in the header!Scherbenreiter wrote:Is there a way to put the dropdown design aside and have the names of each linked account, so that we change to the account by clicking on the link?
E.g: Present account: AAAAAAAAA
Linked Accounts, shown as links beneath the header: BBBBBBBB, CCCCCCCCC
Click CCCCCCCCC --> Account change to CCCCCCCCC
Code: Select all
<!-- BEGIN accounts -->
<!-- IF not accounts.S_FIRST_ROW -->
<a href="{U_ACCOUNT_LINK_SWITCH}{accounts.USER_ID}&redirect={U_THIS_URL}"><li> {accounts.USERNAME}</li></a><br />
<!-- ENDIF -->
<!-- END accounts -->
<a href="{U_LOGIN_LOGOUT}"><li> {L_LOGOUT}</li></a>
Code: Select all
<br />
Code: Select all
,
Hi have not looked in the above, because I ran in to a snag.Drakkim wrote:The easiest way is to use the "Moderate Linked Accounts" module. That one gives people with user admin privileges the ability to link _anyone's_ account. Using that module, you can link whoever you want.
If you want to give them "normal" access, what you want is to edit mcp/info/mcp_account_link.php
Choose a permission that only these trusted moderators will have and add it to the auth for the manage module. Then, you'll need to remove the module and re-add it for the updated permissions to work. This will hide the mod from the MCP panel, except for the people with that permission.
You want to edit line 25, where it saysThe next line shows how to limit the module to only users with administrate users permissions. (acl_a_user)Code: Select all
'auth' => ''
The main template edits already hide the account switch options unless accounts are linked, so no problem there.
I'm honestly a bit rusty on this stuff, so if it doesn't work as expected, let me know and I'll dig in and try to fix it.
Code: Select all
General Error
Module not accessible
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/includes/functions_module.php
LINE: 439
CALL: trigger_error()
FILE: [ROOT]/ucp.php
LINE: 334
CALL: p_master->load_active()
Code: Select all
'auth' => ''
Code: Select all
'auth' => 'acl_a_user'
I tried to removed the edits in he includes/functions.php , which effectively should un-install it.Parse error: syntax error, unexpected ')' in /home/xxxxx.com/includes/functions_module.php(364) : eval()'d code on line 1
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(364) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(364) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 157: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(364) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 158: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(364) : eval()'d code:1)
Only the first error is relevant (the others are all complaining that the first error caused a message). From this, I would guess that a file in includes/ucp/info/ has an extra ')' Check that file and make sure there is one ')' for each '('Parse error: syntax error, unexpected ')' in /home/xxxxx.com/includes/functions_module.php(364) : eval()'d code on line 1