vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hack that allows ONLY admins to change style (https://vborg.vbsupport.ru/showthread.php?t=55745)

Emil 07-31-2003 12:40 AM

Hack that allows ONLY admins to change style
 
Hey,
I'm pretty new to vbulletin hack scripts..
And i browsed thru the hack database looking for a hack that makes so that only admins can change the forum style. But i couldnt find any hack for that. Anyone can help me? All help is appreciated! Thanks

Emil

assassingod 07-31-2003 08:04 AM

You can do this editing the properties of a style, just change "User Selectable" to no:)

Emil 07-31-2003 10:51 AM

yes, but then i cant change it as a admin either.. i mean in the "user cp", right?

assassingod 07-31-2003 10:59 AM

Ah right, just check this and your right (I always though even if 'User Selectable' is 'No' admins could still change)

So, for your request:

Open up member.php
Find:
PHP Code:

  $stylesetlist ""

Above add;
PHP Code:

if($bbuserinfo['usergroupid']==6){ 

Find:
PHP Code:

    $stylecell "";
  } 

Below that add:
PHP Code:

} else {
//Do Nothing


And that should do it:)

Emil 07-31-2003 11:00 AM

thanx alot man! :)

assassingod 07-31-2003 11:01 AM

No problem;)

Emil 07-31-2003 11:09 AM

i just tried the hack, but it wont let me change style :(

assassingod 07-31-2003 11:15 AM

Strange, I just double-checked it to see if it worked and its working fine for me.:confused:

Emil 07-31-2003 11:18 AM

i probably did somethin wrong.. lol.. i'm not really experienced with vb hacking

assassingod 07-31-2003 11:19 AM

What exactly is the problem?


All times are GMT. The time now is 07:11 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.01038 seconds
  • Memory Usage 1,725KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete