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)
-   -   404 error ban. (https://vborg.vbsupport.ru/showthread.php?t=48710)

Erwin 02-25-2003 10:44 PM

[removed because of confusion]

Boofo 02-26-2003 12:29 AM

Don't you mean this section?

PHP Code:

  $users=$DB_site->query("SELECT *
                          FROM user,userfield
                          WHERE 
$condition AND
                                user.userid = userfield.userid
                                "
.iif($memberAllGood" AND usergroupid NOT IN (1,3,4,8) """).

This is what will keep the names off of the memberlist. The code below will just show how many users, won't it? If I missed something, I apologize, Erwin. :)

Quote:

Originally posted by Erwin
Open memberlist.php and replaced this section with the below:

PHP Code:

  $userscount=$DB_site->query_first("SELECT COUNT(*) AS users
                                     FROM user,userfield,usergroupid
                                     WHERE 
$condition AND
                                           user.userid = userfield.userid
                                           "
.iif($memberAllGood" AND usergroupid NOT IN (1,3,4) """)."
                                           "
); 

Add more usergroups to exclude in (1,3,4) in the code.

:)


Erwin 02-26-2003 12:38 AM

Boofo, you're right - my memory is getting to me and I got confused by john's post - I've reverted back to my original post.

You don't add anything - just find that code section, and add usergroupids to exclude. :)

Boofo 02-26-2003 12:47 AM

You need to add the usergroupid to hide in both pieces of code, one for the count (your code) and one for the actual name (the $users code) below that. :)

VeoMorphine 03-02-2003 05:46 PM

Is there a way this can be done for IP/E-mail banned users as well? I dont like users coming back on proxys.

Erwin 03-02-2003 06:22 PM

Quote:

Originally posted by VeoMorphine
Is there a way this can be done for IP/E-mail banned users as well? I dont like users coming back on proxys.
After you ban the member's IP and/or Email, just change their usergroupid to the one for 404 error ban.

007 03-05-2003 10:52 PM

I tried this and it still brings up the Sorry the administrator has banned your IP address... I was looking around in the files for the place that actually calls the template error_banip but I couldn't find it. Would there be anything I could do there to have IP banned users also get the 404 ban?

Brad 04-29-2003 12:36 AM

Quote:

03-05-03 at 08:52 PM 006 said this in Post #37
I tried this and it still brings up the Sorry the administrator has banned your IP address... I was looking around in the files for the place that actually calls the template error_banip but I couldn't find it. Would there be anything I could do there to have IP banned users also get the 404 ban?

Open /admin/functions.php, find:

PHP Code:

eval("standarderror(\"".gettemplate("error_banip")."\");"); 

Replace with:

Code:

header("HTTP/1.0 404 Not Found");
  header("Status: 404 Not Found");
  exit;


007 04-29-2003 03:59 AM

Oh yeah I figured that out a while ago. Thanks though. If anyone else is wondering that then you just got your answer! :)

lol

lasto 08-23-2003 01:35 PM

cant run the query for some reason :

SQL-query :

INSERT INTO usergroup
VALUES (

"333", "Banned", "", "0", "1", "1", "1", "1", "0", "1", "0", "0", "0", "1", "1", "1", "1", "0", "0", "1", "1", "1", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "1"
)

MySQL said:

#1136 - Column count doesn't match value count at row 1


All times are GMT. The time now is 03:35 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.01618 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (3)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