PDA

View Full Version : Miscellaneous Hacks - Restrict Style to Usergroup


Andreas
09-08-2005, 10:00 PM
Restrict Style to Usergroup(s)

Description
This Hack allows you to restrict styles to certain usergroups.

Details
1 Product XML (4 Plugins, 1 Phrase).

Screenshot (from the 3.0 Version; very similar): https://vborg.vbsupport.ru/attachment.php?attachmentid=26703

History
1.0.0
Initial Version

1.0.1
Slight Bugfix regarding secondary Usergroups not working properly

1.0.2
Converted to a Product; no more file edits necessary

1.0.3
Fixed a Bug that caused this Hack to not work at all ;)

1.0.4
Compatibility Update for vBulletin 4.1.11+

Compatibility
This Add-on is compatible with vBulletin 3.5.X, 3.6.X, 3.7.X, 3.8.X, 4.0.X, 4.1.X and 4.2.0

Attention: This Hack does not work with Show Users using Style in Style Chooser (https://vborg.vbsupport.ru/showthread.php?s=&threadid=95637)

Boofo
09-09-2005, 05:32 AM
Good job! Apparently you found hooks that would work, huh? ;)

Andreas
09-09-2005, 05:38 AM
Not really ... there are no Hooks to display the Controls (Usergroups Selector).
But the really important Hooks (Data-Saving) are there, for the GUI Stuff I use a dirty Trick ;)

Boofo
09-09-2005, 05:40 AM
Whatever works, right? ;)

RoryF
09-09-2005, 02:12 PM
Grand job :).

I get an error though when i edit the settings.

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
SELECT allowedusergroups FROM style WHERE styleid = 2;

MySQL Error : Unknown column 'allowedusergroups' in 'field list'
Error Number : 1054
Date : Friday, September 9th 2005 @ 11:10:52 AM
Script : http://*************/forum/admincp/template.php?s=&group=&do=editstyle&dostyleid=2
Referrer : http://*************/forum/admincp/template.php?do=modify&group=&expandset=2
IP Address : ************
Username : Rory
Classname : vB_Database

Snake
09-09-2005, 03:36 PM
Screenshots please?

RoryF
09-09-2005, 03:46 PM
Screenshot is already in the post ;). It's just a link.

Screenshot URL is here => https://vborg.vbsupport.ru/attachment.php?attachmentid=26703

Andreas
09-09-2005, 04:14 PM
Grand job :).

I get an error though when i edit the settings.

Doh! I forgot the Install Code ^.^

Redownload the ZIP and import the new XML or

ALTER TABLE style ADD allowedusergroups VARCHAR(250) NOT NULL DEFAULT ''

Snake
09-09-2005, 04:45 PM
Whoops my bad. Thanks for the hack.

Oblivion Knight
09-11-2005, 04:50 PM
So if no usergroups are selected and the style is active; the style can be used by all usergroups. Correct?

Andreas
09-11-2005, 07:34 PM
Exactly.

Gray Matter
09-14-2005, 01:20 AM
Thanks for this Kirby, you know I've been looking out for it. ;)

nexialys
09-20-2005, 04:44 PM
don't know if it's just me, but THERE IS a hook in 'editstyle'...

>> admin_style_form

so your plugin "Prepare Usergroup Selector" can be rebuilt a little, i think... i've recreated the process myself and it's working... <plugin active="1">
<title>Restrict Styles to Usergroup: Prepare Usergroup Selector</title>
<hookname>admin_style_form</hookname>
<phpcode><![CDATA[
print_membergroup_row($vbphrase['restrict_to_usergroup'], 'allowedusergroups', 0, array('membergroupids' => $style['allowedusergroups']));
]]></phpcode>
</plugin>

Andreas
09-20-2005, 04:50 PM
Interesting. My RC3 does not have Hook admin_style_form there - only in addstyle.
That's why I requested (http://www.vbulletin.com/forum/showpost.php?p=958188&postcount=340) it to be in editstyle too.
But maybe my RC3 is different from yours.
What's the CVS Version of your template.php?

Edit: OK. Revision 1.232 of template.php does have the Hook there, Revision 1.231 (which was the RC3 one I had) does not ;)

Gonna update the XML :)

nexialys
09-20-2005, 05:01 PM
when they released the RC3 publically, 30 secondes before the release, they thought "Darm We Forgot KirbyDE"... lol

oh btw, suggestion, i know there is no hook in that function, but it would be great to filter the styles in the dropdowns too...

"function construct_style_options" ... in functions.php!

Andreas
09-20-2005, 05:03 PM
LOL.
I had the staff preview and expected that there were no changes to the official RC3 - guess I was wrong.

Andreas
09-20-2005, 05:07 PM
oh btw, suggestion, i know there is no hook in that function, but it would be great to filter the styles in the dropdowns too...

You mean in the Quick Style Chooser and profile.php?
Should be filtered - except if you are Admin.

nexialys
09-20-2005, 05:12 PM
You mean in the Quick Style Chooser and profile.php?
Should be filtered - except if you are Admin.
ARGH, damn stupidity to be an admin... lol... too much privileges!

NOTA: just read the TYPO in the thead title... ;)

Christine
09-24-2005, 04:31 PM
If we set a style for subscribing members and their subscription expires, do they get to keep the style or can it default them back to the forum default?

amykhar
09-24-2005, 04:42 PM
If it works like my original one did, it doesn't let people in usergroups that aren't allowed to use the style access the style. So, if the subscription changes their usergroup, they are no longer able to use that style.

Andreas
09-24-2005, 04:55 PM
@Christine
If they are not in a Usergroup that is allowed to use the Style, it will fallback to forum default in runtime.
Just like it would for not-existing styles or non-user selectable styles.

Christine
09-24-2005, 05:10 PM
Thanks Amy and Kirby.

Nice hack! :)

ged
09-25-2005, 02:42 PM
Doesn't it work on existing styles? I couldn't find it on Style Settings...

poolking
09-25-2005, 02:49 PM
/me installed.

Andreas
09-25-2005, 08:50 PM
Doesn't it work on existing styles? I couldn't find it on Style Settings...
Yes it does.
Do you run RC3?

Cornolio
09-30-2005, 10:53 AM
installed on 3.5 gold.. it doesn't work properly :ermm:

Andreas
09-30-2005, 12:08 PM
What exactly does "not work properly"?

Cornolio
09-30-2005, 03:35 PM
it's hard to explain... cause it behave in different way...
once i ticked style1 only for groupA, and style2 only for groupB -> groupA had style2 and groupB style1 :\

now i'm trying different solutions but it seems not to have any effects. i mean: whatever i choose, nothing changes.

Incendium
09-30-2005, 03:40 PM
it's hard to explain... cause it behave in different way...
once i ticked style1 only for groupA, and style2 only for groupB -> groupA had style2 and groupB style1 :\

now i'm trying different solutions but it seems not to have any effects. i mean: whatever i choose, nothing changes.

I'm not sure if you know this or not, but when you manually change the style (via link), you can view the styles you don't allow the users of that group to view.

Cornolio
09-30-2005, 03:46 PM
i know :) infact "groupA" is my group (admin), and "groupB" is for "unregistred" (so i use another browser to test if it works)

Andreas
09-30-2005, 05:27 PM
Strange, and normally can't happen.
Feel free to send me a PM with ACP details and i'll take a look.

evenmonkeys
10-03-2005, 05:34 PM
I've got a problem with this. It's not working like I think it should be working. First of all, this style will not show up PERIOD unless I have allow user selection turned on. If I have it turned off, but I have usergroups allowed to see it, they cannot see it at all- not even with the link. If I turn user selection on, everyone can see it if they are given the link or choose it from the UserCP.

Does this not work for 3.5 Gold?

Andreas
10-03-2005, 05:42 PM
It does work with Gold, however Users must be allowed to change Styles and the Style must be User selectable.
Furthermore, you can't restrict the usage of the default Style, as this Style will be used as fallback.

evenmonkeys
10-03-2005, 05:54 PM
What's the point of the hack then? You say that it has to be user selectable, but the point of the hack is to disallow certain usergroups of using it. I don't understand how this hack is suppose to work then.

I've got four styles. I've got a default, two variations of a style, and a new style. The new style and one of the two variations are meant to be private. The only way you can EVER view these styles is when the user selection is checked. Are you required to have the primary usergroup be the one that views this style? I've got it set as secondary because I don't want to change primary usergroups for select admins and super mods.

I'm so confused.

Andreas
10-03-2005, 05:58 PM
Styles that are not user-selectable can't be selected by any User except Admins, so the Styles must be user-selectable.
It doesn't matter if the Usergroup is primary or secondary - the user just has to be member of the allowed groups.

evenmonkeys
10-03-2005, 06:02 PM
I'm still not understanding.

For Style B, I have it checked with user sel and I have Administrators, UsergroupA and UsergroupB checked only. I made a test account as a Registered User. When I logged on, I was able to view the style by typing in the url. O_o Shouldn't it not work?

Thomas Heretic
10-03-2005, 06:12 PM
On vb 3.5 gold it appears to be not function at all. Only an admin account can change see the restricted style. I tried selecting just the usergroup they are in, selecting an usergroup they were not in and selecting all the usergroups. No change in behavior.
Would love to have this. Perhaps I have done something wrong. :ermm:

APhoenix
10-03-2005, 06:21 PM
On vb 3.5 gold it appears to be not function at all. Only an admin account can change see the restricted style. I tried selecting just the usergroup they are in, selecting an usergroup they were not in and selecting all the usergroups. No change in behavior.
Would love to have this. Perhaps I have done something wrong. :ermm:

I just tried installing on Gold as well, and am seeing the same problem as Thomas. Users in the authorized groups cannot see the style selector, and cannot choose the specific styles.

evenmonkeys
10-03-2005, 06:27 PM
Well, at least I'm not seeing things. >_<;

Andreas
10-03-2005, 06:30 PM
<a href="http://kirbydemos.ath.cx/forum" target="_blank">http://kirbydemos.ath.cx/forum</a>
3 Styles are installed:
- Default (ID 1)
- Group A Style (ID 2)
- Group B Style (ID 3)

Only Users who are member of Usergroup A can use Group A style, and only members of Group B can use group B style.
(Those are public joinable groups so you can test yourself).

Thomas Heretic
10-03-2005, 06:37 PM
I wonder if it has anything to do with number of usergroups? I've tried just about every combination of moving styles and usergroup selection. Moved a user into just one usergroup, moved style to root level, child level, etc. No change.
Any ideas?

Andreas
10-03-2005, 06:38 PM
Hmm, if your allowed usergroups string exceeds 250 characters - that would indeed be a problem.

Thomas Heretic
10-03-2005, 06:44 PM
Hmm, if your allowed usergroups string exceeds 250 characters - that would indeed be a problem.

Not hitting that. The database if filling with the correct usergroup ids (comma delimited). It is pulling out correctly for populating the check boxes. Hmmm.

evenmonkeys
10-03-2005, 06:45 PM
Something must be different then. I believe that I have it set up identically to yours... but it's still not working. Mine looks like this...

(x) = User Selection Turned Off & Zero Usergroups Assigned
(o) = User Selection Turned On & One Usergroup Assigned

> Default (o) <-- Default Style Upon Registering
>> Style A (x)
>>> Style A1 (o)
>> Style B (x)
>>> Style B1 (o)
>> Style Z (x)

Andreas
10-03-2005, 06:48 PM
Not sure if a setup like this would work ... how should A1 and B1 be displayed in the chooser if the parent styles are not selectable?
*testing*

evenmonkeys
10-03-2005, 07:09 PM
I set it up like this... and it's still not working.

> Style A (All, Default)
>> Style A1 (UserA)
>> Style B (UserB)
>>> Style B1 (UserB, UserB1)
>> Style C (UserC)
>>> Style C1 (UserC, UserC1)

I've tried it with and without setting User Selection. I think I've tried everything. I'm lost. Lost and helpless. :ermm:

Andreas
10-03-2005, 07:23 PM
After being able to reproduce the problem on another Board:
ZIP updated

evenmonkeys
10-03-2005, 07:36 PM
It works! Thank you so much for your patience.

Thomas Heretic
10-03-2005, 07:44 PM
Great work, thank you so much.

csidlernet
10-05-2005, 02:58 AM
thanks lots!!
/me installs

Snake
10-06-2005, 07:07 PM
Installed.

jluerken
10-09-2005, 01:39 PM
I only allowed administrators to use a special style but still even guests are allowed to choose this style via the style browser in the footer.

Can you assist kirbyde?

JGNYC
10-09-2005, 03:20 PM
Not working here either.
If I set it to user selectable it can be used by everyone.

If I set user selectable to NO and choose a group, it wont work.

Any ideas?

Andreas
10-09-2005, 06:33 PM
I don't know why it does not work and I can't fix it (as I don't know why it does not work :)).
Feel free to send me ACP Logins and i'll take a look.

JGNYC
10-09-2005, 06:51 PM
I'm attaching a screenshot of me trying to just allow the moderators permission to view the style.

Am I doing it correctly?

Andreas
10-09-2005, 07:59 PM
For those having having problems getting this Hack to work: please check the updated first post.

JGNYC
10-09-2005, 08:16 PM
For those having having problems getting this Hack to work: please check the updated first post.
If we don't have that hack installed, is there any other way to fix it?

Andreas
10-09-2005, 08:19 PM
No. I can't fix it (as I don't know what is causing problems).
But feel free to send me a PM with an ACP login and i'll take a look.

JGNYC
10-09-2005, 08:29 PM
No. I can't fix it (as I don't know what is causing problems).
But feel free to send me a PM with an ACP login and i'll take a look.
PM sent!

Julie
10-11-2005, 01:39 PM
Been looking for something like this for ages, thanks! :D Don't know if it works yet though, haven't tried it out yet ...

Boofo
10-11-2005, 01:46 PM
I just noticed this in the first post. If we are using that hack, this won't work then?


Attention: This Hack does not work with Show Users using Style in Style Chooser (https://vborg.vbsupport.ru/showthread.php?s=&threadid=95637)

Andreas
10-11-2005, 02:12 PM
Yep. It does not work due to a "design problem" of the vBulletin Plugin System :)

Boofo
10-11-2005, 02:44 PM
So, use one or the other but not both. Will you be updating this as the plug-in system gets updated then?

Andreas
10-11-2005, 02:54 PM
The design problem which causes these two Hacks to not work together will probably never be changed :)

Xplorer4x4
10-16-2005, 11:58 PM
I had the Show Users using Style in Style Chooser hack instaled AND this. Then I realized I had to uninstall the other. I didn't really care that much. However that was the only modification I did today and afterwards one member was having a DB Error. I had to log into his acount to reporduce the problem and I got this:
Database error in vBulletin 3.5.0:
Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(filedata) AS hascustom, customavatar.dateline,
customavatar.width, customavatar.height
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =;
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Error Number : 1064
Date : Sunday, October 16th 2005 @ 07:39:03 PM
Script : http://www.xtremepain.net/forums/index.php
Referrer :
IP Address :
Username :
Classname : vb_database

I simply disabled and enabled the plug in system and it seem to solve the DB issue.

Andreas
10-17-2005, 12:09 AM
This error most likely is not caused by this Hack; furthermore, this query (issued by fetch_avatar_url() ?) is not a standard query used by index.php

lazyseller
11-09-2005, 09:13 PM
great hack thanks

theArchitect
11-11-2005, 10:17 PM
I have an idea for cobranding that im working on and trying to implement this hack.

i setup a special usergroup called COBRAND2 and as well a template called COBRAND2Template. I want users in cobrand2 to only see the cobrand2template but for some reason once a user logs out and back in he uses the default template

Is it just me, or has this hack stopped working on 3.5.1?

It was working fine when I first installed it, but since the upgrade all user groups can access all styles. I have re-checked and apart from 2 styles, all of my other styles should not be visable to other user groups.

Any thoughts?

Andreas
11-11-2005, 10:19 PM
Admins can see all styles ...
Except that, I don't see any reason why it would not work - though you might have to rebuild the stylecache once (edit one style, click save without making any changes).

theArchitect
11-11-2005, 10:30 PM
Admins can see all styles ...
Except that, I don't see any reason why it would not work - though you might have to rebuild the stylecache once (edit one style, click save without making any changes).

Thanks for the reply.

I tested it using a "Registered User" account, so the permissions should be in effect. I have also rebuilt the style information but stil no go.

I will look into it further, as it could be a template (or code) issue at my end. I have just use my fail safe and viewed the forum via the Default (or unhacked) style. And in this style no style chooser is being displayed.

So I will have a play around and see if I can work it out.

Many thanks for your prompt responce.

Gray Matter
11-13-2005, 07:50 AM
This doesn't work on my 3.5.1 either. :(

Andreas
11-13-2005, 10:39 AM
I didn't test it but I see no reason why it should not work.

Rhoads
11-13-2005, 11:15 AM
I didn't test it but I see no reason why it should not work.
I have vB 3.5.1 and it working great :)

Gray Matter
11-13-2005, 12:35 PM
Hm.. I'll remove it from my forum, redownload the zip file and upload that XML file and then re-import it. I'll get back to you. :)

Edited to Add: This was definitely a mistake on my part. I feel a little embarassed now. :disappointed:

The problem was that I originally had the style set to non-selectable and then added this product and edited the settings to choose which groups could access it, but I never made the style selectable globally. Maybe you could add something about that to the instructions? Just to say that you need to have the style globally available for this product to function correctly. :)

kameraderie
02-09-2006, 12:16 PM
this is what i have been waiting for...

can this be applied to vbulletin 3.5.3?

thanks!

Totti
02-09-2006, 09:51 PM
thanks a lot ... exactly what i was looking for!!

robert_2004
06-18-2006, 02:07 PM
will this work with child styles?
also, will this work with purely assigning a specific usergroup to a specific style template?

As i have been working on my multi-site hack, i want each site to look different, so they are all running as children under one style.
Also, we have set each site to be given a different "unregistered/guest usergroup", as well as register, awaiting, and moderators (each site has it's own set).

Therefore, when someone visits the 2nd site, and placed into the 2nd lot of usergroups (starting as 'guest'), i want them to be using a specific child sytleid.

So far, it's not working - the member is still using the parent, even though i've ticked that set of usergroups to only view that child styleid.

Mosh
06-18-2006, 03:35 PM
will this work with child styles?
also, will this work with purely assigning a specific usergroup to a specific style template?

As i have been working on my multi-site hack, i want each site to look different, so they are all running as children under one style.
Also, we have set each site to be given a different "unregistered/guest usergroup", as well as register, awaiting, and moderators (each site has it's own set).

Therefore, when someone visits the 2nd site, and placed into the 2nd lot of usergroups (starting as 'guest'), i want them to be using a specific child sytleid.

So far, it's not working - the member is still using the parent, even though i've ticked that set of usergroups to only view that child styleid.
Use my add-on [Force Style to Certain Usergroup(s) and/or User(s)], it was created just for this situation, see the 1st post for the link :)

Mosh
06-18-2006, 03:36 PM
this is what i have been waiting for...

can this be applied to vbulletin 3.5.3?

thanks!
Yes, it works fine :)

Noiz Pollution
07-09-2006, 06:34 PM
Will this be re-released for 3.6.x? :)

Andreas
08-05-2006, 04:20 PM
> Will this be re-released for 3.6.x?
No.

Moreliator
08-07-2006, 03:58 PM
has anyone tried this on 3.6? might it work?

Gandalf-LoJ
08-18-2006, 08:02 AM
has anyone tried this on 3.6? might it work?

I've just tried this on our test forum and it seems to work fine.

dutchbb
01-27-2007, 01:38 AM
Can you add what default style each group should have? Because now there's only one switch for all groups. Invision Power Board has it per usergroup, definitely something vb needs anyway, maybe you can convince other developers at vbulletin, thanks Kirby :)

The Notorious
02-02-2007, 06:23 PM
Installed!

Lucky Seven
08-03-2007, 01:05 PM
I've just tried this on our test forum and it seems to work fine.

I've tried it on 3.6.8 (recent upgrade) and it doesn't seem to be working anymore, despite a re-install of the product. It's a shame because I liked having this feature.

Gray Matter
08-15-2007, 05:42 AM
I've tried it on 3.6.8 (recent upgrade) and it doesn't seem to be working anymore, despite a re-install of the product. It's a shame because I liked having this feature.

It works fine for me on 3.6.8. :)

WarLion
09-10-2007, 08:04 AM
is working on 3.6.8 for me as well thanks this is what i been looking for

indie2industry
02-23-2008, 03:05 PM
ok, How do you get to that screen is the screenshot pic in the first post??? (3.6.8 users)
I just want to make sure it installed correctly

EDIT: Figured it out & works perfectly.

GoTTi
04-04-2008, 05:33 AM
works with 3.6.8

Mosh
04-04-2008, 09:50 AM
This works with 3.5.x, 3.6.x and all 3.7.0 Beta and Release Candidates so far, with no issues at all.

OsideRida06
06-04-2008, 01:29 AM
Installed on my 3.7. Thanks for the great hack!

TraumTeam
06-11-2008, 11:48 AM
I have some problem togehter with force style usergroups with 3.7

I have an adfree style. This is restricted to some specific usergroups and when somebody is promoted to this usergroup it is forced through the other product (force style).

Now i had the problem, that guest see the adfree version, although they are not in the restricted groups, its as default and this group is not forced. I changed the hook that first force style is hooked and after that restrict style.

Before it was working also with restrict style first and then force.

With this system i cant give any person the adfree style without bringing him into an adfree usergroup. That worked before.

Strange is, that the default Style is not working, when its the other way round. Currently I watch out for users, who are having problems now.

greetings
Rob

fulviods
06-16-2008, 09:15 AM
Perfect on 3.7! thanks :)

Ingress
06-28-2008, 04:37 AM
Installed on 3.7.2, no problems so far.

Ingress

PGAmerica
08-25-2008, 05:22 PM
I have it running on my 3.7.2 PL2 without any problems at all.

Good Job

Mosh
11-27-2008, 08:18 PM
This works with 3.5.x, 3.6.x, 3.7.x and all 3.8.0 Beta releases so far, with no issues at all. I expect that it will work well until at least v4 comes out.

tony adams
01-16-2009, 01:49 PM
installed on 3.8 - works a treat

thanks

srkrocks
01-22-2009, 08:01 AM
thank you so much for this!! I have been looking for this for a while! and atlast found it! :D

Greenskull
02-01-2009, 09:17 AM
its not working for me. since installing it, there isn't a box for changing the style at the bottom anymore. Would there be a reason for this?

EDIT: I disabled it then re-enabled it and it works now. Odd.

Good job, btw

jazde86
02-01-2009, 10:08 AM
Hmm, not working with vB 3.8 - any chance to get it working with the Show Users using Style in Style Chooser (https://vborg.vbsupport.ru/showthread.php?s=&threadid=95637) Add-on?

Andreas
02-01-2009, 11:14 AM
Show Users using Style in Style Chooser is crap and should not be used at all.

Rene Kriest
03-14-2009, 03:15 PM
Show Users using Style in Style Chooser is crap and should not be used at all.
ROFL!

Any insights why you call your own product a pile of sh1at? :D

Andreas
03-16-2009, 04:40 PM
Because it is ;)

napy8gen
05-26-2009, 04:57 AM
thank you great mods!

Keesa
09-14-2009, 05:00 PM
I do not understand how this is supposed to work. I have restricted one style so only certain usergroups can use it, but it still shows to unregistered users.

Hmmmmmmm.

Mosh
11-28-2009, 07:16 AM
This hack works with vBulletin v4.0.0 Beta 3 and 4 ;)

It is bloody amazing, this hack has been working faithfully for me since v3.5.x (over 4 years ago), which is why this my favourite hack :)

Big Kahuna
12-26-2009, 07:43 PM
This is just what I was looking for. over the last 8 years I've developed about ten styles -- and every time I'd delete one I thought wasn't being used -- everyone screamed. I use this hack so that the non-paying members get the default style -- while the premium members get their choice of a dozen or so.

nefarious
04-07-2010, 10:13 AM
I have this installed and running so that premium members can use the mobile skin... and it appears to work on most devices, but some Blackberry users can't even see the quick chooser and when given the direct URL to change the skin they are still reverted back to the default skin.

Anyone encountered this or can think of a way for this to work with Blackberry - or is it an inherent Blackberry problem that can't be resolved?

We are currently using 3.7.4

Andreas
04-07-2010, 10:30 AM
Easy test: Disable this Add-on, if they still can't use the style afterwards it's not a problem with this Add-on :)

nefarious
04-07-2010, 10:58 AM
That was my first thought... I've already asked a user having problems to let me know when they are online so we can test it.

Snug
08-28-2010, 10:54 PM
when ever i add it to my skin it combines two of the skins... weird

Alfa1
03-03-2011, 08:35 AM
This addon seems to be causing the following error:

Warning: Invalid argument supplied for foreach() in /forum/global.php(238) : eval()'d code on line 275

Fatal error: Cannot use string offset as an array in /forum/global.php(355) : eval()'d code on line 428
Its weird because I have been using this addon for years without problems. We recently updated to the latest version of php, xcache, apache, etc. So maybe that changed something.
Do you have any idea how to fix this?

baileyjojoms
05-16-2011, 01:54 AM
Installed and using on 4.1.3

mrderanged
08-03-2011, 02:43 PM
I'm trying to test this on a closed board right now. Are admins exempt from style permissions? I ask because I set a skin to be accessible only to a paid group and as an admin I'm still able to access it.

Regards

Jman423
10-21-2011, 10:41 PM
I just installed this on 4.1.5 PL1 and it seems to be working just fine.

dspalton
11-01-2011, 10:15 AM
any idea if this is supported in 4.1.7?
We have it working on most browsers other that good old IE 8 + 9

David

fulviods
03-11-2012, 05:21 PM
This addon seems to be causing the following error:


Its weird because I have been using this addon for years without problems. We recently updated to the latest version of php, xcache, apache, etc. So maybe that changed something.
Do you have any idea how to fix this?

I have the same problem, so i had to uninstall it :(

THX_Ultra
05-02-2012, 07:32 AM
This is a great an extremely useful add-on - but when I install it in 4.1.12 - i get an error message

Warnung: Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(999) : eval()'d code (Zeile 6)


Any chance to get that running with 4.1.12?

Or are there any alternatives - because it would be extremely useful for us. We have usergroups where we'd like to restrict the usage of certain styles.

best regards Michael

THX_Ultra
05-29-2012, 09:47 AM
Any news on that? Especially 4.2.0 has been released.

Doesn't seem to be developed anymore, or am I wrong?

Any help would be greatly appreciated ;)

BlessedFWI
05-29-2012, 10:14 AM
I would really like something like this. I am currently running vB4.2 and would love to have this mod.

soniceffect
05-29-2012, 10:20 AM
Also interested :) ...

BlessedFWI
05-29-2012, 11:01 AM
I just uploaded it to my test site and it seems to be working. Thank you! I will try adding to my live site and see how it goes. Thanks so much for making it work with vB4.2. :D

Edited to update:

OK, I uploaded it to my live site and when I restricted one style to a certain usergroup all it changed was my header but not the actual colors of the style/theme that I selected. I had to uninstall it to have it the correct colors. Can that be fixed?

Edited to add:

Hmmmmm, I uploaded it again and now it seems fine. I think I messed up somehow...wouldn't be the first time. :p If I have any issues I will certainly let you know! Sorry about that.

Again, thank you for this mod!

ged
06-26-2012, 02:44 PM
This is a very good modification.

sodasusu
07-01-2012, 07:57 AM
its work with vbulletin 4.2.0 nice mods

stledger
07-14-2012, 12:19 PM
Doesn't seem to work with bulletin 4.2 patch lvl 2

nefarious
07-14-2012, 12:25 PM
Works for me, 4.2.0 patch level 2

Dark Pulse
08-14-2012, 11:15 AM
Definitely still works on 4.2.0 PL1. Hopefully the author resumes supporting it again in case things break with updates!

dadoc
08-16-2012, 08:19 AM
Any news on that? Especially 4.2.0 has been released.

Doesn't seem to be developed anymore, or am I wrong?

Any help would be greatly appreciated ;)

I had the same error as this

Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(999)

Download the xml file not the zip folder

zip contains version 1.0.3 the other is 1.0.4

I hope this helps you out

DetroitYES
08-20-2012, 04:19 PM
I like it so far! Will rate once I see how well it behaves with parent/child style situations, specifically with the Blog's style override option (and another in house product we use that also makes use of style overrides)...

Would like to setup a set of skins with ads and a set of skins without ads...

DetroitYES
08-22-2012, 05:25 PM
Hi Andres, check your inbox, I did some work on this to make it a little more robust, did not want to post the xml here...

Amaury
12-23-2012, 08:43 PM
Which file do I download? The .zip or .xml?

WorldCraft
01-03-2013, 03:25 AM
The .zip has the old version.

Amaury
01-22-2013, 11:41 PM
The .zip has the old version.

So the .xml one, correct?

generalpatton
01-30-2013, 07:14 PM
not working for 4.2 on latest patch

when set to user selection available but have usergroups set the theme breaks

Drache
10-05-2013, 11:24 AM
does this work with 4.21?

fxdigi-cash
10-05-2013, 06:51 PM
Yes, it does... I'm using it on the latest versions of vb4.x.x

Masterix
06-01-2014, 05:25 PM
Very usefull! (3.8.7 - P4)

PikeyXB
08-07-2014, 02:12 PM
v4.2.2 it breaks the theme, looses the colour on Navbar and forum titles only appear when mouse over.

tbworld
08-07-2014, 08:15 PM
v4.2.2 it breaks the theme, looses the colour on Navbar and forum titles only appear when mouse over.

This modification is very simple, it does not alter any templates, CSS or the presentation view in general. You might try clearing your vbulletin cache and your browser's cache. :)

spamgirl
04-18-2015, 03:14 PM
When I activate this plugin, all themes stop working, even though the usergroup of the accounts I'm testing on are permitted. Did anyone else have this issue and solve it?

ka81
01-11-2016, 03:23 PM
yes, the same for me on my vb 4.1.8 - vb4 default theme is gone a little bit crazy - colors missed, some backgroungs missed, text is not lined normally...

Elixar
02-12-2016, 04:46 AM
It broke a new theme I installed upon restricting it to a group.