Link related coding in includes\acp\acp_groups.php

Discussion forum for MOD Writers regarding MOD Development.
Locked
pubpro
Registered User
Posts: 165
Joined: Sat Oct 25, 2014 9:55 am

Link related coding in includes\acp\acp_groups.php

Post by pubpro » Sat Nov 22, 2014 11:48 am

Two questions about link related coding in the file includes\acp\acp_groups.php:

What does adm_back_link do in the following code?
case 'deleteusers':
if (empty($mark_ary))
{
trigger_error($user->lang['NO_USERS'] . adm_back_link($this->u_action . '&action=list&g=' . $group_id), E_USER_WARNING);
}

What does the following line do?
'U_USER_EDIT' => append_sid("{$phpbb_admin_path}index.$phpEx", "i=users&action=edit&u={$row['user_id']}"),

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21581
Joined: Fri Aug 29, 2008 9:49 am
Location: Caerdydd

Re: Link related coding in includes\acp\acp_groups.php

Post by Mick » Sat Nov 22, 2014 11:51 am

For future reference: Are You In the Right Place?
"The more connected we get the more alone we become" - Kyle Broflovski

pubpro
Registered User
Posts: 165
Joined: Sat Oct 25, 2014 9:55 am

Re: Link related coding in includes\acp\acp_groups.php

Post by pubpro » Sat Nov 22, 2014 12:02 pm

Do these kind of questions belong in the writers part, rather than "For the support of the standard phpBB 3.0.x software"? It is, after all, a question about the standard software?

User avatar
RaythXC
Registered User
Posts: 150
Joined: Wed Jun 13, 2012 1:23 pm

Re: Link related coding in includes\acp\acp_groups.php

Post by RaythXC » Sat Nov 22, 2014 3:06 pm

The line you inquired about is part of MOD writing which is why it should be in the writers section.

As to your answer:
adm_back_link generates a back link in the ACP (such as when you create a new forum and it then says "Forum Created. in a green box which has a link that says "Click here to return to previous page."

Code: Select all

'U_USER_EDIT'	=> append_sid("{$phpbb_admin_path}index.$phpEx", "i=users&action=edit&u={$row['user_id']}"),
If you look at the full code, you'll see that at the start of this whole block is $template->assign_vars(array(
This is assigning variables to the template file that phpbb loads to display a page.
In this specific example, it is setting the variable U_USER_EDIT to equal your_board_url.tld/adm/index.php?i=users&action=edit&u=<USER ID>&sid=<YOUR CURRENT SID>

Locked

Return to “[3.0.x] MOD Writers Discussion”