vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBStealth 2.0 (https://vborg.vbsupport.ru/showthread.php?t=47453)

Hoth 02-05-2003 12:49 AM

Quote:

Originally posted by Martin64
You MUST stealth ban your users from the Mod CP, just changing usergroup in the Admin CP won't add the neccessary timestamp.
Excuse my stupidity, but could anyone tell me where in the world this "Mod CP" is, if it's not the Admin CP?

Martin64 02-05-2003 11:29 AM

Mod CP -> http://www.yourdomain.com/forums/mod/index.php

Overgrow 02-05-2003 12:12 PM

Nice hack! I'd install but I already have most of these things integrated in a much sloppier way. I hope you release something similar for 3.0 that is as complete as this.

Martin64 02-05-2003 12:20 PM

Thanks mate, I'll answer that question when I get my hands on VB3 :D

subu1 02-11-2003 08:26 PM

oh i want to install this verry great hack, but if i change my funktions.php I have a error.

PHP Code:

FIND:

eval(
"\$retval = \"".gettemplate("postbit")."\";");

REPLACE WITH:

if (
$post[datestealthbanned] < $post[dateline]) {
            if (
$bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) {
                
$post[message]="<normalfont><b>Stealth banned user!</b></normalfont>&nbsp;&nbsp;<smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br>&nbsp;<br></smallfont>".$post[message];
                eval(
"\$retval = \"".gettemplate("postbit")."\";");
            } else if (
$bbuserinfo['usergroupid']==XX) {
                eval(
"\$retval = \"".gettemplate("postbit")."\";");
            } else if (
$bbuserinfo['usergroupid']==1) {
                eval(
"\$retval = \"".gettemplate("postbit")."\";");
            } else {
                eval(
"\$retval = \"".gettemplate("postbit_banned")."\";");  
              }
        } else {
            eval(
"\$retval = \"".gettemplate("postbit")."\";");  
        }
    }
    return 
$retval;
}

REPLACE THE "XX" ABOVE WITH THE ID OF YOUR STEALTH BANNED USER GROUP

after i have this error

Parse error: parse error, unexpected '}' in /home/virtual/site7/fst/var/www/html/forums/admin/functions.php on line 364

Fatal error: Call to undefined function: getuserinfo() in /home/virtual/site7/fst/var/www/html/forums/admin/sessions.php on line 365

this my funktions.php

PHP Code:

                    if ($post[datestealthbanned] < $post[dateline]) {
            if (
$bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) {
                
$post[message]="<normalfont><b>Stealth banned user!</b></normalfont>&nbsp;&nbsp;<smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br>&nbsp;<br></smallfont>".$post[message];
                eval(
"\$retval = \"".gettemplate("postbit")."\";");
            } else if (
$bbuserinfo['usergroupid']==XX) {
                eval(
"\$retval = \"".gettemplate("postbit")."\";");
            } else if (
$bbuserinfo['usergroupid']==1) {
                eval(
"\$retval = \"".gettemplate("postbit")."\";");
            } else {
                eval(
"\$retval = \"".gettemplate("postbit_banned")."\";");
              }
        } else {
            eval(
"\$retval = \"".gettemplate("postbit")."\";");
        }
    }
    return 
$retval;
}
    }
    return 
$retval;


is return a doubel???

sorry for my eng.

subu1

Martin64 02-11-2003 08:49 PM

Ah yes, the return shouldn't be doubled. These are the correct instructions:

FIND:

Code:

eval("\$retval = \"".gettemplate("postbit")."\";");
REPLACE WITH:

Code:

if ($post[datestealthbanned] < $post[dateline]) {
            if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) {
                $post[message]="<normalfont><b>Stealth banned user!</b></normalfont>&nbsp;&nbsp;<smallfont><i>This post is only visible to admins, mods, stealth banned users and guests:</i><br>&nbsp;<br></smallfont>".$post[message];
                eval("\$retval = \"".gettemplate("postbit")."\";");
            } else if ($bbuserinfo['usergroupid']==16) {
                eval("\$retval = \"".gettemplate("postbit")."\";");
                        } else if ($bbuserinfo['usergroupid']==1) {
                eval("\$retval = \"".gettemplate("postbit")."\";");
            } else {
                eval("\$retval = \"".gettemplate("postbit_banned")."\";"); 
              }
        } else {
            eval("\$retval = \"".gettemplate("postbit")."\";"); 
        }

REPLACE THE "XX" ABOVE WITH THE ID OF YOUR STEALTH BANNED USER GROUP.

subu1 02-12-2003 05:22 PM

it is very fantastic this Hack, i love this Hack, big thxx

but i have only questions. The User can view the modforum, i must forum access adjust seperat for the stealt banned User?

greetz subu1

oh oh my eng.

Martin64 02-12-2003 06:35 PM

I'm not sure what you mean...the user can view the "modforum". What's that?

subu1 02-12-2003 07:03 PM

oh excuse please, I meant stealt banned the User(my dummy) can moderators the forum to see and thats not normally. Is's a Forum for Moderators not for User.

greetz subu1

Martin64 02-12-2003 07:20 PM

I'm sorry, I still don't understand your question. :(

Perhaps if you read my first post again you could an answer to your question. Or you could try asking me again, I'm a little slow. :p

Link14716 02-13-2003 12:38 AM

I'm thinking that he means the stealth banned member can view the private forum(s) of the board.

You must deny their access by going to "Forum Permissions" in the Admin CP.

subu1 02-13-2003 02:54 PM

yeah, that was it. Thanks

greetz subu1

its my favorite Hack :-))))

subu1 02-16-2003 11:13 AM

hi Friends , i have a little bug.The User can see the Stealt banned Table in the Showgroups.php. Its not so good, what can i do?

i hope my eng. is ok :paranoid:

Martin64 02-17-2003 10:21 AM

That's an option when you create the new usergroup:

Add/Modify Usergroup -> Viewable on Show Groups? Set to "No".

subu1 02-17-2003 12:55 PM

thxx, thats was it, i'm verry stupid

greetz subu1

Boofo 02-20-2003 10:16 AM

This looks like a great hack. Is there a way to make it so you can stealth ban and unban (is that even a word?) from the Admin CP? I'd like to be able to do it from there also.

Martin64 02-21-2003 12:55 PM

Quote:

Originally posted by Boofo
This looks like a great hack. Is there a way to make it so you can stealth ban and unban (is that even a word?) from the Admin CP? I'd like to be able to do it from there also.
Yeah, you'd have to change admin/user.php and admin/index.php but it shouldn't that be hard. Have a look at the changes for mod/user.php and mod/index.php and you'll see how to do it.

khat 02-26-2003 01:04 PM

Fantastic....

A couple of ideas though. You may want to work on a way to get the "Last Post by" field to show up as the user for the user. I tell you why: If a user realises that while he or she is stealth banned that they don't show up on the Last Post part then detection of a stealth ban will be very fast.
I was thinking that you could add another "lastpost/lastposter" field to the tables, and use that for the admins etc... But I know that would mean a handful of columns and that's not so great...

Another idea would be to add a flag on the posts table to record if the post was made from a user stealth banned at the time. This might also be useful if the user gets un-stealth banned, and all the posts they made during stealth banned status won't suddenly appear.

Martin64 02-26-2003 09:11 PM

Quote:

Originally posted by khat
Fantastic....

A couple of ideas though. You may want to work on a way to get the "Last Post by" field to show up as the user for the user. I tell you why: If a user realises that while he or she is stealth banned that they don't show up on the Last Post part then detection of a stealth ban will be very fast.
I was thinking that you could add another "lastpost/lastposter" field to the tables, and use that for the admins etc... But I know that would mean a handful of columns and that's not so great...

Another idea would be to add a flag on the posts table to record if the post was made from a user stealth banned at the time. This might also be useful if the user gets un-stealth banned, and all the posts they made during stealth banned status won't suddenly appear.

Thanks for the suggestion. :) I haven't noticed any stealth banned user at my board discovering this "bug" though.

Anyway, I won't release any new versions of my hacks because of two reasons: 1) vB3 is just around the corner. 2) lack of time.

khat 02-27-2003 08:17 AM

mmm, well I banned two as soon as I installed the hack and within hours they are both complaining that their names aren't on the Last Post by part.

I'll mod it in myself. Thanks :)

Mike Gaidin 03-02-2003 03:17 PM

Does this work with Erwin's search thread hack?

I'm installing Erwin's hack after I've installed this one, but I just want to make sure the stealth feature is still in effect if people search the thread.

Thanks!

feldmaresciallo 03-06-2003 01:25 PM

Hmmm i don't find how to put the option also in admin cp...
Could someone help me?

jibious 03-27-2003 04:11 AM

a few things to think about fixing once you do start working on it again:

1) polls still show up as last post
2) user can click on 'Last Post' and still get to poll - no invalid link
3) something else, but i cant remember ...i'll post in a min when my memory decides to come back

subu1 03-27-2003 04:34 AM

Quote:

03-06-03 at 03:25 PM feldmaresciallo said this in Post #102
Hmmm i don't find how to put the option also in admin cp...
Could someone help me?

the option is in the mod.php :knockedout:

greetz subu1

Mathiau 04-03-2003 04:27 AM

looks very nice! shall try this out!

voclain 04-28-2003 05:05 PM

Did I do something wrong???

When I tested this HACK...I log on as a STELT Banned user..post something...then I can see what is written...the TITLE of the thread show up, but what I wrote when I was logged on as the STELTH does not????

EVERTHING else...show up properly (admins, mods)..and not show up (registered, guest)...

HOWEVER...one more small problem.........

I have PHOTO POST PHP....now I updated the usergroups, and it reccognizes the STETH BAN Group, but it does not keep them out???

ONLY PAYING customers get to see in the PHOTO POST area,,,,but when someone is on BAN..it allows them to see???

ANY SUGGESTIONS???

Kirk

voclain 04-28-2003 05:06 PM

OH I almost forgot....VB 2.2.6
http://www.pro4um.com

Kirk

solent 05-08-2003 04:48 AM

perfect. it works like a charm and i really love this hack. it can be really really helpful a lot of times.

solent 05-08-2003 05:11 AM

i need some help here. well the hack works perfect but i just notice that i am using vbportal hack which has an Active Topic Block on the Home page. http://212.31.97.197/ you can see the vbstealth test thread over there. here is the php file that creates that block.

PHP Code:

<?php
$blocks_modules
[activetopics] = array(
    
'func_display' => 'blocks_activetopics_block',
    
'text_type' => 'activetopics',
    
'text_type_long' => 'Active Topics',
    
'text_content' => 'Active Topics',
    
'support_nukecode' => false,
    
'allow_create' => false,
    
'allow_delete' => false,
    
'form_url' => false,
    
'form_content' => false,
    
'form_refresh' => false,
    
'show_preview' => true
);

function 
blocks_activetopics_block($row) {
    global 
$DB_site,$bbuserinfo,$dateformat,$timeformat,$session,$bbdir,$excatforums,$use_forumpermissions,$sbnum_active,$sbtitlelen;
    if (
$excatforums == "" or $excatforums <= "0") {
        
$whereatsql "WHERE visible AND open!=10";
    } else {
        
$whereatsql "WHERE visible=1 AND open!=10 AND thread.forumid NOT IN ($excatforums)";
    }
    
$counter =0;
    
$result $DB_site->query("select threadid,forumid,title,postusername,lastposter,lastpost from thread $whereatsql order by lastpost desc limit $sbnum_active");
    while (
$sbthread=$DB_site->fetch_array($result)) {
            if (
$counter == 0) {
                
$block_content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\">";
            }
            if (
$use_forumpermissions){
        
$atperms=getpermissions(intval($sbthread['forumid']),$bbuserinfo['userid']);
         }else{
                
$atperms['canview']=1;
            }
        if (
$atperms['canview']) {
                
$startedby=$sbthread['postusername'];
        
$lastposter=$sbthread['lastposter'];
        
$sbthreadid=$sbthread['threadid'];
        
$sbpostid=$thread_array['postid'];
        
$atpostdate=vbdate($dateformat,$sbthread['lastpost']);
        
$atposttime=vbdate($timeformat,$sbthread['lastpost']);
        
$sbtitle substr($sbthread["title"],0,$sbtitlelen);
        if (
strlen($sbtitle) == $sbtitlelen) {
            
$sbtitle =substr $sbtitle0strrpos($sbtitle," "));
        }
        if ((
$counter++ % 2) != 0) {
            
$vbp_atbc="{firstaltcolor}";
        } else {
            
$vbp_atbc="{secondaltcolor}";
              }
        eval(
"\$block_content .= \"".gettemplate('P_activetopics_sidebox')."\";");
            }
    }
        if (
$counter 0) {
            
$block_content .= "</table>";
        }
        unset(
$result);  
        return 
$block_content;
}
?>

any ideas how i can modify it and not show the vbstealth threads.

djroketboy 06-01-2003 04:08 PM

ok i thought everything was working until today... i keep getting a DB error when doing a search... i've double checked all my files... even went as far as re-doing the hack.... still get the error...

Invalid SQL: SELECT postid,wordid FROM searchindex WHERE wordid IN(0,'1','2','3','4','5','6','7','8','9','10','11' ,'12','13','14','15','16','17' ,'18','19','20','21'.............
mysql error: Got a packet bigger than 'max_allowed_packet'

mysql error number: 1153

GsxrTony 07-28-2003 10:39 PM

Hey I've got a quick question before I go through the install. When and if I decide to unban someone. does the extra text "this user is banned" disappear or will that now be visable to everyone.

Frzzy 08-01-2003 08:55 PM

me too, before install this... does that text visible to banned user? I guest not, just double check...

Martin64 08-01-2003 09:21 PM

You mean the user title? The user title does not change, as the user is not banned through a standard banning system, but instead through file hacks.

Jugglor 08-15-2003 09:16 PM

Thank you for this awesome hack Martin64!

Stealth posts are perfectly hidden except the stealth's "Last post by" name in forumhome and forumdisplay remain visible to everyone including registered members.

I have read this thread and checked all files and they seem ok? My "registered" user group is 2 and I am running vB 2.2.9...any suggestions other than upgrading vB :)

Jugglor 08-15-2003 11:10 PM

Sorry guess I should revert back to vB 2.2.8 unless this is not my problem ;)

subu1 09-06-2003 11:42 AM

hi Friends i have a big Problem :cry:

...each Time i have a Problem with a registered User , if I kick everybody User from my Board he is change in stealt banned User ????? and not in Guest.

and here is my Header Problem

Quote:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 117

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 121

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 132

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 135

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site1/fst/var/www/html/board/admin/functions.php on line 161
its verry important for me, please help me :)

MaDCaT75 09-09-2003 05:44 AM

How can I make it so only stealth banned users and guests see stealth banned users' posts?

MaDCaT75 09-12-2003 02:58 AM

uh.... someone?

dbode 10-17-2003 03:41 AM

Hi, someone loggt in into my forums this night and posted something out of our internal forums, which are not viewable to the public into other forums.

He claimed that he could do that because of AntiStealth, the thread dealed about this hack and not to tell the users about :
Quote:

The above message was part of a discussion in the internal Forum and was written by dbode the forum administrator i guess.
Many thx to "AntiStealth" who gaved me this precious information which i am sure everybody wants 2 be informed about.
So IS there a security risk with this thread ?

dbode 10-22-2003 05:16 AM

It seems like that was my fault, I set the permissions wrong :-/

--> There is some other thing witch might be cool : The post count of the stealth banned user remains at the value when you apply the stealth mod on him. So I think this might be something where the stealth banned user might see, that he´s stealth banned.


All times are GMT. The time now is 01:15 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
  • Page Generation 0.01378 seconds
  • Memory Usage 1,884KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (6)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
  • (40)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