Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Restrict Style to Usergroup Details »
Restrict Style to Usergroup
Mod Version: 1.0.4, by Andreas (Coder) Andreas is offline
Developer Last Online: Mar 2019 I like it Show Printable Version Email this Page

vB Version: 4.2.0 Rating: (13 votes - 4.54 average) Installs: 274
Released: 09 Sep 2005 Last Update: 29 May 2012 Downloads: 1228
Not Supported DB Changes Uses Plugins  

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): http://www.vbulletin.org/forum/attac...chmentid=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

Download Now

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

Addons

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
Restrict style to Usergroup Andreas vBulletin 3.0 Full Releases 68 06 Aug 2006 19:20

  #31  
Old 30 Sep 2005, 19:27
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Strange, and normally can't happen.
Feel free to send me a PM with ACP details and i'll take a look.
Reply With Quote
  #32  
Old 03 Oct 2005, 19:34
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Real name: Austin
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?
Reply With Quote
  #33  
Old 03 Oct 2005, 19:42
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
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.
Reply With Quote
  #34  
Old 03 Oct 2005, 19:54
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Real name: Austin
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.
Reply With Quote
  #35  
Old 03 Oct 2005, 19:58
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
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.
Reply With Quote
  #36  
Old 03 Oct 2005, 20:02
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Real name: Austin
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?
Reply With Quote
  #37  
Old 03 Oct 2005, 20:12
Thomas Heretic Thomas Heretic is offline
 
Join Date: Sep 2003
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:
Reply With Quote
  #38  
Old 03 Oct 2005, 20:21
APhoenix APhoenix is offline
 
Join Date: Mar 2002
Originally Posted by Thomas Heretic
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.
Reply With Quote
  #39  
Old 03 Oct 2005, 20:27
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Real name: Austin
Well, at least I'm not seeing things. >_<;
Reply With Quote
  #40  
Old 03 Oct 2005, 20:30
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
http://kirbydemos.ath.cx/forum
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).
Reply With Quote
  #41  
Old 03 Oct 2005, 20:37
Thomas Heretic Thomas Heretic is offline
 
Join Date: Sep 2003
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?
Reply With Quote
  #42  
Old 03 Oct 2005, 20:38
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Hmm, if your allowed usergroups string exceeds 250 characters - that would indeed be a problem.
Reply With Quote
  #43  
Old 03 Oct 2005, 20:44
Thomas Heretic Thomas Heretic is offline
 
Join Date: Sep 2003
Originally Posted by KirbyDE
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.
Reply With Quote
  #44  
Old 03 Oct 2005, 20:45
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Real name: Austin
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)

Last edited by evenmonkeys; 03 Oct 2005 at 20:48.
Reply With Quote
  #45  
Old 03 Oct 2005, 20:48
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
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*
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 04:43.

Layout Options | Width: Wide Color: