PDA

View Full Version : Users online


Matt87
05-28-2002, 03:54 PM
When I install hacks, ex. shoutbox, glossary, etc. It says unknown location: http://www.pcgaminghq.net/forum/shoutbox for an example. What do I have to add so it says: Shoutbox, or something similar?

Thanks,
Matt

Xenon
05-28-2002, 04:31 PM
open online.php

find

case 'showthread':
if (!$thread[title][$userinfo[threadid]] || !$forum[canview][$thread[forumid][$userinfo[threadid]]] || (!$forum[canviewothers][$thread[forumid][$userinfo[threadid]]] && $thread[postuserid][$userinfo[threadid]] != $bbuserinfo[userid])) {
$userinfo[where] = "Viewing Thread";
} else {
$userinfo[where] = "Viewing Thread <a href='showthread.php?s=$session[sessionhash]&threadid=$userinfo[threadid]'>".$thread[title][$userinfo[threadid]]."</a>";
}
break;
below add:

case 'shoutbox':
$userinfo[where] = "Viewing Shoutbox";
break;


then find

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

below add:

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


ps, yes you can post it on other positions, but this were the two fastest i found ;)

Matt87
05-28-2002, 04:32 PM
Thanks a bunch!

Xenon
05-28-2002, 04:39 PM
np :)

other locations can be implemented in an equal way :)

perhaps try FireFlys "Add Who's Online Locations from Admin CP" Hack

Kayla
06-14-2002, 11:56 AM
.. there is an h missing from this line:

case 'soutbox':

.. just thought I would mention it incase someone else is looking for this thread :)

thanks!

Xenon
06-14-2002, 11:58 AM
hmm, i think i should write slower, it happens too often ;)

its corrected now, thanx