The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
The Debug mode option.
I'm trying to create a plugin, that allows me through my admin panel to turn on or off as needed the Debug mode in the config file. (and make the debugging only viewable to administrators, so I don't have to turn off my board)
I've managed to narrow down the variables that the debug mode is contained in. (it's not $config[Misc][debug] as you would think, but rather kept in $vbulletin) I've tried to place my plugin in global_start and in init_startup but neither allow me to set the debug mode variable. Code:
if ($vbulletin->options['myParamName']=='1' && $vbulletin->userinfo[usergroupid]=='3') { $vbulletin->config['Misc']['debug'] = true; define('DEBUG', true); } Anyone try something similiar and find out the reasons why you could/couldn't? Thanks Marcus |
#2
|
|||
|
|||
I think you have posted in the wrong section
|
#3
|
||||
|
||||
Well, normally Administrators have UserGroupID 6 ... So maybe you should change this
Code:
$vbulletin->userinfo[usergroupid]=='6' |
#4
|
|||
|
|||
Thanks for the responses.
By the way, what forum should I be in, when posting plugin questions? Also, the solution was accessing the correct variable. Which I wasn't. PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|