Note/Tutorial: If you make a hack that uses a new file that regged members can access
by
02 Aug 2002
Please edit online.php, else users will get errors like
Unkown location: url (with sessionhash)
This is very annoying, here is how to fix it
In online.php find
PHP Code:
case 'announcement.php':
$userinfo[activity] = 'announcement';
$blowup = explode('=', $token1);
$forumid = intval($blowup[1]);
$userinfo[forumid] = $forumid;
$forumids .= ",$forumid";
break;
below it add
PHP Code:
case 'nameoffile.php':
$userinfo[activity] = 'uniquename';
break;
still in online.php find
PHP Code:
case 'announcement':
if (!$forum[forumid][$userinfo[forumid]] || (!$forum[canview][$userinfo[forumid]] && $hideprivateforums)) {
$userinfo[where] = "Viewing Announcement";
} else {
$userinfo[where] = "Viewing Announcement in Forum <a href='forumdisplay.php?s=$session[sessionhash]&forumid=$userinfo[forumid]'>".$forum[forumid][$userinfo[forumid]]."</a>";
}
break;
below it add
PHP Code:
case 'uniquename':
$userinfo[where] = "discription that apears in online.php";
break;
I hope hack writers will do this (some already do )
|