Wickidnezz Posted September 17, 2011 Share Posted September 17, 2011 hey this may be a stupid question but whats the fastest way to change user levels within mccodes v2 Quote Link to comment Share on other sites More sharing options...
Danny696 Posted September 17, 2011 Share Posted September 17, 2011 PHPMyAdmin Or Staff panel -> Edit user Quote Link to comment Share on other sites More sharing options...
Uridium Posted September 17, 2011 Share Posted September 17, 2011 $from="2"; $idtochange="userid's number" $to="new user_level number" $db->query("update users set user_level=$from where user_level=$to, userid=$idtochange"); Quote Link to comment Share on other sites More sharing options...
Wickidnezz Posted September 17, 2011 Author Share Posted September 17, 2011 just to make it clear im talking about changing the default userlevels to entirely different ones Quote Link to comment Share on other sites More sharing options...
gurpreet Posted September 18, 2011 Share Posted September 18, 2011 run a query in phpmyadmin update users set user_level = newlevel WHERE user_level=1 (or whatever your default is) Quote Link to comment Share on other sites More sharing options...
Uridium Posted September 18, 2011 Share Posted September 18, 2011 I think what he emans is restructering the staff so instead of admin being 2 it would be something else me personallid just add a new field called staff and give them names so if $ir[staff] == "Admin"; 1 Quote Link to comment Share on other sites More sharing options...
Wickidnezz Posted September 18, 2011 Author Share Posted September 18, 2011 (edited) I think what he emans is restructering the staff so instead of admin being 2 it would be something else me personallid just add a new field called staff and give them names so if $ir[staff] == "Admin"; that would be correct illusions instead of the admin level being set as 2 and etc i want to reconstruct all the userlevels and add in new userlevels for staff placements like i was thinking of adding a entire new field like you have mentioned youve done my idea was to have a feild in the db for both the players userlevel and another for staff userlevels so theyre seperate from each other Edited September 18, 2011 by Wickidnezz adding information 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.