Jump to content
MakeWebGames

Adding a permission to staff?


marvin

Recommended Posts

k

 

Open " staff_users.php " in a text editer , search for " inv_user_view() " and change " if($ir['user_level'] > 3) " to " if($ir['user_level'] > 4) "

I changed it but nothing showed up in the staff section. anything else you can thing of that needs to be changed?

Link to comment
Share on other sites

you'll have to change the user level permission for that link in smenu so the link will show up for that user level:

if($ir['user_level']==2)
{
print "> <a href='staff_users.php?action=newuser'>Create New User</a><br />
> <a href='staff_users.php?action=edituser'>Edit User</a><br />
> <a href='staff_users.php?action=deluser'>Delete User</a><br />";
}
print "> <a href='staff_users.php?action=invbeg'>View User Inventory</a><br />
> <a href='staff_users.php?action=creditform'>Credit User</a><br />";

 

to:

if($ir['user_level']==2)
{
print "> <a href='staff_users.php?action=newuser'>Create New User</a><br />
> <a href='staff_users.php?action=edituser'>Edit User</a><br />
> <a href='staff_users.php?action=deluser'>Delete User</a><br />";
}
print "> <a href='staff_users.php?action=creditform'>Credit User</a><br />";
if($ir['user_level'] > 1)
{
print "> <a href='staff_users.php?action=invbeg'>View User Inventory</a><br />";
}

 

Should do it.

Edited by Smokey
Link to comment
Share on other sites

you'll have to change the user level permission for that link in smenu so the link will show up for that user level:
if($ir['user_level']==2)
{
print "> <a href='staff_users.php?action=newuser'>Create New User</a><br />
> <a href='staff_users.php?action=edituser'>Edit User</a><br />
> <a href='staff_users.php?action=deluser'>Delete User</a><br />";
}
print "> <a href='staff_users.php?action=invbeg'>View User Inventory</a><br />
> <a href='staff_users.php?action=creditform'>Credit User</a><br />";

 

to:

if($ir['user_level']==2)
{
print "> <a href='staff_users.php?action=newuser'>Create New User</a><br />
> <a href='staff_users.php?action=edituser'>Edit User</a><br />
> <a href='staff_users.php?action=deluser'>Delete User</a><br />";
}
print "> <a href='staff_users.php?action=creditform'>Credit User</a><br />";
if($ir['user_level'] > 1)
{
print "> <a href='staff_users.php?action=invbeg'>View User Inventory</a><br />";
}

 

Should do it.

Alright, what that did is nothing for the people in user_level 4. However for admin it made it so in the staff panel the User catagory is not listed one under the other its jumbled like this

"Users

> Create New User > Edit User > Delete User> Credit User> View User Inventory> Mass Payment

> Force User Logout

> Player Reports"

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.

Guest
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...