Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Force Style for Selected Users or Groups Details »
Force Style for Selected Users or Groups
Mod Version: 1.01, by Mosh (Coder) Mosh is offline
Developer Last Online: Jun 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.x Rating: (6 votes - 4.83 average) Installs: 65
Released: 02 Apr 2007 Last Update: 11 Apr 2007 Downloads: 236
Not Supported Uses Plugins Re-usable Code Translations  

Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. But not to worry, you can now check out the new 3.8.x version of this hack which will work with v3.7.x, as well as with v3.6.12 (and maybe even earlier versions).

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


vBulletin Version Compatibility

This hack can be used with both vBulletin v3.6.x and v3.7.x


What Does This Hack Do?

This hack allows you to force a style to certain usergroup(s), secondary usergroup(s), and/or certain user(s) or any combination of the three. It is a port/update of my v3.5.x hack available here, apart from the fact that settings are now controlled from the AdminCP.

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 template at all, but as soon as you logged out you were presented with the default template that you did not want guests to see.

This hack rectifies that. It also allows you to let others use the Default Style while forcing the usergroup(s)/member(s) to the one style you selected.

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


Installation Instructions
  1. Import the product-jd_20070403.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
  2. 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.
  3. In the other boxes, select the usergroup(s), member(s) and the style id you want to force on those usergroups or members

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 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 and v3.7.x, and it works for three 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.


Version History

v1.01 - Wednesday 11th April 2007
-- Final Release
-- Added: AdminCP option

v1.00 - Tuesday 3rd April 2007
-- Initial Release


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 Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	snapshot2.jpg
Views:	427
Size:	49.9 KB
ID:	62620  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Force Style for Selected Users or Groups Mosh vBulletin 3.8 Add-ons 37 06 Jan 2012 17:42
Miscellaneous Hacks Force Style for Selected Users or Groups Mosh vBulletin 3.7 Add-ons 34 21 Nov 2008 02:12

Comments
  #2  
Old 02 Apr 2007, 23:17
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Real name: Barakat
install thanks .
Reply With Quote
  #3  
Old 03 Apr 2007, 00:05
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Hey cool, i also do the same thing with having all the child templates taking hold from the default template, makes it so much easier in editing templates.

I'm sure ill find a use for this hack in the near future. thanks.
Reply With Quote
  #4  
Old 03 Apr 2007, 02:20
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
Originally Posted by hornstar1337 View Post
Hey cool, i also do the same thing with having all the child templates taking hold from the default template, makes it so much easier in editing templates.

I'm sure ill find a use for this hack in the near future. thanks.
Cool

But don't forget that if you do use it, remember to click on Mark as Installed please.
__________________
-- The WS Spiders List is still downloadable from vBulletin.com.
-- As of Monday 1st July 2013, I will no longer be supporting my hacks as I am leaving the vBulletin community due to medical and life-style reasons.
Reply With Quote
  #5  
Old 03 Apr 2007, 02:36
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
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 template at all, but as soon as you logged out you were presented with the default template that you did not want guests to see.

This modification rectifies that.
... as would taking the tick out of the Default Style and clicking Save Display Order.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #6  
Old 03 Apr 2007, 02:42
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
Originally Posted by kall View Post
... as would taking the tick out of the Default Style and clicking Save Display Order.
Ah, yes, but then you would not be able to have certain groups apart from admins being able to use the Default Style, which is one of the reasons this exists.

For instance, on my own forum, guests and normal members get the same child style, but members who have been promoted to another group, have a selection of styles including the Default Style and your method would not work in this situation.
__________________
-- The WS Spiders List is still downloadable from vBulletin.com.
-- As of Monday 1st July 2013, I will no longer be supporting my hacks as I am leaving the vBulletin community due to medical and life-style reasons.
Reply With Quote
  #7  
Old 03 Apr 2007, 02:48
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Real name: Ace
Well, you didn't say that, now did you.

In that case, this mod is perfect.
__________________
vBulletin Styles (All styles compatible with 3.8.4 - Steel Blue 4.0 Available) | vBulletin Hosting
Reply With Quote
  #8  
Old 03 Apr 2007, 03:09
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
Originally Posted by kall View Post
Well, you didn't say that, now did you.

In that case, this mod is perfect.
Thanks mate

I better put this in the original post to clarify
__________________
-- The WS Spiders List is still downloadable from vBulletin.com.
-- As of Monday 1st July 2013, I will no longer be supporting my hacks as I am leaving the vBulletin community due to medical and life-style reasons.

Last edited by Mosh; 03 Apr 2007 at 03:14.
Reply With Quote
  #9  
Old 03 Apr 2007, 17:30
Cyricx Cyricx is offline
 
Join Date: Sep 2002
O the pain you can put a banned or restricted user through with a mod like this is just delicious!
__________________
Cyricx (Chris)
Reply With Quote
  #10  
Old 04 Apr 2007, 04:10
AMG021 AMG021 is offline
 
Join Date: Sep 2006
excellent hack
Reply With Quote
  #11  
Old 11 Apr 2007, 05:47
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Theres nothing on the plugin options where i can enable it. Here's all i see:
Attached Images
File Type: jpg forcestyles.jpg (145.7 KB, 34 views)
Reply With Quote
  #12  
Old 11 Apr 2007, 08:04
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
Originally Posted by |Jordan| View Post
Theres nothing on the plugin options where i can enable it. Here's all i see:
It it was missing, for some reason the setting was assigned to another of my hacks I have now rectified that, just update to the newest version and it will give you the setting.
__________________
-- The WS Spiders List is still downloadable from vBulletin.com.
-- As of Monday 1st July 2013, I will no longer be supporting my hacks as I am leaving the vBulletin community due to medical and life-style reasons.
Reply With Quote
  #13  
Old 11 Apr 2007, 14:45
farukcan's Avatar
farukcan farukcan is offline
 
Join Date: Oct 2006
offf,

not run...
Reply With Quote
  #14  
Old 11 Apr 2007, 18:39
|Jordan|'s Avatar
|Jordan| |Jordan| is offline
 
Join Date: Nov 2004
Originally Posted by jdsinclair View Post
It it was missing, for some reason the setting was assigned to another of my hacks I have now rectified that, just update to the newest version and it will give you the setting.
Any chance you can add an option that restricts users to more then 1 style ?

Pretty Please with a cherry on top
Reply With Quote
  #15  
Old 12 Apr 2007, 07:03
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Excellent hack thank you
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 11:33.

Layout Options | Width: Wide Color: