The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Secretly ban a user Details »» | |||||||||||||||||||||||||
Secretly Ban a User v1.1.0
########################## This hack is based on the idea of the hellban hack by intellected (https://vborg.vbsupport.ru/t35308/s.html) and overgrow's Quick & Easy account banning hack (https://vborg.vbsupport.ru/showthrea...threadid=35589). It is a lot simpler than the hellban hack (although not as extreme!) and does not have the problems of user being able to quote and view the post. The user is unaware that they are banned. Nobody see's their posts either in the main thread view or when replying to a thread. Admins and mods see their original post with a notice they are banned. They see the thread as though they were a normal user. This fixes the problem of friends warning them they are banned. Enjoy =) 21 June 2002: Installation Instructions v1.1.0 Full instructions included in the intall file Show Your Support
|
Comments |
#32
|
||||
|
||||
When a new user tried to do a newreply, I got this error:
Parse error: parse error, unexpected T_ELSE in /home/boofo/public_html/forum/newreply.php on line 591 Here is a section of code it refers to. Can anyone plese help me? Code:
$threadreviewbits = ''; while ($post=$DB_site->fetch_array($posts)) { if ($postcounter++ < $maxposts) { if ($postcounter%2 == 0) { $backcolor = "#13486D"; $post[bgclass] = "alt1"; } else { $backcolor = "#1C5780"; $post[bgclass] = "alt2"; } $username=$post[username]; if ($ignore[$post[userid]]) { $reviewmessage = $ignoreduser; } else { $reviewmessage = bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]); } // Begin Account hide hack if ($post[usergroupid]==8) { if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) { eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";"); } else if ($bbuserinfo[userid]!=$post[userid]) { eval("\$threadreviewbits .= \"".gettemplate("postbit_banned")."\";"); } else { eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";"); } } else { eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";"); // End Account hide hack } else { break; } } if ($DB_site->num_rows($posts)>$maxposts) { eval("\$threadreviewbits .= \"".gettemplate("threadreview")."\";"); } Line 590 // End Account hide hack Line 591 } else { |
#33
|
|||
|
|||
I'm getting the exact same errror.
|
#34
|
||||
|
||||
The answer is here. Enjoy!
https://vborg.vbsupport.ru/showthrea...821#post267821 Quote:
|
#35
|
|||
|
|||
Quote:
OK, that fixed the problem. Did anyone have any luck on figuring out how to hide the persons thread topics on the topic listing pages? Unfortunately this is a sure fire way for other people to notice that the user has been banned because they all replay to the blank thread with "Why can't I see the post?" |
#36
|
||||
|
||||
Probably a bit complex to solve...though only a line or three once u figure it out...I'll give u a hint...
you need to find where the select statement happens to get the list of threads (probably in functions.php or forumdisplay.php)...and make sure that in the join to the threadstarter...their usergroupid is included in the query...and if the usergroup id belongs to that user...exclude that thread... Problem is...it will still show up in searches...and view new posts and today's posts etc... But to fix that u just go with the same concept...except in search.php instead... Hope this helps... |
#37
|
||||
|
||||
Ok, now I'm totally confused.
Can you show us what to do to fix it? Maybe use the permissions check? Quote:
|
#38
|
||||
|
||||
I'm just making it so users at this level can't start threads or send PM's.
|
#39
|
||||
|
||||
I have unbanned a user but the words [account removed for abuse] Admins and Mods can view the post but nobody else does: still show up in there posts?
How can this be changed so that once I unbann osmeone this text does not show anymore. Thanks, Brian |
#40
|
||||
|
||||
Update Counters, I suppose
|
#41
|
||||
|
||||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|