Log in

View Full Version : Who's Online Not Working for Non-VB Pages


hamedatl
03-10-2006, 02:29 PM
I'm trying to get users who are on non-VB pages show up on the Who's Online section of the forums.

I do this on my external pages:

chdir("../forums/");
require_once('./global.php');
include('./includes/functions_user.php');

Now, I know this works because I'm able to get the username and do other authentication stuff. But if a user is on this external page, the Who's Online won't reflect that. Is there something else I need to do to get this working? I couldn't find the info on other threads. Thanks.

Delphiprogrammi
03-10-2006, 02:42 PM
I'm trying to get users who are on non-VB pages show up on the Who's Online section of the forums.

I do this on my external pages:

chdir("../forums/");
require_once('./global.php');
include('./includes/functions_user.php');

Now, I know this works because I'm able to get the username and do other authentication stuff. But if a user is on this external page, the Who's Online won't reflect that. Is there something else I need to do to get this working? I couldn't find the info on other threads. Thanks.

there are hooks that deal with that they all have a prefix "online_" ... just a hint

hamedatl
03-10-2006, 03:24 PM
Well, I tried https://vborg.vbsupport.ru/showthread.php?t=83247 but I couldn't get it working for non-VB pages (outside the forum directory).

Also, I'm not really interested in displaying what non-VB page they're in -- it can say Index or Unknown. That's fine. But I don't even see the total user count go up when I include the global.php .. Am I missing something still?

hamedatl
03-13-2006, 02:33 AM
Sorry, just checking to see if anyone had an idea about this.

merk
03-13-2006, 07:36 AM
You should use


define(DIR, '/path/to/forums');
require('/path/to/forums/global.php');
require(DIR . '/includes/functions_user.php');


:)

https://vborg.vbsupport.ru/showthread.php?t=82882 for information on how to add things to WOL.

Wongod
04-24-2006, 04:47 PM
Did anyone get this working?

epsol
05-04-2006, 05:12 PM
I would apperiate the help as well, as I cannot get it to work