Back to vBulletin 3 Articles

An evil little prank mod - force user to a style
by amykhar 07 Feb 2006

I threw this together as a practical joke. I installed a style for one of our private forums, and some members hated it. So, I set it so that one of those users was faced with that style in every forum - and couldn't change it.

If you want to force a user to a given style, do this:

1. Note your styleid and the userid of the person you want to torment.

In global.php Find:

Code:
// #############################################################################
// ######################## START TEMPLATES & STYLES ###########################
// #############################################################################
Add After
Code:
if($vbulletin->userinfo['userid']==useridhere)
{
  $codestyleid= styleidhere;
}
If you have a whole usergroup you want to torment, do this: (haven't tested this one)

Code:
if(is_member_of($vbulletin->userinfo,usergroupidhere))
{
  $codestyleid= styleidhere;
}

Similar Mods

Force Guests To Use One Style vBulletin 3.6 Template Modifications
Force Style to Certain Usergroup(s) and/or User(s) vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024