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;
}
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;
}