View Full Version : Adding non-vB pages to vB - Unknown Location...
PanelCrafters
05-28-2005, 11:30 PM
I'm adding several new non-vB modules to a new vB system, and when you look at "Who's Online", the location of anyone in one of the non-vB modules is 'Unknown Location'. What do I have to do to get it to display the name of the new module?
Thanks,
....jc
DR?@M W?@V?R
05-30-2005, 07:50 PM
open up includes/functions_online.php
Find:
case 'spider':
$userinfo['action'] = $vbphrase['search_engine_spider'];
break;
After Add:
case 'nameofpage':
$userinfo['where'] = "<a href=\"nameofpage.php?$session[sessionurl]\">Viewing nameofpage</a>";
break;
Find:
case '/robots.txt':
$userinfo['activity'] = 'spider';
break;
After Add:
case 'nameofpage.php':
$userinfo['activity'] = 'nameofpage';
break;
PanelCrafters
05-30-2005, 08:52 PM
Excellent DW!
The 1st time I tried, no success. Then I changed the capitalization of this:
$userinfo['activity'] = 'nameofpage';
and it works! I wanted it to display with leading caps, and it now does, but changing the Caps here, messed it up.
Thanks a lot!
....jc
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.