Tried to make this work on version 2.8 but i found
Find:
eval("\$retval = \"".gettemplate("postbit")."\";");
Replace with:
// Begin Account hide hack
if ($post[usergroupid]==8) {
if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) {
$post[message]="<normalfont><b>[account removed for abuse]</b></normalfont> <smallfont><i>Admins and Mods can view the post but nobody else does:</i><br> <br></smallfont>".$post[message];
eval("\$retval = \"".gettemplate("postbit")."\";");
} else if ($bbuserinfo[userid]!=$post[userid]) {
eval("\$retval = \"".gettemplate("postbit_banned")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
// End Account hide hack
but on the
Modifications to ./admin/newreply.php:
#########################################
Find:
$posts=$DB_site->query("
SELECT IF(post.userid=0,post.username,user.username) AS username,
post.pagetext,post.allowsmilie,post.userid FROM post
LEFT JOIN user ON user.userid=post.userid
WHERE post.visible=1 AND post.threadid='$threadid'
ORDER BY dateline DESC");
Replace with:
// Begin Account hide hack
$posts=$DB_site->query("
SELECT IF(post.userid=0,post.username,user.username) AS username,
post.pagetext,post.allowsmilie,post.userid,usergro upid FROM post
LEFT JOIN user ON user.userid=post.userid
WHERE post.visible=1 AND post.threadid='$threadid'
ORDER BY dateline DESC");
// End Account hide hack
I am not sure if i have to remove all of:
Modifications to ./admin/newreply.php:
#########################################
Find:
$posts=$DB_site->query("
SELECT IF(post.userid=0,post.username,user.username) AS username,
post.pagetext,post.allowsmilie,post.userid FROM post
LEFT JOIN user ON user.userid=post.userid
WHERE post.visible=1 AND post.threadid='$threadid'
ORDER BY dateline DESC");
Replace with:
// Begin Account hide hack
$posts=$DB_site->query("
SELECT IF(post.userid=0,post.username,user.username) AS username,
post.pagetext,post.allowsmilie,post.userid,usergro upid FROM post
LEFT JOIN user ON user.userid=post.userid
WHERE post.visible=1 AND post.threadid='$threadid'
ORDER BY dateline DESC");
// End Account hide hack
|