Back to vBulletin 3.6 Add-ons

Who's Online for all Vbadvanced Pages
Mod Version: 1.00, by Lionel

This modification is in the archives.
vB Version: 3.6.4 Rating: (1 vote - 5.00 average) Installs: 13
Released: 29 Jan 2007 Last Update: Never Downloads: 125
Not Supported Uses Plugins  

This will solved the Unknown Location in who's online page for all vbadvanced pages , e.g. index.php?page=XX (and other non vbadvanced problematic pages too)

This cannot be a plugin or product as you have to determine your own page names.
Below I used my soccer page as an example. You need to create 3 plugins using your own names and give it some meaningful names, replacing soccer with it.

For soccermain.php simply call it any.php, replacing "any" with a unique name.

I commented the hook location for each plugin

For those who need to see a screenshot, click on any vbulletin forum who's online

You need to repeat the same process for every problematic page
PHP Code:
Online Location Preprocess Soccer
//online_location_pre-process
if ($loc == '/index.php?page=soccer' OR $loc == '/?page=soccer' )
{
 
$filename 'soccermain.php';
}
#########################################################
Online Location Process Soccer
//online_location_process
if ($filename == 'soccermain.php')
{
    
$userinfo['activity'] = 'soccermain';
}
##################################################################################
Online Location Unknown Soccer
//online_location_unknown
 
if ($userinfo['activity'] == 'soccermain')
{
    
$userinfo['where'] = '<a href="/index.php?' $vbulletin->session->vars['sessionurl'] . 'page=soccer"> Soccer Main Page</a>'
    
$userinfo['action'] = "Viewing Soccer";
    
$handled true;
}
############################################################################## 

Download

This modification is archived, downloads are still allowed.

File Type: %1$s vbadvanced_online_code.txt (868 Bytes, 138 downloads)


vblts.ru supports vBulletin®, 2022-2025