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: 1226
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 18:20

Comments
  #2  
Old 09 Sep 2005, 06:32
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Good job! Apparently you found hooks that would work, huh?
Reply With Quote
  #3  
Old 09 Sep 2005, 06:38
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
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
Reply With Quote
  #4  
Old 09 Sep 2005, 06:40
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Whatever works, right?
Reply With Quote
  #5  
Old 09 Sep 2005, 15:12
RoryF RoryF is offline
 
Join Date: Apr 2005
Grand job .

I get an error though when i edit the settings.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 09 Sep 2005, 16:36
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Screenshots please?
Reply With Quote
  #7  
Old 09 Sep 2005, 16:46
RoryF RoryF is offline
 
Join Date: Apr 2005
Screenshot is already in the post . It's just a link.

Screenshot URL is here => http://www.vbulletin.org/forum/attac...chmentid=26703
Reply With Quote
  #8  
Old 09 Sep 2005, 17:14
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Originally Posted by RoryF
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #9  
Old 09 Sep 2005, 17:45
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Whoops my bad. Thanks for the hack.
Reply With Quote
  #10  
Old 11 Sep 2005, 17:50
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Real name: Andy
So if no usergroups are selected and the style is active; the style can be used by all usergroups. Correct?
Reply With Quote
  #11  
Old 11 Sep 2005, 20:34
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Exactly.
Reply With Quote
  #12  
Old 14 Sep 2005, 02:20
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Thanks for this Kirby, you know I've been looking out for it.
Reply With Quote
  #13  
Old 20 Sep 2005, 17:44
nexialys
Guest
 
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...
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #14  
Old 20 Sep 2005, 17:50
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Interesting. My RC3 does not have Hook admin_style_form there - only in addstyle.
That's why I requested 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

Last edited by KirbyDE; 20 Sep 2005 at 17:59.
Reply With Quote
  #15  
Old 20 Sep 2005, 18:01
nexialys
Guest
 
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!

Last edited by nexialys; 20 Sep 2005 at 18:04.
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 02:20.

Layout Options | Width: Wide Color: