Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 05-14-2002, 02:42 PM
lordofgun lordofgun is offline
 
Join Date: Jan 2002
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

erwin, it has been fixed in the original attachment?
Reply With Quote
  #23  
Old 05-14-2002, 10:37 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think so.
Reply With Quote
  #24  
Old 05-20-2002, 10:55 PM
TheDutch's Avatar
TheDutch TheDutch is offline
 
Join Date: Mar 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #25  
Old 06-13-2002, 11:01 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by TheDutch
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
Exactly what I was thinking, TheDutch. What I did was to make a completely empty template (postbit_banned) and that solved the first problem. Now the banned user would see his own original post, admins & mods would see the original post with the "this user has been banned" note and the regular users wouldn't see any post at all by the banned user.

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

Updated hack to include all changes so far in this thread, please see first post in thread for full info
Reply With Quote
  #27  
Old 06-21-2002, 01:29 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally posted by Martin64
...which still doesn't solve the problem with the banned user being able to post a new thread?
Nope, I guess that's the next thing to work on.
Quote:
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).
They can't, they don't see anything because we now have a blank template.
Reply With Quote
  #29  
Old 06-21-2002, 01:48 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 06-24-2002, 02:43 AM
Dyntheos Dyntheos is offline
 
Join Date: May 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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("
        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 ".iif($bbuserinfo[usergroupid]==5 or $bbuserinfo[usergroupid]==6 or $bbuserinfo[usergroupid]==7,"","post.visible=1 AND ")."post.threadid='$threadid'
        ORDER BY dateline DESC");
instead of this

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");
which is in the .txt file and what i should find in the newreply.php

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.
Reply With Quote
  #31  
Old 06-25-2002, 05:55 PM
Lissa Lissa is offline
 
Join Date: Jun 2002
Location: Florida
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


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 09:28 PM.


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.06181 seconds
  • Memory Usage 2,308KB
  • 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
  • (2)bbcode_code
  • (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
  • (4)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