Admin Toolbox

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?

Comments

  • acrylian Administrator, Developer
    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.
  • 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.
  • That worked! Thank you both for your help and for this excellent product!
  • 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
  • You need to add an if statement around the `printAdminToolbox()` call in you theme scripts:

    `
    if (zp_loggedin(ADMIN_RIGHTS) {
    printAdminToolbox();
    }
    `
  • 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!!!
Sign In or Register to comment.