PDA

View Full Version : Who's Online simple request...


|oR|Greg
06-04-2004, 03:27 PM
I'm trying to figure out why my Chat page doesn't show up in the Who's Online.

I added

case '/chat/index.php':
$userinfo['activity'] = 'chat';
break;

case 'Chat':
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'In Chat');
$userinfo['where'] = "<a href=\"/chat/index.php?$session[sessionurl]\">$vboptions[bbtitle] Chat</a>";
break;

To the Functions_Online.php, yet it still doesn't work. Any thoughts?

Do I have the wrong path or something?

My Site: www.OrderOfRonin.com :ermm:

Sylvus
06-04-2004, 04:15 PM
If it's anything like the v2 series, using a path will not work. Who's Online displays the location based on the file they are viewing. If you have multiple index.php files, it will always take the Forum Home Page index.php and display that as the location in the Who's Online, regardless of the fact the user might be viewing index.php under your /chat directory. That particular index.php in /chat should also be linked to a global file that vbulletin uses. I don't know if it's still global.php for vb3 or not but that's how it worked with vb2, otherwise there is no way to tell the forum that a user is viewing something outside of the forum structure.

It should work if you rename that index.php in /chat to chat.php and you're loading up a global file that vbulletin requires. So it's like this:


case 'chat.php':
$userinfo['activity'] = 'chat';
break;



case 'Chat':
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'In Chat');
$userinfo['where'] = "<a href=\"/chat/index.php?$session[sessionurl]\">$vboptions[bbtitle] Chat</a>";
break;


Change the case 'Chat': in the latter code, to 'chat'. Might be case sensitive as well.

Syl...

|oR|Greg
06-07-2004, 12:07 PM
Thanks I changed it to chat.php and moved the files around some, it works nicely now.