View Full Version : Custom HTTP Error Pages
JJR512
10-11-2005, 10:00 PM
This is a re-write of a hack I made for vBulletin 2.x.
What this hack does is use vBulletin to generate HTTP error pages (such as the 404 - Not Found error). For those of you trying to get an all-vB-based-site, this addition will help complete your quest. Also for anyone who wants a nicer looking HTTP error message than the standard blah.
Note: Your website needs to be on a server that uses a .htaccess file, a file located in your root public directory. This may only be servers using the Apache HTTP server, I'm not sure if any other HTTP server, like Microsoft IIS, uses that or not. Some more notes on this are included in the instructions.txt file.
There are no vB files to modify. There is one file to upload, and one product to install, which will install several new templates and two plugins. The plugins are for Who's Online display. The templates contain the actual messages. No existing templates are modified.
Special thanks to KirbyDE for showing me how to group templates using a plugin rather than a code modification. :)
This hack has now been re-written to use phrases. If you have a previous version, here's what you can do to upgrade.
1. Upload the new httperror.php file.
2. Add the product-jjr512_httperr.xml, overwriting the existing. (All old non-used templates should be removed automatically. This version uses only two templates: HTTP_ERROR and http_error_bit.)
exceem
10-12-2005, 07:28 PM
Ive been waiting for somethign similar to this
thanks :)
Andreas
10-12-2005, 07:39 PM
This hack asks you to make one modification to your includes\adminfunctions_template.php file, to group its templates together. However, this is not absolutely necessary;
You are right, this edit is not necessary at all ;)
Hook template_groups
$only['http_error'] = 'HTTP Errors';
Another suggestion:
Use phrases for the Text, so users can easily use it with other Languages too.
dsotmoon
10-12-2005, 08:11 PM
wow, works great, i didnt make the file edit though
akanevsky
10-12-2005, 08:19 PM
'e' should be a TYPE_UINT.
Itworx4me
10-12-2005, 09:25 PM
You are right, this edit is not necessary at all ;)
Hook template_groups
$only['http_errors'] = 'HTTP Errors';
Another suggestion:
Use phrases for the Text, so users can easily use it with other Languages too.
Ok using your code above doesn't work. I have tested this and it doesn't group the templates.
Thanks,
Itworx4me
Omega Prime
10-12-2005, 10:53 PM
Worked like a charm. Thanks :)
* Omega Prime clicks Install
Andreas
10-12-2005, 11:13 PM
It does work, just leave out the s I added accidently ;)
COBRAws
10-12-2005, 11:54 PM
been waiting for this 3.5 port too
Thank you sir
--EDiT--
Phrases please, that would be very nice.
Avalon111
10-13-2005, 06:18 AM
great work! i love it!!!
JJR512
10-13-2005, 01:53 PM
You are right, this edit is not necessary at all ;)
Hook template_groups
$only['http_error'] = 'HTTP Errors';
Another suggestion:
Use phrases for the Text, so users can easily use it with other Languages too.
Just create a new plugin with that code as the code to that hook?
Also, regarding the templates vs. phrases issue: I originally thought to use phrases. But then I discovered you can't use variables, such as $vboptions[hometitle] in phrases. Is there a way to use variables like that in phrases? If so, I can re-write the hack. But when I put in that variable in a phrase I was testing, it just came out on the page literally, dollar sign and everything.
Andreas
10-13-2005, 02:09 PM
Phrase with Variable:
Hello {1}, how are you?
Template using this Phrase:
<phrase 1="$bbuserinfo[username]">$vbphrase[hello_x_how_are_you]</phrase>
Yes, just make a plugin with this Code and the Templates will be grouped.
JJR512
10-13-2005, 03:24 PM
I have updated the hack to include the new plugin provided by KirbyDE. The instructions have been updated. No vBulletin file modifications are necessary. (I copied that file mod from some other hacks that group templates the same way. Now I know it's not necessary to do it like that, and I'll probably create plugins like this for other hacks I've installed and return that file to its stock form.)
Due to the small change in method, the hack is now 2.0.1. This version does not include any phrases as KirbyDE has suggested. It will take me a short while to get all that done and tested, at which point we will probably have 2.1.0.
If you have already installed 2.0.0, and are going to upgrade to 2.0.1, simply do this: Removed the modification to your adminfunctions_template.php file, and add the product again, making sure to overwrite the existing version.
JJR512
10-13-2005, 03:26 PM
Phrase with Variable:
Hello {1}, how are you?
Template using this Phrase:
<phrase 1="$bbuserinfo[username]">$vbphrase[hello_x_how_are_you]</phrase>
Yes, just make a plugin with this Code and the Templates will be grouped.
Can you use {1} more than once in a phrase; for example, have the phrase be:
Hello, {1}! How are you today, {1}?
And the template would still be exactly the same as in your current example?
JJR512
10-13-2005, 03:31 PM
'e' should be a TYPE_UINT.
I think this is probably going just slightly beyond what I know about. How would I make this change, and why is it important? For my education and future reference.
I have another hack I may release soon that's also going to be using a variable through the URL in the same way that $e is used here. However, in this other hack, the value of the variable, $p, will be some text, like file.php?p=something. What should I define that as and how?
JJR512
10-13-2005, 03:33 PM
Wait, I think I answered my own question...
In the httperror.php file, the line
'e' => TYPE_STR
should be
'e' => TYPE_UINT
Is that correct?
(But in the other hack I mentioned, where $p is some text, leave it set to TYPE_STR, right?)
Snake
10-13-2005, 06:11 PM
Great, thanks for the hack.
akanevsky
10-13-2005, 06:21 PM
Yes, that is correct.
You might want to read my tutorial (https://vborg.vbsupport.ru/showthread.php?t=98047), it describes what are the clean variable types in vBulletin. :)
Basically, since you are passing an integer through the "e" variable, you should force the integer type on it, but it's just for security's sake :)
JJR512
10-13-2005, 07:27 PM
Updated to 2.0.2 based on code change suggested by Dark Visor.
If you have 2.0.1, make the change as described in post# 16 above and upload the modified httperror.php file.
If you have 2.0.0, basically do what is in post# 13 above (undo the modification to adminfunctions_template.php, then re-add the product, overwriting the existing version), PLUS upload the new httperror.php file.
Avalon111
10-14-2005, 05:09 AM
i have noticed that members who are not viewing a error page are listed as viewing error page in Who is online.
i have been talking with one member who has told me that.
could that be caused by this modification?
JJR512
10-14-2005, 12:28 PM
I've gone to your board and saw one or two people apparently on an error page, just as you've said. But I have no way to know what they're really doing. Have you spoken to the people and confirmed that they definitely did not ever see an error page?
I've looked at my own board, and didn't see anyone on an error page. As far as I can tell, I'm using the exact same code in the two plugins to add a new online location as many other hacks use. It's still possible there's something wrong, but I don't know what it could be yet.
If you're absolutely, positively sure these people haven't really been seeing error pages, try disableing the two plugins (in the Plugin Manager in the AdminCP, uncheck the active status of the plugins "Cutom Error Page (Online Location Process)" and "Cutom Error Page (Online Location Unknown)", then watch for a while and see what happens.
Avalon111
10-14-2005, 01:14 PM
I've gone to your board and saw one or two people apparently on an error page, just as you've said. But I have no way to know what they're really doing. Have you spoken to the people and confirmed that they definitely did not ever see an error page?
in my screenshot before you see a user called koschel. i have been talking with him when he was display with showing http error message in who is online. he told me that he has no http error on his screen he was watching the who is online page.
Today i have opened the who is online and my location was displayed as HTTP Error Page (see the screenshot my name is infinityloop). i have tried to refresh without any changes.
If you're absolutely, positively sure these people haven't really been seeing error pages, try disableing the two plugins (in the Plugin Manager in the AdminCP, uncheck the active status of the plugins "Cutom Error Page (Online Location Process)" and "Cutom Error Page (Online Location Unknown)", then watch for a while and see what happens.
I will try that when i get home today. thank you very much for your help!
Avalon111
10-14-2005, 02:08 PM
i have tried to deactivated the plugins. i have opened the Who is online and watched it for about 15 minutes. i have been using "reload this page" to update it. after such a reload i was suddenly displayed with location: unknown viewing forums/httperror.php?e=404
using reload had no effect!
i think the problem is caused by vbulletin or my host. not by this modification!
My Host is using a loadbalancer thats why i have to use
$_SERVER['HTTP_X_REMOTECLIENT_IP'] instead off $_SERVER['REMOTE_ADDR']
could that cause my problem?
anyone knows how vbulletin is determing the location of the users?
Andreas
10-14-2005, 02:16 PM
Moved to Extensions :)
JJR512
10-14-2005, 02:51 PM
i have tried to deactivated the plugins. i have opened the Who is online and watched it for about 15 minutes. i have been using "reload this page" to update it. after such a reload i was suddenly displayed with location: unknown viewing forums/httperror.php?e=404
using reload had no effect!
i think the problem is caused by vbulletin or my host. not by this modification!
My Host is using a loadbalancer thats why i have to use
$_SERVER['HTTP_X_REMOTECLIENT_IP'] instead off $_SERVER['REMOTE_ADDR']
could that cause my problem?
anyone knows how vbulletin is determing the location of the users?
Those settings, the $_SERVER..., I don't know anything about those, I don't even know where they are or what they're for. Sorry. I also don't know anything about loadbalancing.
Since you've deactivated the plugin, you can see that the user is actually looking at the error page. But you say the user says he hasn't seen the error page. So I don't know what the problem is. It could be that vBulletin is being tricked into thinking the user is on the error page when he isn't. But I don't know anything about how vBulletin determines where a user is, so I don't know how that could be, or how to prevent it.
Is anyone else experiencing a similar issue after installing this hack? Let us know.
Avalon111
10-14-2005, 04:41 PM
Those settings, the $_SERVER..., I don't know anything about those, I don't even know where they are or what they're for. Sorry. I also don't know anything about loadbalancing.[QUOTE]
my host told me that i have to use $_SERVER['HTTP_X_REMOTECLIENT_IP'] in all php scripts to determin the ip adresses of the visitors. otherwise vbulletin shows the ip from the loadbalancing server as ip fron the users.
i had to edit the
includes\class_core.php
[QUOTE=JJR512] It could be that vBulletin is being tricked into thinking the user is on the error page when he isn't.
Yes i believe thats my problem. i have visited the Who is online quite rarely befoe i installed you modification. i am sure this issue was allready there before.
Avalon111
10-14-2005, 05:12 PM
update!
when i remove the changes in the .htaccess the problem is gone!
JJR512
10-14-2005, 05:43 PM
Kirby (or anyone else): Can you use a variable as part of a phrase name?
I have created a bunch of phrases called error_title_400, _401, _403, etc. Rather than creating a long if...else...else...else... statement to call each phrase by its full name, I'd like to just use one statement to call the phrase, using the value of $e as part of the name.
I have tried both
$error['title'] = construct_phrase($vbphrase['error_title_' . $e]);
and
$error['title'] = construct_phrase($vbphrase['error_title_$e']);
But neither worked.
I also tried both without the contruct_phrase function being used (when is it appropriate to use that function and when shouldn't it be used?).
Is there a way to do this?
JJR512
10-14-2005, 08:16 PM
Please disregard the previous question. The problem was that I hadn't told the script to use the new phrases.
akanevsky
10-14-2005, 08:38 PM
$error['title'] = construct_phrase($vbphrase['error_title_' . $e]);
Is wrong. Try:
$error['title'] = construct_phrase($vbphrase["error_title_$e"]);
Or if that doesn't work,
$errorvar = 'error_title_' . $e;
$error['title'] = construct_phrase($vbphrase["$errorvar"]);
JJR512
10-14-2005, 09:32 PM
The first thing I originally tried, which is the bit of code you said is wrong, does actually work.
Well, let me rephrase that.
It works without using the construct_phrase function.
This is what I'm using, and it works, and is about to be uploaded:
$error['title'] = $vbphrase['error_title_' . $e];
JJR512
10-14-2005, 09:41 PM
The hack is now updated to use phrases for, I believe, all text displayed.
If you have an earlier version, upgrade instructions are now in the hack description above.
Andreas
10-15-2005, 04:45 AM
$error['title'] = construct_phrase($vbphrase['error_title_' . $e]);
Is wrong. Try:
$error['title'] = construct_phrase($vbphrase["error_title_$e"]);
Hmm, why should it be wrong?
@JJR512
Wasn't the previous version a product as well?
Then you don't have to worry about old templates or such; product management will take care of that.
The User just has to reimport the XML :)
JJR512
10-17-2005, 03:40 PM
I didn't realize that. So when you import a product, using the overwrite, it will also remove any templates with that product's name that are not in the new version of the product? Wow. Great stuff! :)
JJR512
10-17-2005, 05:10 PM
Note: The product file has been updated to correct the "refresh" and "back" messages be actual links that will refresh the page or go back to the previous page. The links were accidentally converted to text when I was converting the original templates into phrases.
If you had the 2.1.0 version, you only need to re-add the product file, overwriting the previous version. For any other earlier version, download the new httperrors211.zip file and follow the same instructions already posted for upgrading to 2.1.0.
oglsmm
10-26-2005, 02:39 PM
I also am getting a lot of people reported as "Viewing HTTP Error" on the Who's Online page, when i know they are not seeing an error. I don't have anything in my .httaccess file either.
Snake
10-26-2005, 06:45 PM
Same here!
Delphiprogrammi
10-26-2005, 09:00 PM
installed no problem found so far
Snake
10-26-2005, 09:04 PM
It's working all fine now. Thanks again. :)
JJR512
10-27-2005, 12:09 PM
It's working all fine now. Thanks again. :)
Did you do anything to fix the problem?
JJR512
10-27-2005, 12:24 PM
update!
when i remove the changes in the .htaccess the problem is gone!
I also am getting a lot of people reported as "Viewing HTTP Error" on the Who's Online page, when i know they are not seeing an error. I don't have anything in my .httaccess file either.
If you don't have anthing in your .htaccess file, how is the hack working at all? Sure, if you go to www.yourdomain.com/forums/httperror.php?e=404 (http://www.yourdomain.com/forums/httperror.php?e=404) you'll see the error page, but what if you go to www.yourdomain.com/xkaooe3991.html (http://www.yourdomain.com/xkaooe3991.html), a file which probably doesn't exist on your server, do you get the error page from my hack then? Because as far as I'm aware, custom error pages need to be "pointed" to by the .htaccess file, otherwise you get the generic error page. And if I'm wrong about that, then I guess I need to be re-educated. :)
Delphiprogrammi
10-27-2005, 01:54 PM
hi people,
it looks like this is not working for error code 401 (autorization requirerd) the screen that comes up if you try to login to restricted area with the wrong login information.My apache error_log shows this
can't use a FULL url in a 401 ErrorDocument ignoring
for this error code it must be a local document so ......
ErrorDocument 401 /httperror.php?e=401
should do it but nope ...
JJR512
10-27-2005, 04:57 PM
Assuming that your httperror.php is in the web root (meaning not in a forums subfolder), did you try it without the beginning slash? Try it using a path name instead of a URL?
Delphiprogrammi
10-27-2005, 06:52 PM
hi,
Yes the httperror.php is in the "webroot" i didn't tryed that yet (using an aboslute pathname or remoing the slash) will give that a shot and get back to you
Snake
10-27-2005, 06:54 PM
Did you do anything to fix the problem?
Nah actually it was just a silly mistake I've made. I forgot to upload the product XML file via the admincp. The hack's working just fine! :)
Delphiprogrammi
10-27-2005, 06:58 PM
hi,
Yes the httperror.php is in the "webroot" i didn't tryed that yet (using an aboslute pathname or remoing the slash) will give that a shot and get back to you
just tryed this absolute path and no beginning "/" but the problem is elsewhere i think my apache error_log shows this
[Thu Oct 27 14:55:20 2005] [error] [client ********] File does not exist: /401.shtml
i'm on a dedicated server (cpanel) maybe that has anything todo with it i didn't configure the "errorpages" in my cpanel through
Delphiprogrammi
10-27-2005, 09:30 PM
well,
punch me but all of a sudden it started to work.All i did before it started to work is just access the page that would bring up that error page eg http://www.yourserver.com/httperror.php?e=401 and the line in my .htaccess for errorcode 401 is
ErrorDocument 401 /httperror.php?e=401
also i found while searching on google that the leading "/" means to be a local document not a url
Lea Verou
10-28-2005, 11:38 AM
Thanks a lot, it's great, it saved me lots of time :)
JJR512
10-28-2005, 03:48 PM
I will shortly be changing the instructions to not have the full URL to the file, just the local file name, as in Delphiprogrammi's code example in Post# 47. Maybe it only applies to the one type of error, maybe there are others, so just in case, I'm recommending that for all of them.
Lea Verou
11-03-2005, 04:23 PM
I will shortly be changing the instructions to not have the full URL to the file, just the local file name, as in Delphiprogrammi's code example in Post# 47. Maybe it only applies to the one type of error, maybe there are others, so just in case, I'm recommending that for all of them.
After I installed this a lot of my members complain that they keep seing it in pages that exist, especially on the home page of the site!
oglsmm
11-06-2005, 02:35 AM
If you don't have anthing in your .htaccess file, how is the hack working at all? Sure, if you go to www.yourdomain.com/forums/httperror.php?e=404 (http://www.yourdomain.com/forums/httperror.php?e=404) you'll see the error page, but what if you go to www.yourdomain.com/xkaooe3991.html (http://www.yourdomain.com/xkaooe3991.html), a file which probably doesn't exist on your server, do you get the error page from my hack then? Because as far as I'm aware, custom error pages need to be "pointed" to by the .htaccess file, otherwise you get the generic error page. And if I'm wrong about that, then I guess I need to be re-educated. :)
I meant there is nothing in there but the stuff from this hack.
Sorry for the confusion.
Lea Verou
11-06-2005, 02:37 AM
After I installed this a lot of my members complain that they keep seing it in pages that exist, especially on the home page of the site!
*bump* :nervous:
JJR512
11-07-2005, 12:46 PM
After I installed this a lot of my members complain that they keep seing it in pages that exist, especially on the home page of the site!
Sorry about that. I'm actually not really sure how to help you. The problem would seem to be with the webserver itself, since it's directing people to the error pages. It could be that the .htaccess file isn't configured properly or there is some other problem related to it.
You may want to ask your webhost technical support what's wrong with your .htaccess file. Explain to them you're trying to use custom error pages and show them what you put in that file.
If they are able to help you, please tell us here what they did. If they can't help you (or nobody else here can), then unfortunately you may need to uninstall and not use this hack.
Lea Verou
11-07-2005, 02:52 PM
Sorry about that. I'm actually not really sure how to help you. The problem would seem to be with the webserver itself, since it's directing people to the error pages. It could be that the .htaccess file isn't configured properly or there is some other problem related to it.
You may want to ask your webhost technical support what's wrong with your .htaccess file. Explain to them you're trying to use custom error pages and show them what you put in that file.
If they are able to help you, please tell us here what they did. If they can't help you (or nobody else here can), then unfortunately you may need to uninstall and not use this hack.
I already asked them and they said that everything is ok! :confused:
Btw this only happens at the home page of the site...
Are you sure it has nothing to do with the hack? Cause I read here that other members have it too and it only started happening after the install of it...
JJR512
11-08-2005, 01:24 PM
It's possible, but if it is, it's beyond my comprehension. It defies logic. The operation of this hack should be extremely simple. Either an error condition occurs, in which case you are directed to the appropriate page generated by this hack, or else there is no error condition and you get to the correct page on your site. I can't understand how someone would get to the error message without there being any error condition. I'm sorry.
kadafi_alive
11-19-2005, 08:54 PM
Hi JJR512,
great hack, it is working perfectly except in whoisonline, it shows when a user is seeing an error page: Unknown location instead of the phrase viewing error.
How do I fix this
Regards
JJR512
11-20-2005, 04:11 PM
Is the plugin active?
Skyline_GT
11-25-2005, 07:57 AM
I wonder how come the images are dead?
Where should I fix this?
http://www.gamerzplanet.net/adsd
Snake
11-25-2005, 12:29 PM
I don't see any broken images, it's working fine. ;)
PennylessZ28
11-27-2005, 05:27 AM
Glad to know I'm not alone, I've been using the old and new versions of this and everyone is EXPERINCING and error, even when they aren't.
WTF?
Lea Verou
11-27-2005, 01:04 PM
Glad to know I'm not alone, I've been using the old and new versions of this and everyone is EXPERINCING and error, even when they aren't.
WTF?
There are too many to say that it isn't a problem of the hack I guess...
PennylessZ28
11-27-2005, 05:35 PM
There are too many to say that it isn't a problem of the hack I guess...
The hack is the problem, when I uninstall it my users are veiwing normal pages in the WOL locations.
I have access to 4 computers and I can put them all on different places on my website, with no problems, but most of the time it will show them as VIEWING and HTTP error unless they are on the forum home.
joeychgo
11-28-2005, 10:38 AM
I came across a problem when I tried to verify my google sitemap..
We've detected that your 404 (file not found) error page returns a status of 200 (OK) in the header.
JJR512
11-28-2005, 10:51 PM
It's possible, but if it is, it's beyond my comprehension. It defies logic. The operation of this hack should be extremely simple. Either an error condition occurs, in which case you are directed to the appropriate page generated by this hack, or else there is no error condition and you get to the correct page on your site. I can't understand how someone would get to the error message without there being any error condition. I'm sorry.
I still don't understand the problem now anymore than I did when I originally posted this.
I understand the theory of "If there's no problem without the hack, and there is a problem with the hack, then the problem must be caused by the hack." It seems logical enough. But there is nothing in the hack itself to cause those problems, that the Who's Online system says someone is on an error page, when in reality they aren't. Rather, the problem must be with how the hack is implemented, how it's activated (which is done through the .htaccess file). Some people have said that it has something to do with the webserver setup. What it is, how to fix it, how to work around it, are all beyond my ability and knowledge. Again, I'm sorry. If you can figure it out, by all means post the solution here. All I can say is if for some reason it doesn't work for you, simply don't use it.
993ti
12-16-2005, 01:44 PM
How can i change it so that the header doesn't show a 200 status on error pages?
My old urls are getting 200 status and the bots think it's still there and don't update the search results.
Jon_Simmonds
03-09-2006, 10:08 AM
i removed the http://ww bit from my .htacess
its now ErrorDocument 404 /forums/httperror.php?e=404
you will need to ensure that any images linked in your template will have full paths to the images (i.e include http://www. etc)
all is working for fine for me,and i now see a 404 status
sorry to bump this topic to!
melefire
03-12-2006, 10:08 PM
nice ive been making pages and having my error pages redirect to them
this is alot better
*Clicks Install
Jon_Simmonds
03-31-2006, 01:37 PM
I would just like to add, now I made the changes i mentioned above in post 66, I am seeing whole loads of 404's in my logs, which wernt there while I had this addon installed as per the instructions provided
Before i made the change, all the links that were incorrect would have been reutrining status 200 and thus this may well have damaged my search engine ranking, if you havnt allready please update htacess to remove the http://www from the links
Surviver
04-15-2006, 06:13 PM
Hello, Thank you for this great Hack!
How can I insert the navbar by an error ?
If I insert $navbar into the template , it wont't be show ...
Thank you !
mfg Surviver
PS: Sorry for my bed english
jim6763nva
04-16-2006, 09:24 PM
Thank you for this! makes things complete now :)
JJR512
04-18-2006, 03:41 PM
Hello, Thank you for this great Hack!
How can I insert the navbar by an error ?
If I insert $navbar into the template , it wont't be show ...
Thank you !
mfg Surviver
PS: Sorry for my bed english
There's some code that generates $navbar that I never put into the PHP file because I didn't see the need for a navbar. In my experience when I get a 404 message I usually just go back a page and try again or try something else. I'm in the middle of some stuff right now, but I'll take a look at adding it soon.
mikelbeck
08-23-2006, 01:06 PM
I've just installed this on a couple of my sites, and I like it. ;-)
Some fixes, though...
The line:
<title>$vboptions[bbtitle] - HTTP Error $error</title>
should be:
<title>$vboptions[bbtitle] - HTTP Error $error[title]</title>
Without that fix, the title of the page was "HTTP Error Array". Now it's "HTTP Error 404: File Not Found".
Also, after "$headinsert" add this line:
<meta name="robots" content="noindex, nofollow">
Without that fix, search engines could store the actual error page in it's index.
Snake
08-23-2006, 06:43 PM
Sweet. So you're saying it should work just fine on 3.6.0? :)
mikelbeck
08-23-2006, 06:47 PM
Yes, it does.
Snake
08-23-2006, 06:57 PM
Thanks mikel!
dsotmoon
09-12-2006, 11:52 PM
thanks for the tips and fixes, finally got my errors resolved and this hack working on 3.6.0
phovanxua
09-27-2006, 08:58 PM
I got the HTTP error also (3.5.4),but when I hit the refresh page ...it's gone ....is this the right MOD for the fix .?
ChurchMedia
10-09-2006, 05:05 PM
I was running this on 3.5 without any problems. I upgraded to 3.6.1 and the error screen looks like this (see attachment). It's like it's not getting the CSS info. Any ideas? Thanks for such a cool hack!
You can also see it live here:
http://www.churchmedia.net/blah
ChurchMedia
10-10-2006, 10:38 PM
I found the problem. I had switched my CSS to be stored in files in the VB Style Options. I switched that off and everything is fine now.
Exitilus
01-03-2007, 04:50 AM
Well I installed this on 3.6.4 with very little problems. Though for .htaccess i used an actuall URL and it seems to work fine. I think I read earlier there were some problems but seems fine so far.
Very nice and working fine on vb3.6.4
Only one req: Can somebody please make this to use the .css stored in vb file system??
TheInsaneManiac
06-15-2008, 08:08 AM
Does this work on 3.7?
jim6763nva
06-18-2008, 09:33 PM
Works on 3.7.x Awesome addon Thank you!
Installed x 4
veenuisthebest
07-26-2008, 08:54 AM
I see the developer was last online 2 years ago. I hope someone else can solve my issue out.
The mod works fine for me on 3.7 board. However, I face some problems related to Header and Footer Link replacements.
www.mysite.com/forum/invalid.php (works perfect)
www.mysite.com/forum123/invalid.php (everything's fine here except all the URL's on the page now point to forum123 dir instead of forum)
Thanks
veenuisthebest
08-06-2008, 01:53 AM
anyone helping me out ??
gezuvor
08-12-2008, 10:11 PM
Installed on 3.7.2 and no problems yet... great mod!
veenuisthebest
08-13-2008, 01:29 AM
hey gezyvor, then please care to solve my problem !
How did you managed to solve that link replacements problem as mentioned in post 84 above.
Baldilocks
09-20-2008, 02:13 AM
Very cool that it still works with 3.7.x.!!
jim6763nva
09-20-2008, 03:52 AM
Has anyone had a problem getting this to work after installing vbSEO 3.2? This used to work on my site till I installed vbSEO. If I try to go to http://www.talkvirginia.net/unknown.php it will trigger a 404 error but it won't activate the httperror.php
JackFranklin
11-07-2008, 11:10 AM
I have installed and it's not working - I also have VBSeo 3.2, maybe this is the problem?
Saviour
12-30-2008, 11:02 AM
Well...
I, too, have this mod installed on my board. I'm running vbulletin 3.7.4 PL1, along with vbadvanced 3.1.0.
The mod is working fine, but the issues I have are as follows:
1. No navbar.
2. Links in header and footer do not point to the forum pages.
3. Contact Us link in error page does not point to forums/sendmessage.php.
Anyone care to give their "two cents"? Much appreciated...
(Edit: Also, The mod works if you go to the following page: http://www.glitchpc.com/store.html. However, if you go to http://www.glitchpc.com/store.php, it displays the host's default page. Could sure use a lot of help on all of the above.)
TheInsaneManiac
12-31-2008, 12:09 AM
Well...
I, too, have this mod installed on my board. I'm running vbulletin 3.7.4 PL1, along with vbadvanced 3.1.0.
The mod is working fine, but the issues I have are as follows:
1. No navbar.
2. Links in header and footer do not point to the forum pages.
3. Contact Us link in error page does not point to forums/sendmessage.php.
Anyone care to give their "two cents"? Much appreciated...
(Edit: Also, The mod works if you go to the following page: http://www.glitchpc.com/store.html. However, if you go to http://www.glitchpc.com/store.php, it displays the host's default page. Could sure use a lot of help on all of the above.)
Lucky... If an image is removed from anywhere above the forum directory and a user tries to access it, the page will display 404, but NO images within the page which looks horrible.
Saviour
12-31-2008, 03:32 PM
Actually...
I decided against this mod...and created my own error pages. Much more reliable...and easier to configure.
Uninstalled!
lilbill0005
01-08-2009, 11:56 PM
A few quick edits got the navbar added, which I wanted, but, I can't get images to display if errors are caused anywhere except for within the forums directory.
So, you either:
a) need to add a $forumpath type variable to specify where the forums are (to get sendmessage to point to the proper file, as well as to show images, etc.)
or, as a cop-out:
b) Have people put the .htaccess file within their forum directory, so it only has those http errors for the forums themselves.
I'll be working on a fix for the forumpath thing, but, I'm not a great PHPer. >.<
lilbill0005
01-16-2009, 09:26 AM
There's actually so much wrong with this, I don't even know that it's worth fixing. At least not for me. Every time I fix one problem, I run into another. I'm thinking about disabling it.
By the way, because I realized I'd forgotten to post this earlier, here's how to add the navbar:
Open up httperror.php
Find:
$globaltemplates = array(
'HTTP_ERROR',
'http_error_bit'
);
Change to:
$globaltemplates = array(
'HTTP_ERROR',
'http_error_bit',
'navbar'
);
Find:
$httperrorbit = '';
After, add:
$navbar = '';
Find:
eval('$httperrorbit = "' . fetch_template('http_error_bit') . '";');
Before, Add
eval('$navbar = "' . fetch_template('navbar') . '";');
Then, in your HTTP_ERROR template, find $header, and add $navbar on the next line.
And you'll have a navbar. Then, to get CSS and images working, change your code for each error from something like:
ErrorDocument 404 /forums/httperror.php?e=404
to:
ErrorDocument 404 http://www.example.com/forums/httperror.php?e=404
Unfortunately, while that makes the pages and images work properly, it nulls the use of a back button, as it actually does a sort of permanent redirect to the page. The problem is, the variables and CSS stuff need to be globalized, and despite the script pretending to be somewhere else, it needs to know where it actually is, and it's not doing that.
On top of that- and this is something I wouldn't know how to fix entirely- if someone is making a call to an image or script or file via inline what-have-you, they get a 404, and show up in the WOL as viewing the Who's Online Script. I have no idea how to make it not do that, as it'd be calling images and scripts and such after it's already called the thread. I think the best idea would be to remove it from Who's Online altogether, as it doesn't matter if someone is viewing an error page. -_-
I've fixed it by putting blank scripts where ones were being called, but, that's a cheesy solution, and I shouldn't have to.
If the original author or someone more professional than I can fix these flaws, that'd be great. :D
Someday, I'll learn PHP. T_T
EDIT: As far as fixing the online thing (I mean, why would you want to have "So and so is viewing a page that isn't there! Wee! Especially when that's blocking what they are actually viewing. I mean, someone could purposefully link to an image on the site to block their thread from showing up in the Who's Online; it's not good), in the AdminCP find the plugin manager, and look for "Product : Custom Error Pages"
and uncheck both "Custom Error Page (Online Location Process) - online_location_process" and "Custom Error Page (Online Location Unknown) - online_location_unknown". Then, hit enter, or scroll to the save button. This will disable anything displaying on the Who's Online page, to avoid anyone having to mess with anything. Although, it could be useful for debugging, to see if any pages are making calls to things that aren't there. Although, I guess you could just check Firefox's Error Console. XD
I hope my post has been helpful. ^_^
Having problem with the page title. Its showing HTTP Array at Golpo Community
http://www.golpo.net/forum/icy.php
Saviour
05-26-2009, 12:33 PM
Decided to give this mod another chance...
I have worked out my previous issues. However, I do have a question...and hopefully, someone will be able to point me in the right direction.
I used to have the DownloadsII mod installed. If I go to the downloads.php page of my site...I get an error 404 from this mod...no problem there...since the mod is no longer installed. However, if I go to a file location, such as: http://glitchpc.com/forums/downloads.php?do=file&id=10, then a blank page is displayed, but no error page.
Does anyone have an idea why this is happening?
I'm running vB 3.8.2.
Saviour
05-26-2009, 08:55 PM
Update...
Resolved this issue by re-installing the DownloadsII mod.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.