Back to vBulletin 3.8 Add-ons

Force Style for Selected Users or Groups
Mod Version: 3.8.001, by Mosh

vB Version: 3.8.x Rating: (11 votes - 4.82 average) Installs: 99
Released: 21 Nov 2008 Last Update: Never Downloads: 484
Not Supported DB Changes Uses Plugins Re-usable Code Translations  

Please click Mark as Installed if you are using this hack.

What Does This Hack Do?

It is a update of my v3.7.x hack available here, with new functionality added.

This hack allows you to force a style to a usergroup via usergroup permissions, so this means that you can force different usergroups to different styles (previous versions of this hack only allowed you to apply only 1 style to a set of usergroups/users).

You can also force a single style (centrally via vBulletin Options) to 1 or more users, and this will override any style that has been forced on usergroups that the user(s) are in.

Scenario

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, unless you select to override that too).

Frequently Asked Questions

Question:
What if you need custom style permissions as well?
Answer:
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 Andreas's Restrict Style to Usergroup hack which he released for v3.5.x. It is because of that hack that this one exists, and I have tested it on v3.5.x, v3.6.x, v3.7.x and v3.8.x, and it works for all four versions and works fine with my hacks as well.

For instance on my forum I need to use both hacks, as the style I force on my guests and normal members is not selectable nor 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 Andreas's hack I would not be able to do this.

But just to let you know that Andreas's hack is unsupported and is not likely to ever be supported (unless it is a proven bug), so if you have problems with it, you are on your own.

vBulletin Version Compatibility

This hack can be used with vBulletin versions 3.6.0 - 3.8.8.

For an unsupported v3.5.x version of this hack - check here.

For an unsupported v4.0.x version of this hack - check here.


Hack Support/Feature Requests

IMPORTANT: This hack is no longer supported.

Install Instructions
  1. Unzip ms_force_style_38.zip
  2. Upload bitfield_ms_force_style.xml to your /includes/xml folder.
  3. Import the ms_force_style_38.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
  4. 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. You can also enter user(s) to force a style on (and the style to force on them).
  5. In the Usergroup Manager edit the usergroup(s) you want to force a style on.

Uninstall Instructions
  1. Delete the bitfield_ms_force_style.xml file from your /includes/xml folder.
  2. Uninstall the product in vB using the AdminCP Product Manager.

Version History

v3.8.001 - Friday 21st November 2008
-- Initial Release

Thanks

Thanks go out to Paul M who gave me permission to use some of his install code.

Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Download

File Type: %1$s ms_force_style_38.zip (2.9 KB, 570 downloads)

Screenshots

Click image for larger version
Name:	screenshot1.png
Views:	709
Size:	44.7 KB
ID:	89612   Click image for larger version
Name:	screenshot2.png
Views:	673
Size:	18.3 KB
ID:	89613   Click image for larger version
Name:	screenshot3.png
Views:	632
Size:	16.2 KB
ID:	89614  

Similar Mods

Miscellaneous Hacks Force Style for Selected Users or Groups vBulletin 3.7 Add-ons
Miscellaneous Hacks Force Style for Selected Users or Groups vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024