marvin Posted October 9, 2011 Share Posted October 9, 2011 Does anyone know how to add "view users inventory" permission for IRC op? Quote Link to comment Share on other sites More sharing options...
mixmaster Posted October 9, 2011 Share Posted October 9, 2011 Does anyone know how to add "view users inventory" permission for IRC op? 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) " Quote Link to comment Share on other sites More sharing options...
marvin Posted October 9, 2011 Author Share Posted October 9, 2011 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? Quote Link to comment Share on other sites More sharing options...
Smokey Posted October 10, 2011 Share Posted October 10, 2011 (edited) 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 October 10, 2011 by Smokey Quote Link to comment Share on other sites More sharing options...
marvin Posted October 10, 2011 Author Share Posted October 10, 2011 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" Quote Link to comment Share on other sites More sharing options...
newttster Posted October 11, 2011 Share Posted October 11, 2011 It looks like you are missing break tags. 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.