The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Who's Online simple request...
I'm trying to figure out why my Chat page doesn't show up in the Who's Online.
I added Code:
case '/chat/index.php': $userinfo['activity'] = 'chat'; break; Code:
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; Do I have the wrong path or something? My Site: www.OrderOfRonin.com :ermm: |
#2
|
|||
|
|||
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: PHP Code:
PHP Code:
Syl... |
#3
|
|||
|
|||
Thanks I changed it to chat.php and moved the files around some, it works nicely now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|