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


All times are GMT. The time now is 07:30 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.01475 seconds
  • Memory Usage 1,767KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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