|
#1
|
|||||
|
|||||
user class
Hello. I've been adding some more userclasses, so highest is 10 now.
When i in the database sets it to 10, i go down to what ever.. Nothing happends, and im not staff anymore.. Thats totally sad. What to do? Info: Database (user table) Database (user_config) Pm_system.php Quote:
Quote:
Quote:
Quote:
Result: BrugerKP = UserCP Kontakt Staff = Contact staff Last edited by Typon; 11th October 2013 at 16:17. |
#2
|
|||
|
|||
why to change user classes if you are not gonna make some code for promotion and demotion ? and some stuff different from class to class? only for estetics?
and of course you are disabled, because in cache/staff_settings.php and staff_settings2.php you have some functions so that staff will be only ids/names that are written there. |
#3
|
|||
|
|||
Wait for V4 release and all this can be done via the staff panel.
There is alot of edits to be made when you add user classes. You also need to clear the memcache entries users, or the site will think they are at the old class. Also currently with V3, UC_SYSOP is used a class check in some files, so if you add a class over that one, then you will need to make edits. Best solution around that problem, is keep UC_SYSOP as your top class, but give it another name. I,e The define section in config.php will still have UC_SYSOP => 9 << 9 being the top number same as UC_MAX But the class name can be whatever you want it to be. So you could have something like. UC_CODER => 8, UC_SYSOP =>9 But the name for UC_CODER would be Sysop and for UC_SYSOP would be Coder. Can cause confusion, but is an easier way than finding all files that need the edit. That or change all files which have a class check for UC_SYSOP and change it to UC_MAX. Which is what I'm doing for V4, to allow a staff panel page for adding class's a bit more easily. |
Tags |
class , user |
|
|