PDA

View Full Version : Ignore file for who's online


lvlohammadi
03-29-2017, 05:51 AM
Hi,
I've created a file sample.php and loads init.php in vBuletin4. This file is embeded into the templates and gets called on every page. Now, every user on the forum is at sample.php when viewing the "who's online" ... but, this file doesn't really exist in that context, so how do i get vB to ignore this file?
Thanks.

Dave
03-29-2017, 11:18 AM
All the way on top of that sample.php file, before you include any other file, add the following:
define('LOCATION_BYPASS', 1);

lvlohammadi
03-29-2017, 03:46 PM
All the way on top of that sample.php file, before you include any other file, add the following:
define('LOCATION_BYPASS', 1);
Thanks Dave, You've solved my problem ;).