PDA

View Full Version : Can't find this hack!!


N9ne
06-28-2002, 04:12 PM
I'm looking for the hack that shows admins in bold and italics, supermods in bold and mods in bold in forumdisplay...

ie. you go to a forum, and they have (Currently browsing: etc) but there is hack to have admins in bold, etc on there :)

I think Tubedogg made it, not sure though, so can anyone point me to the hack :)

Xenon
06-28-2002, 04:23 PM
don't know that there is such a hack, but should be easy to do:

find:
$forumusers = $DB_site->query("SELECT username, invisible, userid
FROM user
WHERE inforum = $foruminfo[forumid]
AND lastactivity > $datecut
AND lastvisit <> lastactivity");
while ($forumuser = $DB_site->fetch_array($forumusers)) {
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
$userid = $forumuser['userid'];
$username = $forumuser['username'];
if ($forumuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
eval("\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
$comma = ', ';
}


replace with:


$forumusers = $DB_site->query("SELECT username, invisible, userid,usergroupid
FROM user
WHERE inforum = $foruminfo[forumid]
AND lastactivity > $datecut
AND lastvisit <> lastactivity");
while ($forumuser = $DB_site->fetch_array($forumusers)) {
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
$userid = $forumuser['userid'];
if ($forumuser['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$forumuser[username]</i></b>";
} else if (($mod["$userid"] or $forumuser['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$forumuser[username]</b>";
} else if ($forumuser['userid'] == 8 and $highlightadmin) {
$username = "<b>$forumuser[username]</b>";
} else {
$username = $forumuser['username'];
}
if ($forumuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
eval("\$browsers .= \"".$comma.gettemplate('forumdisplay_loggedinuser')."\";");
$comma = ', ';
}

N9ne
06-28-2002, 04:34 PM
What file is that? Forumdisplay.php?

Xenon
06-28-2002, 04:37 PM
lool, sorry *gg*
yes forumdisplay

N9ne
06-29-2002, 03:42 PM
Just tried this hack, didn't work :( everyone's still in normal plain text...

Also, if anyone does re-write this hack, please could you change it so you have userid 8 in bold and italics too.

I added another usergroup and they are to be in bold and italics :)

Xenon
06-29-2002, 04:24 PM
should work now!

be sure have enabled highlight admin

Chris M
06-29-2002, 05:03 PM
There is a hack...

Search for something like : Users Browsing Forums...

Satan

N9ne
06-30-2002, 07:41 AM
Xenon, the hack still doesn't work :( but I found the hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=37914&highlight=Browsing

Xenon
06-30-2002, 01:03 PM
use it ;)