Force Particular Style on Banned Usergroup
This modification is in the archives.
This hack forces a style on a particular usergroup. The best way for me to explain what this hack actually does is by explaining to you how I use it.
I have a special style and template set on my forums created expecially for my banned and suspended users. This template contains horrible colors and pictures, annoying javascript, pop up windows, flashing backgrounds, if it's annoying, it's in there. Simply put, users in my banned usergroups are forced to see this template on all pages. I guess it can be thought of as a different sort of miserable hack. Anyhow, the file modification is real simple. In global.php find: Code:
// is style in the forum/thread set? Code:
// Force Style on Banned Usergroup Hack // Change 00 to the usergroup ID of your banned usergroup if ($bbuserinfo['usergroupid'] == 00) { // Set styleid to the ID number of the style you want to force $styleid = 00; $userselect = true; } else // Force Style on Banned Usergroup Hack If you want to do this to two usergroups just change Code:
if ($bbuserinfo['usergroupid'] == 00) Code:
if ($bbuserinfo['usergroupid'] == 00 OR ($bbuserinfo['usergroupid'] == 00)) This is my first hack, but I think I got everything right. If you have any suggestions, or questions I will be more than happy to try and answer them. I created this hack for myself, but I saw someone else request something like this here, so I am releasing it. If you use please click install! Download No files for download. |
Similar Mods
Force Style to Certain Usergroup(s) and/or User(s) | vBulletin 3.5 Add-ons |
Force Style on Specific Usergroup | vBulletin 3.0 Template Modifications |