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: 3.8.001, by Mosh (Coder) Mosh is offline
Developer Last Online: Jun 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (11 votes - 4.82 average) Installs: 98
Released: 21 Nov 2008 Last Update: Never Downloads: 466
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 Now

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

Screenshots

Click image for larger version

Name:	screenshot1.png
Views:	684
Size:	44.7 KB
ID:	89612   Click image for larger version

Name:	screenshot2.png
Views:	647
Size:	18.3 KB
ID:	89613   Click image for larger version

Name:	screenshot3.png
Views:	606
Size:	16.2 KB
ID:	89614  

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.7 Add-ons 34 21 Nov 2008 03:12
Miscellaneous Hacks Force Style for Selected Users or Groups Mosh vBulletin 3.6 Add-ons 38 12 Sep 2008 11:15

Comments
  #2  
Old 21 Nov 2008, 19:34
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Reserved.
__________________
My Mods:
Missing Images
Styles:
Hell Eye Shock
Reply With Quote
  #3  
Old 23 Nov 2008, 21:24
crkgb crkgb is offline
 
Join Date: Oct 2007
After reading the "hack support" portion I am scared to use this hack.
Reply With Quote
  #4  
Old 24 Nov 2008, 05:31
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
just upgrade myboard, gona try it out, thanks
__________________
PossibleAndroid
Reply With Quote
  #5  
Old 28 Dec 2008, 10:34
ziggylol ziggylol is offline
 
Join Date: Oct 2008
Thank you this hack, it is perfect for my site!
Reply With Quote
  #6  
Old 14 Jan 2009, 17:05
twistedsymphony twistedsymphony is offline
 
Join Date: Nov 2008
I just installed this on 3.7.4 it doesn't seem to be working. enabled it in the main option page, then went into the usergroups where I wanted to force a style and enabled it there and set the style...

one of the usergroups where I forced a style was the generic "not logged in/Guest" group but when I log out of my account, even after clearing my cache and restarting the browser as a guest I can still change the style by the drop down and when I select the different style the page changes.

your installation instructions were quite simple I find it hard to believe I messed something up.

Any help would be appreciated.

EDIT: Nevermind, my mistake... it IS forcing a style even though it allows you to chose a differet style...

Last edited by twistedsymphony; 14 Jan 2009 at 17:21.
Reply With Quote
  #7  
Old 14 Jan 2009, 17:55
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Where do you set the Usergroups? TIA.
__________________
My Mods:
Missing Images
Styles:
Hell Eye Shock
Reply With Quote
  #8  
Old 14 Jan 2009, 21:43
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
Originally Posted by twistedsymphony View Post
I just installed this on 3.7.4 it doesn't seem to be working. enabled it in the main option page, then went into the usergroups where I wanted to force a style and enabled it there and set the style...

one of the usergroups where I forced a style was the generic "not logged in/Guest" group but when I log out of my account, even after clearing my cache and restarting the browser as a guest I can still change the style by the drop down and when I select the different style the page changes.

your installation instructions were quite simple I find it hard to believe I messed something up.

Any help would be appreciated.

EDIT: Nevermind, my mistake... it IS forcing a style even though it allows you to chose a differet style...
This should help you (already in the first post):
Originally Posted by 1st Post
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, 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.
__________________
-- 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
  #9  
Old 14 Jan 2009, 21:45
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
Originally Posted by Fungsten View Post
Where do you set the Usergroups? TIA.
Do step #5 (already in first post):
Originally Posted by 1st Post
Installation 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.
__________________
-- 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
  #10  
Old 14 Jan 2009, 22:06
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Originally Posted by Mosh View Post
Do step #5 (already in first post):
I re-uploaded the bitfile. For some reason it got deleted. Thanks!!
__________________
My Mods:
Missing Images
Styles:
Hell Eye Shock
Reply With Quote
  #11  
Old 26 Jan 2009, 15:55
tony adams tony adams is offline
 
Join Date: Oct 2004
installed - many thanks
Reply With Quote
  #12  
Old 10 Feb 2009, 11:07
craig5320's Avatar
craig5320 craig5320 is offline
 
Join Date: Aug 2004
Hi,

It works great, but I have a forced style on one of my vBAdvanced pages and it overrides this as well. I see the option not to override custom forum styles but this has no effect on the vBa page, would there be an easy solution?

Thanks

EDIT: I altered the plugin to execute at 4 instead of 5, allowing the vBa code to execute after and it seems to be working
Reply With Quote
  #13  
Old 14 Feb 2009, 04:07
smirkley smirkley is offline
 
Join Date: Apr 2008
Question,...I have two styles,...

1 - one for guests and members,..and one I force on all staff levels.

Works for the admin levels,...but even though set for mods and smods also, the mods and smods still only see the guest/member style.

I dont have it set where a user can select a style.

Hopefully it is just a setting, maybe I need a pointer?
Reply With Quote
  #14  
Old 15 Feb 2009, 16:22
smirkley smirkley is offline
 
Join Date: Apr 2008
OK, after much troubleshooting and reinstall to get this running as I described, I have come to the conclusion that I cannot get it to operate properly and there may be a bug.

I am running vB3.8.1 and using the install on this page for the hack. (I did have the old one installed but overwrote everything for this install)

Anyways, I have the admin group set to the child style, as well as the mods and smods.

The mods and smods still revert to the parent style though, and I have found that I cannot select and enter an individual mod or smod userid to force the child style onto also.

So basically, any mod or smod cannot be forced onto, either by usergroup, nor userid.

As a note, the only difference to my parent/child styles, is I have google adsense in the vb advert templates for guest and member view, otherwise they are identical.

Some assistance is greatly appreciated as this modification is one of my fav's.

thanks in advance
Reply With Quote
  #15  
Old 15 Feb 2009, 22:53
smirkley smirkley is offline
 
Join Date: Apr 2008
Ummmm,....

Ok,....nvmnd.

(problem was on my end, forgot I was an admin and I didnt have the child skin enabled.)

Egads.

(tnx again)
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 21:19.

Layout Options | Width: Wide Color: