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
  #32  
Old 06-30-2002, 08:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 591 is this line included below:

Line 590 // End Account hide hack
Line 591 } else {
Reply With Quote
  #33  
Old 07-20-2002, 02:02 AM
Voltron420 Voltron420 is offline
 
Join Date: Oct 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the exact same errror.
Reply With Quote
  #34  
Old 07-20-2002, 03:24 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The answer is here. Enjoy!

https://vborg.vbsupport.ru/showthrea...821#post267821

Quote:
Originally posted by Voltron420
I'm getting the exact same errror.
Reply With Quote
  #35  
Old 07-20-2002, 10:13 AM
Voltron420 Voltron420 is offline
 
Join Date: Oct 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
The answer is here. Enjoy!

https://vborg.vbsupport.ru/showthrea...821#post267821


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?"
Reply With Quote
  #36  
Old 08-10-2002, 06:22 AM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #37  
Old 08-10-2002, 06:48 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, now I'm totally confused.

Can you show us what to do to fix it? Maybe use the permissions check?

Quote:
Originally posted by dwh
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...
Reply With Quote
  #38  
Old 08-28-2002, 08:51 PM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm just making it so users at this level can't start threads or send PM's.
Reply With Quote
  #39  
Old 09-27-2002, 08:25 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #40  
Old 10-02-2002, 08:24 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update Counters, I suppose
Reply With Quote
  #41  
Old 10-09-2002, 03:39 PM
sklwer's Avatar
sklwer sklwer is offline
 
Join Date: Oct 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>&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

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
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 07:51 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.11240 seconds
  • Memory Usage 2,312KB
  • 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
  • (1)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