![]() |
Force Style for Selected Users or Groups
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
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. |
install thanks .
|
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. |
Quote:
But don't forget that if you do use it, remember to click on Mark as Installed please. |
Quote:
|
Quote:
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. |
Well, you didn't say that, now did you. :)
In that case, this mod is perfect. :D |
Quote:
I better put this in the original post to clarify :D |
O the pain you can put a banned or restricted user through with a mod like this is just delicious! :D
|
excellent hack
|
Theres nothing on the plugin options where i can enable it. Here's all i see:
|
Quote:
|
offf, :(:(
not run... :( |
Quote:
Pretty Please with a cherry on top :) |
Excellent hack thank you
|
Quote:
What you need is a custom permissions to allow a user to have some styles but not others, and the only one that comes to mind is KirbyDE's Restrict Style to Usergroup hack which he released for v3.5.x before he became Andreas the vBulletin Developer. It is because of that hack that this one exists, and I have tested it on both v3.5.x and v3.6.x and it works for both and works fine with my hacks for both versions as well, but just to let you know that it is unsupported and is not likely to ever be supported, so if you have problems with it, you are on your own. |
Ah thx!
|
I am amazed this isn't a default feature of vBulletin. It's so useful.
Thanks. |
Thank you :) works perfectly!
|
I love this hack, as some of my board members like the styles to be different in each forum and others hate the styles changing on them. I've been using it for some time now.
One thing I would love to be able to do is create a joinable usergroup that would allow someone to set themselves on style override. But for some reason this only works if a person is only a member of one single group. If anybody has any idea how I could get around that quirk, I'd appreciate knowing it. |
Quote:
It is something I wrote for my forum and decided to release here. I have no desire to expand this hack at all, as it does exactly what I need it do it, and I hope others benefit from this as it is. |
I wasn't complaining about your hack or asking you to rewrite it - I was trying to use it for x purpose and ran into x problem and wondered if anyone knew a way around it. And although asking questions is normally an exercise in futility on here, every now and again I get lucky, so I ask anyway. :)
|
it would be nice if this hack didn't override the custom style settings for individual forums in the Forum Manager
|
very nice, i like your hack .. thanks!!!
|
Excellent. I use it on my biker site for users who start flaming. I force them to use a really ghey looking pink style until they calm down :p
Only problem is that the style has to be user selectable to work. Would be good if it worked on styles that are not user selectable. :up: |
Quote:
|
Quote:
|
just what i needed - thanks!
I'm running vB 3.7 BETA 4 and it works fine! :) |
I was searching a hack as soon as that..:)
Thanks so much guy.;) Installed |
Thanks for this mod!! Been using it a little while now.
Just having some issues with guest users seeing a custom style even though I'm not forcing it on them. Here's the situation: Parent style is the default style. Custom style is a child of the default. I'm forcing the custom child style on user groups that have been promoted to a certain level. I'm not forcing the custom child style on the guests, but they're seeing it anyway. I have a feeling it might be because I'm using it slightly different that you have it for your own forums (your default is a child style, and what you're forcing is the parent). Any help would be appreciated. Thanks! |
Quote:
The solution for you may be: Quote:
|
very good hack, this should be integrated in to VB anyway!
|
Hello,
I'm with vB 3.6.5 I created a special new style to test it. in my options styles are not selectable tried to force a special new secondary group to use this style. Did not work tried to force a special news main usergroup to use it. Did not work tried to force 1 user . It succeded. :-) 2 users too but with a third one it did not work... How is it possible ? |
Quote:
Let me know if it does not. |
Quote:
Thank you very much ! |
Quote:
|
Thanks
|
NOTE: 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.7.x version of this hack, as it also works with v3.6.10 (and maybe even earlier versions).
|
Hi All
How would I make this mod work as I want it to thus; I want to force a Style on a usergroup, but I don't want anyone else to be able to see or select this style unless it is forced on them...? Sounds unusual - but I have several members who don't want to see the ads AND who want the default vB style (as this is easy on their eyes). I dont want to have to create a derivative/child of my single style for them, so to allow them visibility of the default style containing no ads is the solution. They will have paid to support the site thus entitleing them not to see ads. Can I configure this hack (with template conditionals I guess) to work for these requirements...? |
All times are GMT. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|