vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Forums Turned Off Message (https://vborg.vbsupport.ru/showthread.php?t=93403)

carlu 08-01-2005 10:33 PM

Forums Turned Off Message
 
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:
Quote:

$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

PHP Code:

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.


All times are GMT. The time now is 07:04 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.00935 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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