Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Administrators v1.4 mod - Hide Boxes


teksigns

Recommended Posts

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 .

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...