teksigns Posted April 8, 2003 Share Posted April 8, 2003 i have figured out how to completly hide any boxes that the user is not approved for . in your admin/includes/column_left.php you should set it up with a statement like this arround every require statement making sure to change the file name to match. if (CanShowBox('yourfilename.php')){ // your require statement here } here is a short example of a file : if (CanShowBox('configuration.php')){ require(DIR_WS_BOXES . 'configuration.php'); } if (CanShowBox('administrators.php')){ require(DIR_WS_BOXES . 'administrators.php'); } if (CanShowBox('catalog.php')){ require(DIR_WS_BOXES . 'catalog.php'); } with this in place the boxes that the admin does not have access to will not show up . hope this helps someone . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.