I have the code:
Code: Select all
<!-- IF U_RESTORE_PERMISSIONS -->
<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
<!-- ENDIF -->
EDIT: Restore Permissions link reappeared, all is good now.
Code: Select all
<!-- IF U_RESTORE_PERMISSIONS -->
<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
<!-- ENDIF -->
Code: Select all
<li class="icon-ucp">
<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>
<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF -->
<!-- IF FRAM_DISABLE --><!-- IF FRAM_ENABLED --> • (<a href="{U_NEWFRAMS}">{L_NUM_NEWFRAMS}</a>) <!-- ENDIF --><!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH --> •
<a href="{U_SELF_TOPICS}">{L_PRIME_SELF_TOPICS}</a> •
<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
• <a href="{U_USERS_NOTES}">{L_NOTES}</a>
<!-- ENDIF -->
<!-- IF TOTAL_PENDING_MEMBERS --> • <a href="{U_PENDING_LIST}">{TOTAL_PENDING_MEMBERS}</a><!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS -->
<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
<!-- ENDIF -->
<!-- View my own profile -->
• {L_WELCOME_USER}
<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) -->{L_REG_GUESTS_MESSAGE}<!-- ELSEIF not (S_SHOW_COPPA or S_REGISTRATION) -->{L_NO_GUESTS_MESSAGE}<!-- ELSE -->
<!-- ENDIF -->
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
<!-- End -->
</li>
</ul>
<!-- ENDIF -->
Code: Select all
<li class="icon-ucp">
<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>
<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>)<!-- ENDIF -->
<!-- IF S_DISPLAY_SEARCH --> •
<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS -->
<a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
<!-- ENDIF -->
</li>
</ul>
<!-- ENDIF -->
Code: Select all
'U_RESTORE_PERMISSIONS' => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm') : '',
no but it's appeared before...D¡cky wrote:Have you refreshed the template? I installed your overall_header onto a test board and "Restore Permissions" works for me. See attached image.
yes I get that message. but my other admin told me that when he tested out a member's permissions (that member was a ordinary member, not a staff member), he was not supposed to see the Staff Forums, so he said that the permissions weren't transferred...however the message still appears in the ACP...I don't think I get the link but I'll double checkD¡cky wrote:What happens when you go into the Administration Control Panel? You should get a message about "Permissions transferred" and have a link to "revert to your permission set."
yep that line exists. but what do you mean check the values?D¡cky wrote:You should check includes/functions.php and see if this line existsIf it does, then you will need to check the values of $user->data['user_perm_from'] and $auth->acl_get('a_switchperm').Code: Select all
'U_RESTORE_PERMISSIONS' => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm') : '',
Then you ought to refresh the template first.Jessica wrote:no but it's appeared before...D¡cky wrote:Have you refreshed the template? I installed your overall_header onto a test board and "Restore Permissions" works for me. See attached image.
OPEN includes/functions.phpJessica wrote:yep that line exists. but what do you mean check the values?D¡cky wrote:You should check includes/functions.php and see if this line existsIf it does, then you will need to check the values of $user->data['user_perm_from'] and $auth->acl_get('a_switchperm').Code: Select all
'U_RESTORE_PERMISSIONS' => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm') : '',
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
Code: Select all
echo 'user_perms = ' . $user->data['user_perm_from'] . '<br >';
echo 'restore_perms = ' . $auth->acl_get('a_switchperm') . '<br />';
user_perms = 0
restore_perms = 1
Please fill out the Support Request Template and post it back here to enable us to assist you better. Also, detail exactly what you did to test out permssions and "doesn't work" means.Thanks in advance wrote:I get these values when trying to test out user’s permissions (which doesn't work):
restore_perms = 1 [correct]D¡cky wrote:SAVE/CLOSE
Go to the index page of your board. The values will be output at the top of the page.
The user_perms should be the id of the member you transferred the permissions from. The restore_perms value should be 1.