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?

Emil 07-31-2003 11:28 AM

well.. the problem is that when i go to my "user cp", there's no option for changing the style :(

assassingod 07-31-2003 11:31 AM

Is that from that main UserCP? Or under Edit Options?

Emil 07-31-2003 11:32 AM

that is under "edit options"

assassingod 07-31-2003 11:38 AM

Ok. Well I have had no problems. Does the dropdown menu appear or not?

Emil 07-31-2003 11:39 AM

nope, there's no drop down menu there :(

assassingod 07-31-2003 11:41 AM

Stupid question, but are you sure you are an admin?

Emil 07-31-2003 11:44 AM

lol, yes i'm sure i'm admin

assassingod 07-31-2003 11:44 AM

Strange. I have no idea why it's not working. Its working fine on my localboard.

Emil 07-31-2003 11:46 AM

oh ok :(

well thanx for all the help anyways :)

assassingod 07-31-2003 11:49 AM

Its alright, sorry it didnt work for you.

Emil 07-31-2003 11:51 AM

well, thats not ur fault since it's workin good for u ;)

MetroSports82 07-31-2003 12:42 PM

Quote:

Today at 08:28 AM Emil said this in Post #11
well.. the problem is that when i go to my "user cp", there's no option for changing the style :(
Emil, I could be wrong, but it might be because you have the styles option disabled from you Admin CP. Have you checked to see if you have that enabled? :) Its right under the "User and registration options" umbrella, that says "Allow Users To Change Styles". Usually, when/if the style selection box isn't showing up in your user options, it could be related to that? :)

Metro.

Emil 07-31-2003 12:47 PM

^^yea, i thought that could be the problem too.. but then i checked it, and the change style was enabled.. :(
so i have no idea wat the problem can be then...

thanx for replying! :)

SmEdD 07-31-2003 04:59 PM

Are you sure you installed the styale right?

If it's not there in the drop down for the admin cp I donno why.

Also you can change the style through the admin cp under users. That will allow you to by pass any stuff not letting you be able to pick it.

Emil 07-31-2003 05:03 PM

it should be installed right..
but it's not very important.. i just want it to be easy to change to a style that i'm workin on, just to see wat it looks like, and then easily change back by just goin to "edit options".. and i dont want the other members to be able to change to the style that i'm workin on..
but well.. thanx to everybody that replied to me :)


All times are GMT. The time now is 12:58 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.01314 seconds
  • Memory Usage 1,754KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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