![]() |
Secretly ban a user
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 :) |
Screeny of other user's view. The banned user sees their post as completely normal :D
|
nice hack!
|
You win! My implementation sucked anyways. :)
|
Quote:
|
Quote:
http://www.somethingawful.com/nointelligence/index.htm |
Quote:
|
this may be a stupid question but how do you set the usergroup id to 8?
|
Hey,
Quote:
In your admin cp, create a new usergroup named eg. "Secretly Banned Users" then choose "modify Secretly Banned Users", but click right mouse button and choose open in new window. Then look at the address line in your browser, at the end of line you'll notice usegroup id of your Secretly Banned Users group. Whatever it is, replace 8 here with that number.. |
Yep that's right :D
|
thank you so much! it works great!
|
I think you need to change it to this
PHP Code:
|
Mutt is correct , if you use the other they wont see a post at all.
Very nice and easy hack and also has made me laugh my a$$ of alot also. |
Quote:
BTW, there is one thing that would tip off the banned user that s/he is being banned. I tried a test and when banned using this method they can't post any new replies and it takes me to the standard not logged in or you are being banned by admins page. Is there a way that a banned user can still post, but that goes immediately into hidden mode so no one else can see except the banned user. I think this way it will be more effective in secretly banning the abuser into thinking that everything is normal. |
Quote:
Installation Instructions for v1.0.2 |
Thank you. :classic:
|
Bug:
When a user hits the "Post Reply" button, the offending post still shows up in the "Topic Review" section at the bottom. Any fix for this??? |
Quote:
If anyone else would like to try until I get connected at home, then feel free :) |
I have made a fix for a bug with this hack.
At the moment, although normal members cannot see the secretly banned member's posts in show thread, they can see the post when the normal member clicks on Post Reply - the post still shows up in the Topic Review at the bottom of the page. With this fix, when a member is secretly ban, no one else can see the secretly banned member's post in the Topic Review except for the member himself and staff. To everyone else, the person's post content in the Topic Review says "This member has been banned." I have tested this and it works. In newreply.php, FIND: PHP Code:
PHP Code:
Then FIND: PHP Code:
PHP Code:
Replace the number 13 with the usergroupid of the secretly banned usergroup in your forums. THEN make a NEW TEMPLATE: threadreviewbitban with the content: PHP Code:
This is a better fix than the one I posted here earlier - it works better - the previous one I posted here makes the secretly banned member's post ignored in the Topic Review, but with this one you have your own secretly banned member's template. If you used my previous fix, update to this one. :) |
My fix for the Topic Review bug has been updated - just making sure people know. :)
|
erwin, it has been fixed in the original attachment?
|
I don't think so.
|
I would like the banned user and moderators to see his own post and the normal users to just dont see the post. That way people arent able to alert the banned user....when he perhaps has friends on the board.........
Can you arrange this?? TheDutch |
Quote:
The new problem was that the banned user is still able to start a new thread. If he/she does start a new thread, the thread would be empty and have no content and all (except title), and would seem odd for most people (except the banned user who wouldn't notice ;)) Is there a way to hide new threads as well? Great hack so far though. :) Edit: Of course it would be possible to remove the permission to post new threads for the banned user, but then again, wouldn't that be a little suspicious? :D |
Updated hack to include all changes so far in this thread, please see first post in thread for full info :)
|
...which still doesn't solve the problem with the banned user being able to post a new thread? I just don't think it makes sense that other users can see the posts that the banned user have made (not the content, but that he/she has posted).
|
Quote:
Quote:
|
Right yes, I see you noticed my suggestion above. :P
Now go work on hiding new threads posted by the secretly banned users as well! ;) Nice job, Frank. :) |
First newreply.php is not in the admin directory as stated in the .txt file Iam assuming you mean the newreply.php in the root?
second when I try this and make the additions to the newreply.php I see Code:
$posts=$DB_site->query(" Code:
$posts=$DB_site->query(" is this due to the hidden reply hack being added for admins/mods on my forum, and if so, how can this be intergrated into this new hack? I tried adding the usergroupid to the second line as stated in the instruction but that only threw up errors when someone went to make a reply. Hoping this hack will be able to get up and running as it's use would fix several repeat offenders of the "I've been banned so i'll change my host mask and re register" type person. |
I have the same problem as Dyntheos. I went ahead and installed it anyway, and I get this error when trying to reply to ANY thread:
Parse error: parse error, unexpected T_ELSE in /home/.lysanne/lissy/lissaexplains.com/forum/newreply.php on line 474 Any ideas? This seems like an awesome hack and I'd love to be able to use it. I'm running v 2.2.6 :) |
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 = ''; Line 590 // End Account hide hack Line 591 } else { |
I'm getting the exact same errror.
|
The answer is here. Enjoy! :)
https://vborg.vbsupport.ru/showthrea...821#post267821 Quote:
|
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?" |
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... |
Ok, now I'm totally confused. ;)
Can you show us what to do to fix it? Maybe use the permissions check? :) Quote:
|
I'm just making it so users at this level can't start threads or send PM's.
|
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 |
Update Counters, I suppose ;)
|
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 |
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|