View Full Version : [Release] 404 error ban.
Author: Anime-loo
Description: This modification will show a "404 page not found" error to anyone in the banned usergourp.
Demo: n/a
Screenshot: n/a
manex
02-18-2003, 08:42 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=48710&highlight=404+error+ban" target="_blank">https://vborg.vbsupport.ru/showt...=404+error+ban</a>
hehe - how dd you do it whtiout hacking?
Sephiroth32
02-18-2003, 09:19 PM
....look at the txt to find out
the phpinclude template was used
manex
02-18-2003, 09:24 PM
gotta love PHPinclude
Tony G
02-19-2003, 03:52 AM
Nice mod, good idea. :)
Vladdy
02-22-2003, 12:23 AM
What about making something similar where instead of it saying 404, it says in huge bold letters:
BANNED!
hehe :D
Vladdy
02-22-2003, 12:24 AM
Oh I suppose you could just insert any text in place of the 404 error :D
Vladdy
02-22-2003, 12:36 AM
Hmmm, this mod isn't working for me either. After I added this, I still got the regular default ban page :confused:
DeMiNe0
03-02-2003, 05:37 PM
Why not just use:
if ($bbuserinfo[usergroupid] == BANNEDUSERGROUPIDGO'SHERE) {
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
exit;
}
its shorter.
The @ in the code prevents the header function from showing a error just incase it fails. If it did fail for some reason the user would know that the page is not a real 404 error.
filburt1
03-03-2003, 02:02 AM
Side note: in PHP, always use single quotes in key-based arrays; for example, $bbuserinfo['userid']. vB2 uses the incorrect method of not using quotes which long story short is bad. If you want to be compliant in templates, too, you can use {$variable['key']}. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.