Member
Member
familiesr4ever   2012-01-05, 17:45
#1

Is there a way to remove the Admin button from the Admin Toolbox but leave the logout button for Standard Users. The issue is that a Standard User could reset their password and mess up the login for other Standard Users that use the same account. If not how would I remove the Admin Toolbox from showing up for Standard Users?

Administrator
Administrator
acrylian   2012-01-05, 17:57
#2

Users can always access the admin via the direct link so I don't see how that helps you. The proper way is to have one account per user as it is of course intended that they can change their own passwords.

You will have to make your own custom function if you wish different functionality.

Member
Member
sbillard   2012-01-05, 19:02
#3

Specifically, remove the printAdminToolbox() function call from your theme. Then enable the user_login-out plugin and add a call to printUserLogin_out() where you want the logout link.

But as acrylian says, this is no protection. If you allow users to share a usercode they can mess with eachother. Better to use the gallery "guest" logon for this type of access. You can set that up with a user id and password so that these users will not be able to tell the difference other than that they cannot access the back-end.

Member
Member
familiesr4ever   2012-01-05, 21:31
#4

That worked! Thank you both for your help and for this excellent product!

Member
Member
joninbelgium   2012-02-16, 17:53
#5

on a similar note, is there any way to make the Admin Toolbox appear only if you are an admin? guest users wouldn't see that box. i assume there is some kind of php code for certain users but i have no idea how to code.
thanks in advance

Member
Member
sbillard   2012-02-16, 18:33
#6

You need to add an if statement around the printAdminToolbox() call in you theme scripts:

if (zp_loggedin(ADMIN_RIGHTS) { printAdminToolbox(); }

Member
Member
joninbelgium   2012-02-17, 10:23
#7

fantastic sbillard, thanks a bunch for that, though there was a missing ")" to close the if statement and it took me a while to figure it out... :-)
it's now working perfectly!!!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.