The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
OK... question... In the latest version of global.php... the code includes the following in teh initial if statement:
Code:
// ############################################################################# // check that board is active - if not admin, then display error if (!$vbulletin->options['bbactive'] AND THIS_SCRIPT != 'login') { if (!($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])) { if (THIS_SCRIPT == 'external') ... does this mean that on the site index where i've been requiring the global.php script... i can also add a variable: THIS_SCRIPT == 'external'; and this should tell global.php to not jack up my website while the board is down? --------------- Added [DATE]1252648758[/DATE] at [TIME]1252648758[/TIME] --------------- well i tried defining this_script as external and that just made a blank page. oh well. --------------- Added [DATE]1252651424[/DATE] at [TIME]1252651424[/TIME] --------------- eureka! So anyways... heres what i did in case anyone needs it. In the script to display the login box on my index page i encompassed the whole thing with the following: Code:
if ($vbulletin->options['bbactive']!=0){ //code for normal login/avatar/etc } else { //warning about board being closed } |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|