Back to vBulletin 3.0 Add-Ons

Force Particular Style on Banned Usergroup
Mod Version: 1.00, by wrongful

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 5
Released: 17 Aug 2004 Last Update: Never Downloads: 1
Not Supported  

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?
add above:
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
Change the variables and that's it!

If you want to do this to two usergroups just change
Code:
if ($bbuserinfo['usergroupid'] == 00)
to
Code:
if ($bbuserinfo['usergroupid'] == 00 OR ($bbuserinfo['usergroupid'] == 00))
and fill in the variables.

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

vblts.ru supports vBulletin®, 2022-2024