![]() |
Disable maintenance for external pages?
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 |
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.
|
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.
|
You can use the global_start hook and tell it to bypass this on certain pages.
Here's a snippet I used. PHP Code:
|
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?
|
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:
|
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. |
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 |
All times are GMT. The time now is 02:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|