Log in

View Full Version : Forums Turned Off Message


carlu
08-01-2005, 10:33 PM
After recently including global.php in my non-VB pages, I now see the forum is off message on every one of my pages. I tried searching the forums for this, but I was unable to locate anything (of course this doesn't necessarily mean it isn't there). I was just wondering if it is possible to prevent the forums off message from displaying on my own pages while still having it display to any of the forum pages. When the forum is on, this isn't an issue, just when it is turned off. Any help would be appreciated.

Thanks

Marco van Herwaarden
08-02-2005, 03:28 AM
Without anymore information about your coding and setup, this is impossible to answer.

carlu
08-02-2005, 08:28 PM
Sorry about that, I was quite vague. Anyway, I am running vBulletin 3.08 and would like to integrate the forums with my site through shared logins,variables,etc. After reading through the forums it appears that the simplest way to do such a thing is by including global.php in all of my pages. So, at the top of every page I have:
$dir = dirname(__FILE__);
chdir('../community/');
require_once('global.php');
chdir("$dir");
Now the problem I am having is that if I turn Forums Active in the control panel to "Off" I get the forums are down message on every page on my site that includes global.php. I can understand why this is happening but can't quite find where in the VB php files this happens so I can remedy the problem. Hopefully I have provided enough details this time, if not I can always supply more. Thanks.

Marco van Herwaarden
08-02-2005, 08:49 PM
if (!$vboptions['bbactive'] AND THIS_SCRIPT != 'login')


Either fake you script to present itself as login.php, or change that line in global.php.

carlu
08-02-2005, 09:57 PM
Wow, can't believe I didn't catch that one (it is commented and everything). Thanks for the help.