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)

Kars10 02-09-2003 06:40 PM

Cool! installed... :)

Dynamic One 02-09-2003 07:56 PM

Thanks For this nice Hack m8.

Link14716 02-10-2003 01:30 AM

Nice hack, but I decided to use vBStealth with a little bit of code from the HellBan hack to torture the user with Internal Server Errors every 3rd page. I'll click install becuase this hack is still cool. :)

Erwin 02-10-2003 11:45 PM

I'll tell you how I do it. You can achieve the same result without hacking by doing this:

Open phpinclude template, add to the bottom:

Code:

if ($bbuserinfo[usergroupid] == 8) {
  header("HTTP/1.0 404 Not Found");
  header("Status: 404 Not Found");
  exit;
}

Change 8 to the banned usergroupid you use. Done! :)

Link14716 02-11-2003 12:04 AM

You could, but what's the fun in that? :)

Talisman 02-12-2003 04:55 AM

Thanks, Erwin. Will use your suggestion.

WouterW 02-18-2003 06:51 PM

Great hack, man! Works brilliant!

But now another question raises:
How can I hide the banned users from the memberslist on the forum?

Erwin 02-19-2003 05:06 AM

Open memberlist.php and find the code below:

PHP Code:

  $userscount=$DB_site->query_first("SELECT COUNT(*) AS users
                                     FROM user,userfield
                                     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.

:)

Brianna 02-24-2003 07:00 PM

I have no use for this really (at least at the moment) but I just gotta say what a great idea! Nice job! :)

John 02-25-2003 10:21 AM

The query doesn't work for me - I get:
Column count doesn't match value count at row 1
On vB 2.2.9


All times are GMT. The time now is 08:24 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.01019 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_php_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