vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Custom HTTP Error Pages (https://vborg.vbsupport.ru/showthread.php?t=98243)

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

Quote:

Originally Posted by Saviour (Post 1697099)
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:
Code:

$globaltemplates = array(
        'HTTP_ERROR',
        'http_error_bit'
);

Change to:
Code:

$globaltemplates = array(
        'HTTP_ERROR',
        'http_error_bit',
        'navbar'
);

Find:
Code:

$httperrorbit = '';
After, add:
Code:

$navbar = '';
Find:
Code:

        eval('$httperrorbit = "' . fetch_template('http_error_bit') . '";');
Before, Add
Code:

        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:
Code:

ErrorDocument 404 /forums/httperror.php?e=404
to:
Code:

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. ^_^

Icy 04-06-2009 03:03 PM

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.


All times are GMT. The time now is 03:09 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.01125 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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