Quote:
Originally posted by ptbyjason
If you view Who's Online it messes up the location of the user. Does anyone know a way to prevent the Who's Online to appear normal. I've attached the image of me using the ticker and viewing the Who's Online.
|
If you want to remove showing the Ticker in "Who-is-online" completely, do this:
Open ticker2.php:
Search for
Code:
error_reporting(7);
and add BELOW it
Open sessions.php:
Search for
Code:
if ($templateversion > '2.0.1') { // Use location!
and replace it with
Code:
if ($templateversion > '2.0.1' AND $tickerstart==0) { // Use location!
Then upload both files.
[hr=[high]][/hr]
If you just want to show the correct location, do this:
Open online.php
Find this
Code:
default:
$userinfo[activity] = 'unknown';
}
BEFORE that, add this:
Code:
case 'ticker2.php':
$userinfo[activity] = 'ticker';
break;
Then find this:
Code:
default:
// Let's show the admin the location but put something false up for everyone else..
if ($bbuserinfo[usergroupid] == 6) {
$userinfo[location] = htmlspecialchars(stripslashes(replacesession($userinfo[location])));
$userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";
} else {
// We were unable to parse the location
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";;
}
BEFORE that, add this:
Code:
case 'ticker':
$userinfo[where] = "Watching the <a href='ticker2.php?s=$session[sessionhash]'>Ticker</a>";
break;
Greetingz,
Mystics