The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, I'm using the basic integration method by calling global.php. Today, I put the Forum into maintenance mode to find out that whatever calls global.php will be redirected to the maintenance page. I was wondering if there was any way to prevent this?
Thanks |
#2
|
||||
|
||||
![]()
If your page is calling global.php, then it will follow the same maintenance 'rules'. global.php looks at your user properties and if you aren't an admin, you get the maintenance page.
|
#3
|
|||
|
|||
![]()
I dont suppose there's a way around it such as moving the maintenance code to another file? I dont want the forum maintenance to interfere with my main site.
|
#4
|
|||
|
|||
![]()
You can use the global_start hook and tell it to bypass this on certain pages.
Here's a snippet I used. PHP Code:
|
#5
|
|||
|
|||
![]()
Thanks for the snippet. However, in what form do my pages show up in the THIS_SCRIPT array? Let's say I'm loading it from "http://domain.com" or "http://domain.com/page.php". Do they show up with the http:// stripped?
|
#6
|
||||
|
||||
![]()
THIS_SCRIPT is defined at the top of your php page. For instance, this is at the top of the showthread.php page:
PHP Code:
|
#7
|
|||
|
|||
![]()
Works great, thanks
My next question would be if it's possible to create a session for each guest who visits the external pages to include them in the total "Who's online" count. |
#8
|
||||
|
||||
![]()
It already does that... If you view the "who's online" page, it'll show you guests and members. The bottom of the forum home says, "x people online, y members and z guests". If your custom pages aren't compatible with the "who's online" stuff, then guests won't be shown.
View this article: https://vborg.vbsupport.ru/showthread.php?t=157329 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|