Log in

View Full Version : Including global.php for Who's Online?


Kaelon
06-09-2008, 09:38 PM
Hey there,

I have a number of non-vB standalone web applications that I'd like to make available to my website visitors, but I'd like them to still appear to be using my site (and, essentially, contributing to the "Who's Online" usercount) when they are using them. To accomplish this feat, do I basically just need to include global.php, like so:

require( "global.php" );

... or is there a specific/recommended way that you'd suggest I go about doing this?

Thanks!

Lynne
06-09-2008, 10:55 PM
Yes, you do need to require global.php. Here is an article on how to make other pages that look like that are part of your vbulletin site - How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

Dismounted
06-10-2008, 07:38 AM
Remember if you are include global.php outside of the forum root directory you need to chdir() to it first.