(2015-11-18, 17:23:30)gslexx Wrote: Hello!
All can be done checkbox on the page "plugins" to show or hide block https://yadi.sk/i/9pd_hr4BjcrFd ?
This option is very necessary!
Thank you!
Hi gslexx, you can't hide the full block. You can only hide the 'Edit' button.
If you use MultiUser plugin:
- click the user you want to hide the button for;
- scroll to 'Denied permissions' title, and check GS Custom Settings
- now the user will not see the 'Edit' button
- find the user in
data/users/user.xml
and add a node<KO_EDIT>FALSE</KO_EDIT
.
- now the user will not see the 'Edit' button
I'm not going to hide the full bar as I have argued before against it.
If you really want to completely hide the nav, open
plugins/custom_settings.php
, and find the line // GS Hooks
.Under that paste the following code:
PHP Code:
$restricted_users = array('my_user1', 'my_user2');
if (@$_GET['id'] === 'custom_settings')
add_action('header', 'restrict_GSCS_nav_access', array($restricted_users));
function restrict_GSCS_nav_access($for_users)
{
global $USR;
if (array_search($USR, $for_users) > -1)
echo '<style>.edit-nav { display: none !important; }</style>';
}
In
$restricted_users
, include all user names that should not be able to see the nav.