Warning: The author of this contribution does not provide support for it anymore.

ACP Add User MOD

Error or omission in acp_add_user.php - ACP Add User MOD

Error or omission in acp_add_user.php

by Paul_B3 » Sat Nov 23, 2013 2:44 pm

I was just about to install this mod on 3.0.12 and was reading through the code when I came across the FAQ(1) [Display Password after creation] and I see that the line of code in /includes/acp/acp_add_user.php Line 294 is not the same as in the acp_add_user_mod_1_1_1.zip


Code in FAQ(1) [Display Password after creation] /includes/acp/acp_add_user.php

Code: Select all

$message[] = sprintf($user->lang['CONTINUE_EDIT_USER'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=users&amp;mode=profile&amp;u=' . $user_id) . '">', $data['new_username'], '</a>'); 


Code in acp_add_user_mod_1_1_1.zip /includes/acp/acp_add_user.php

Code: Select all

$message[] = sprintf($user->lang['CONTINUE_EDIT_USER'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=users&amp;mode=profile&amp;u=' . $user_id) . '">', $data['username'], '</a>');


Which one is right? and do I need to change any other code to reflect this change.

Thanks
Paul_B3
Paul_B3
Registered User
Posts: 41
Joined: Sat Dec 13, 2008 3:58 pm

Re: Error or omission in acp_add_user.php

by RMcGirr83 » Sat Nov 30, 2013 11:47 am

If it was incorrect it wouldn't have worked. Leave the code alone and just enjoy it. (PS the second one is correct, the first one would toss an error). I have no idea what "FAQ(1)" means.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Error or omission in acp_add_user.php

by 5hocK » Sat Nov 30, 2013 12:32 pm

RMcGirr83 wrote: I have no idea what "FAQ(1)" means.

Image

:geek:
5hocK
Registered User
Posts: 3149
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: Error or omission in acp_add_user.php

by RMcGirr83 » Sat Nov 30, 2013 12:44 pm

It goes after this

Code: Select all

$message[] = sprintf($user->lang['CONTINUE_EDIT_USER'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=users&amp;mode=profile&amp;u=' . $user_id) . '">', $data['username'], '</a>');


and I can't seem to be able to edit the FAQ entry.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
User avatar
RMcGirr83
Former Team Member
Posts: 22105
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr