Quote:
Originally posted by Logician
Try this one:
Edit online.php, find:
PHP Code:
}
$userinfo[time] = vbdate($timeformat,$userinfo[lastactivity]);
Before that add:
PHP Code:
// Logician WebTemplates Hack
if (preg_match("/(pg=)(.*)(&)/siU", $userinfo[location], $l_match1) OR preg_match("/(pg=)(.*)/siU", $userinfo[location], $l_match2))
{
if ($l_match1[2]) {$lmatch=$l_match1[2];} else {$lmatch=$l_match2[2];}
$userinfo[where]= 'Reading Webtemplate: <a href="show.php?pg='.$lmatch.'" target="_blank">'.$lmatch.'</a>';
}
// Logician WebTemplates Hack
Enjoy..
|
First off....Great Hack!
Everytime I add a new page to our website, I use this hack. Thanks again for all your time and effort.
I added the code above to online.php, and it works fine if you view "who's online" as an admin. When I view "who's online" as a registered member though, I see "Reading Webtemplate:", but nothing following the colon. For instance as an admin, I see "Reading Webtemplate: news", but as a registered user I see just "Reading Webtemplate:". I'm stumped
Thanks
Jbear6