vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Only Certain Usergroups Can Change Styles (https://vborg.vbsupport.ru/showthread.php?t=49792)

Kaelon 03-07-2003 09:48 PM

Only Certain Usergroups Can Change Styles
 
Hi, Gang,

My community web site operates largely off of donations; I'd like to add a new feature for my premium subscribers and enable them to be the only ones who can change styles. There did not appear to be a built-in option on the vBulletin Control Panel.

Has anyone seen a hack that would do this? I've tried searching for something that might approach this, but I honestly haven't seen it.

Even something as simple that would simply say "Sorry, you cannot change your skins" if you're of the inappropriate usergroup would be sufficient. I may try my hand at it if it turns out no one has attempted it before.

Kaelon

amykhar 03-07-2003 10:02 PM

I have one. Check my profile.

Amy

Kaelon 03-07-2003 11:15 PM

Thanks, Amy. Though your hack looks like excellent work, my subscription-system actually relies heavily upon usergroups.

Thanks again, though.

Kaelon

amykhar 03-08-2003 12:41 AM

All you have to do is to change the check for premium to check for the usergroups that you use. You would skip the control panel part and only make changes to the member.php, user.php, and global.php.

Just instead of checking if $bbuserinfo[premium] you check to see if $bbuserinfo[usergroupid] == X (X = your premium user group.)

Amy

Czar 02-09-2006 12:03 AM

Hi Amy,

Sorry to dog up an extremely old thread, but are you aware of a version of this hack that might work with vB 3.5.3?

I've searched far and wide, to no avail.

Thanks,

amykhar 02-09-2006 12:30 AM

Yes. Andreas wrote a new version of it. Check the plugins section.

Czar 02-13-2006 06:18 AM

Thank you Amy. You're the best! (Muchos kudos to Andreas, too)

That plugin is exactly what I was looking for.


All times are GMT. The time now is 07:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete