Log in

View Full Version : WOL on non forum page


BahBah
09-30-2005, 04:30 PM
Hi,

I already have the rest of my site hooked up with vb (by using global.php) however I want to display whose online on my nonforum pages also.

How can I achieve this please ?

Thanks

BahBah
10-02-2005, 01:20 PM
Hi,

I already have the rest of my site hooked up with vb (by using global.php) however I want to display whose online on my nonforum pages also.

How can I achieve this please ?

Thanks

Nevermind - done this myself

chanzero
10-02-2005, 02:41 PM
how'd you do it bahbah? please share for us noobs :)

pmkb
10-22-2005, 03:20 AM
I am wanting to make vB aware of a non-forum script on my site so that visitors browsing the non-forum script will show up in who's online when I check it. Is adding an include to global.php in the non-forum script all that is require to make vB aware of members and guests browsing in the script?

I realize it will show unknown location unless I do further work, but I'm just looking to get started here.

Zachariah
10-22-2005, 05:13 AM
Vs. tons of file edits all the time. I use this.
https://vborg.vbsupport.ru/showthread.php?t=83247

pmkb
10-22-2005, 02:06 PM
Unfortunately, that only works for unique files and they must be located in the vB forum's root directory.

BTW, I did some experiementing and confirmed that the following code works fine for making vB aware of visitors/members browsing around in non-integrated scripts://************************************************** **
chdir('/home/user/public_html/vbforumpath/');
require_once('./global.php');
chdir('/home/user/public_html/nonforumscriptpath/');
//************************************************** **That code should be inserted at the top of the non-forum script.