Thread: user class
View Single Post
  #3  
Old 27th March 2014, 14:30
stoner stoner is offline
Senior Member
 
Join Date: May 2011
P2P
Posts: 17
Default
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.
Reply With Quote