![]() |
Restrict Style Changes To Specific Usergroups
Author: NTLDR
Version: 1.0.0 Requested By: restless (here) vB Compatibility: vB3 Gamma, RC1, RC2 Description: This hack will allow you to restrict users ability to change the board style based on there usergroup, usefull for premium members etc. Note, this will mean members not in these groups will only have access to ONE style, the default board one (or a forum specific one). File Edits: In global.php find: PHP Code:
PHP Code:
|
excellent stuff.
|
Yep, I've already got this working. But what would be cool is the ability to enable/disable a specified style on a usergroup basis.
|
Does this work on vb2 as well? I just tried it on a 2.3.0 but a test user not in a usergroup in the array could change styles. I would love to have this on vb2. If its a slight difference with the above, please let me know. thanks!
would this work? in member.php: PHP Code:
|
there is spetial hack for 2.3.0 same to this one just search in Code Modification vB2 -> Full Releases
NTLDR, is any chanse to make it work throgh AdminCP? I now it need to make database queries but... Thanks |
When Kura has released the HTL hack I'll create another version that has an ACP setting, untill then you manually need to enter the code.
|
Is there a way to modify it to allow only certain usergroups to have access to certain styles?
For example, a selection of premuim styles for members that donate money, and a selection for normal members? |
hmm...i was going to add this, the i thought, what happens when their premium membership runs out. they won't be able to access it anymore and it will be left at the last one they selected cause of the cookie it sets.
This is a good idea, but I think needs better integration and defineable by usergroup on which styles they are allowed to choose. |
wouldn't it be the same as if the style was disabled? Then it would revert to the default forum style?
|
i don't think so, from what i have seen as soon as u change it, even with a link and not by the dropdown, it sets a cookie.
i don't think this will stop them from just appending &styleid=5 in the url ether tho. |
Will this hack allow me to do the following?
I want unregistered/guests to see a certain style. The rest of the usergroups can see another one. |
Yes it will, provided the default style is the one for guests to see.
|
Ok, then I'm confused. How do I configure it that way?
|
Will you upgrade this hack in the future, so i can select for instance, style 1 and 2 for usergroup x, and style 3, and 4 for usergroup y?
|
yah, what I am looking for is to have one style that doesn't include any of my advertisers, banners, etc, on it - and allow members who donate the possiblity to select that style - if say i move them into a certain usergroup - any ideas??
|
This hack only appears to grant permission to change styles when the usergroup is that users primary usergroup. At least that's the way it's working on my board. My subscription system is based on alternate usergroups. Is there any way to make it grant permission to change styles if the user belongs to an alternate usergroup that should have permisssion?
|
thank you very much. i wanted this so much.
later sonic |
This is perfect, thank you very much!
/Martin |
Would love a MOD that simply allows Admin to set a style for each usergroup
!!! Cheers |
indeed id like see this via Admin CP
|
*bump*
Anyone know how to change the conditional so it allows subscribers in alternate usergroups the same privilege? |
when i put this code in the global.php the dropdown for the styles disappears. any ideas?
|
Well, that's what this hack is all about:
It removes the ability to change styles if you are not a primary member of the specified usergroups. @beano33 Use PHP Code:
Or apply this hack (I really feel this should become factory code as it is needed often) so is_member_of() can check for several usergroup IDs: PHP Code:
|
i want a option to allow users in certain groups to be able to select certain skins/styles.
|
Quote:
|
can u point me in the right direction
|
does this work with 3.5.2? seems very simple to install
|
All times are GMT. The time now is 04:43 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:
|