Log in

View Full Version : Wanna fix my whosonline.


eckels2
09-11-2002, 11:57 PM
A couple of hacks I've installed, produce lines like this in the whos online, in the user's location...

Unknown Location: /vb/flash.php?play=tetris&w=600&h=400&b=000000

How can i fix this, so that when someone is viewing flash.php, whosonline would read it as "Playing a flash game" or something like that?

My own attempts to fix this, ended up with parse errors, so what's the right way to do it? :)

g-force2k2
09-12-2002, 01:27 AM
open online.php

find:

case 'index':
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
break;

under it add:

case 'flash':
$userinfo[where] = "$bbtitle <a href='flash.php?s=$session[sessionhash]'>Playing in the Arcade</a>";
break;

find:

case 'index.php':
$userinfo[activity] = 'index';
break;

under it add:

case 'flash.php':
$userinfo[activity] = 'flash';
break;

that should do the trick :) you can edit the location message or whatever... regards...

g-force2k2

eckels2
09-12-2002, 02:24 AM
Odd, that looks exactly like what I did. I'll try it though....