vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Secretly ban a user (https://vborg.vbsupport.ru/showthread.php?t=36205)

Riddel 03-29-2002 09:00 PM

thank you so much! it works great!

Mutt 03-31-2002 01:01 PM

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.

Ren 04-01-2002 09:23 PM

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.

ezdreamer 04-02-2002 06:20 AM

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.

Frank 04-04-2002 10:26 AM

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

ezdreamer 04-04-2002 02:57 PM

Thank you. :classic:

Erwin 04-08-2002 09:03 AM

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

Frank 04-09-2002 08:52 AM

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

Erwin 04-10-2002 10:36 AM

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. :)

Erwin 04-10-2002 07:57 PM

My fix for the Topic Review bug has been updated - just making sure people know. :)


All times are GMT. The time now is 06:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01147 seconds
  • Memory Usage 1,784KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete