Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.

New Thread  Post Reply
Galeras's Avatar
Galeras : 50+
Galeras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of light
offline Joined: Sep 2007 Location: Promyshlennyi Vorkuta Posts: 164 Thanked: 47
Thread Starter Unread 12-26-07
Force Style for Selected Users or Groups (v2)


The setup on my forums is that I use the default style as the parent to all my other styles which makes modifying the templates easy for me, I just edit my default style and the child styles inherit the changes.

I wanted to use a child style as the standard style for visitors and members, but not have them have a choice of the default style at all, but as soon as you logged out you were presented with the default style that you did not want guests to see.

This hack rectifies that. It also allows you to let others use the forum wide default style (selected via Style & Language Settings -> Default Style in the vBulletin Options of the AdminCP) while forcing the usergroup(s)/member(s) to the one style you selected, except in cases where you have specifically assigned a custom style to a forum in Forum Manager and override the users' style choice for that forum (it will use the custom style assigned to that forum).

Uninstall Force Style for Selected Users or Groups v1.00 or v1.01 using the AdminCP Product Manager (if it is currently installed).
Import the product-jd_20071226.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
In vBulletin Options > Force Styles for Selected Users or Groups, change Force Styles for Selected Users or Groups - Enable to Yes to turn it on.
In the other boxes, select the usergroup(s), member(s) and the style id you want to force on those usergroups or members

There is no upgrade path from my v3.6.x version, you have to uninstall that one first before installing this one.

What if you need custom style permissions as well?

This question has been asked a few times: What if you need custom style permissions so that you can control which usergroups see/select what styles?

The hack I use is KirbyDE's Restrict Style to Usergroup hack which he released for v3.5.x (now he is called Andreas). It is because of that hack that this one exists, and I have tested it on vBulletin versions 3.5.x, 3.6.x and 3.7.0 Beta 2 and 3.7.0 Beta 3 and it works for all versions and works fine with my hacks for both all versions as well.

For instance on my own forum I need to use both hacks, as the style I force on my guests and normal members is not selectable or do I allow them permission to use it, and is also not my default style (all my other styles are child styles of my default one), so without KirbyDE's hack I would not be able to do this.

But just to let you know that KirbyDE's hack is unsupported and is not likely to ever be supported, so if you have problems with it, you are on your own.

Version History

v2.0.0 - Initial v3.7.x release [Wed 26th Dec 2007]
Attached Images You must register or login to view attachments.
Attached Files Click the thanks button to view this attachment.
sendog's Avatar
sendog : 50+
sendog will become famous soon enoughsendog will become famous soon enough
offline Joined: Sep 2007 Posts: 65 Thanked: 41
Unread 01-10-08
it's a good mod, thanks galeras for this... it's very interesting
New Thread  Post Reply

Thread Tools

  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
groups, users, selected, style, force
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021