PDA

View Full Version : Update "Who's Online" for VBA Gallery


anarchystar
02-13-2005, 09:28 AM
Below this post is the codefor a mod that was already created by GrBear from vbadvanced.com. It will update users status in who's onlne to say they are in the gallery.
I want to know if this can be modified to work when the gallery is located at a subdomain. The original thread for this is located HERE (http://www.vbadvanced.com/forum/showthread.php?t=3724) and GrBear's code is below:

FIND:

else if (strpos($token, "/$modcpdir/") !== false)
{
if ($filename == '' OR $filename == 'index.php')
{
$userinfo['activity'] = 'modcplogin';
}
else
{
$userinfo['activity'] = 'modcp';
}
return $userinfo;
}


After it add:

else if (strpos($token, "/gallery/") !== false)
{
$userinfo['activity'] = 'gallery';
return $userinfo;
}

anarchystar
02-26-2005, 05:44 PM
*bump*

eva01_
02-26-2005, 07:45 PM
is that in the functions_online.php file?

Lizard King
02-27-2005, 12:43 PM
Yes it is inside the functions_online.php but I tried everything but couldn't find a way to get this working...