Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Secretly ban a user Details »»
Secretly ban a user
Version: 1.00, by Frank Frank is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-15-2002 Last Update: Never Installs: 53
Is in Beta Stage  
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-29-2002, 09:00 PM
Riddel Riddel is offline
 
Join Date: Jan 2002
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you so much! it works great!
Reply With Quote
  #13  
Old 03-31-2002, 01:01 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you need to change it to this

PHP Code:
        // Begin Account hide hack
        
if ($post[usergroupid]==10) {
            if (
$bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) {
                
$post[message]="<normalfont><b>[account removed for abuse]</b></normalfont>&nbsp;&nbsp;<smallfont><i>Admins and Mods can view the post but nobody else does:</i><br>&nbsp;<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 
it looked like the banned user would see no post at all instead of seeing the post unchanged.
Reply With Quote
  #14  
Old 04-01-2002, 09:23 PM
Ren Ren is offline
 
Join Date: Nov 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 04-02-2002, 06:20 AM
ezdreamer ezdreamer is offline
 
Join Date: Nov 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mutt
it looked like the banned user would see no post at all instead of seeing the post unchanged.
Thanks for the addition to this hack.

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.
Reply With Quote
  #16  
Old 04-04-2002, 10:26 AM
Frank Frank is offline
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ezdreamer

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.
That's cos you haven't edited the permissions of whatever usergroup you used and set them to be able to browse and reply. Just set this usergroup to the same as your registered group and they will think everything is fine

Installation Instructions for v1.0.2
Reply With Quote
  #17  
Old 04-04-2002, 02:57 PM
ezdreamer ezdreamer is offline
 
Join Date: Nov 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. :classic:
Reply With Quote
  #18  
Old 04-08-2002, 09:03 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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???
Reply With Quote
  #19  
Old 04-09-2002, 08:52 AM
Frank Frank is offline
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
Any fix for this???
Not yet, this looks like an oversite on my part. I'll look into this asap, but it's a bit difficult as I only have internet access at work at the moment, having just moved house. Cannot ftp to my shell account at the moment so cannot test any fixes.

If anyone else would like to try until I get connected at home, then feel free
Reply With Quote
  #20  
Old 04-10-2002, 10:36 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
  $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:

PHP Code:
  $posts=$DB_site->query("
        SELECT IF(post.userid=0,post.username,user.username) AS username,
        post.pagetext,post.allowsmilie,post.userid,usergroupid FROM post
        LEFT JOIN user ON user.userid=post.userid
        WHERE post.visible=1 AND post.threadid='
$threadid'
        ORDER BY dateline DESC"
); 
(Basically finding out the usegroupid of the poster by adding the usergroupid field to the query).



Then FIND:

PHP Code:
          eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";"); 
REPLACE WITH:

PHP Code:
       if ($post[usergroupid]==13) {
            if (
$bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) {
          eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
            } else if (
$bbuserinfo[userid]!=$post[userid]) {
          eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbitban")."\";");
            } else {
          eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");  
              }
        } else {
          eval(
"\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";"); 


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:
<!-- spacer -->
<
table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#FFFFFF">
<
tr>
    <
td><img src="https://vborg.vbsupport.ru/vbimages/clear.gif" alt="" width="10" height="1"></td>
    <
td width="100%">
<!-- /
spacer -->

<
table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576"  width="100%" align="center"><tr><td>
<
table cellpadding="4" cellspacing="1" border="0"  width="100%">
<
tr>
    <
td bgcolor="$backcolorvalign="top" width="175" nowrap><normalfont>$username</normalfont></td>
    <
td bgcolor="$backcolorvalign="top" width="100%"><normalfont>This member has been banned.</normalfont></td>
</
tr>
</
table>
</
td></tr></table>

<!-- 
spacer -->
    </
td>
    <
td><img src="https://vborg.vbsupport.ru/vbimages/clear.gif" alt="" width="10" height="1"></td>
</
tr>
</
table>
<!-- /
spacer --> 

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.
Reply With Quote
  #21  
Old 04-10-2002, 07:57 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My fix for the Topic Review bug has been updated - just making sure people know.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05073 seconds
  • Memory Usage 2,345KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete