PDA

View Full Version : Using the phrase for the banned usergroup


mfyvie
06-20-2007, 10:53 AM
I'm writing a mod which has as part of its design a section which automatically bans users.

I've completed all the bits and pieces to ban the user, but I am just being stumped by the phrase "Banned" which is inserted into the usertitle field of the user record after they are banned.

I can't find this phrase anywhere, nor the code that retrieves this value from wherever it is stored.

Of course, I can simply hard code "Banned", but I'd prefer to try and make my ban routines as close to the original as I can.

Does anyone have any idea how this phrase can be retrieved from inside a hook in login.php?

mfyvie
07-05-2007, 08:36 AM
Just bumping this - does anyone have any idea where this phrase can be located?

Also - the ban group is 8. Is it always 8? At the moment I have this hard-coded, but should I read this value from somewhere? If so, where can it be found?