vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - HTTP Error Pages PRO (NOW FREE) (https://vborg.vbsupport.ru/showthread.php?t=247719)

TheSupportForum 07-31-2010 10:00 PM

HTTP Error Pages PRO (NOW FREE)
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!Brought to you by eRepTalk.co.uk (http://www.ereptalk.co.uk)!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SUGGESTIONS/FEEDBACK WELCOME FOR ADDITIONAL FEATURES

its been a long time since this MOD was released as PRO, now i have decided to offer this to everyone FREE

just to let people know that 95% of the time a 404 error message will appear due to 2 things

1) how your webhost if configured

2) if you have a VPS/Dedicated server
if this is the case all error codes will work for the domain you want, you may need to contact your VPS/Dedicted Server Provider for support on this issue


Stylvars
Re-Added due to testing features
more will be added in the next release

Please remember to click Mark as Installed if you use this product.

Support requests from members who have not marked this as installed will be considered low priority.

Name: HTTP Error Pages
Version: 4.0.2
Description:
This hack allows you to use vBulletin template driven pages for 400, 401, 403, 404 and 500 webserver error pages that will perfectly match your own forum's design.
Compatible with: 4.0.2+ vBulletin versions.

Requirements:
vBulletin version 4.0.x


Specific Features:-
AdminCP Options:

Change Title Colour using HEX or names (E.g FFFF00). (Through Stylevars)
Change content Colour using HEX or names (E.g FFFF00). (Through Stylevars)
Change Title for Standard HTTP Error (401,403,404,405). (Admincp)
This is not phrased and easier for you to change the titles of each error, no need to edit phrases in language and phrases section.
Change Content of Standard HTTP Error (401,403,404,405) (Admincp)
This is not phrased and easier for you to change the titles of each error, no need to edit phrases in language and phrases section.
Online Location and Who's Online Viewable.
More desciptive, easier to userstand the layout.
2 Stylars Added. (ErrorPages) (Through Stylevars)

Other Info: Header and Title Removed
our team decided to remove this due to a request made by a vbulletin member, understanding that reason makes the error pages more organised and not just a standard vbulletin page as it has been customised to look more like an HTTP Error page using alot of vbulletin template features.

Removed vbulletin Notices for HTTP Error pages
due to this already being available in the header, this was not meant to be part of the MOD, therefore our team removed it

W3C Validated

Donation Welcome


Requested Features Addtions for next release
please PM or leave a message on this section, information will be added or considered for th next release

TheSupportForum 08-01-2010 12:16 PM

Next Release update:

you will be able to edit each message in admincp
fix for WOL

if you want to see any extra features added please PM me, i will add it to the list if i can do this

Xencored 08-01-2010 12:23 PM

Oh Nice ill check this out :) Thanks

sulasno 08-01-2010 12:50 PM

tagged and thanks

Bohra 08-01-2010 01:13 PM

great can anyone using this hack post his forum url here so we can test

TheSupportForum 08-01-2010 02:07 PM

Message from Developer:

the easy way to test it is as follows after installation and uoload of the files
including the .htaccess edit it will work like this

Please Click Here give a 404 not found

to get the other error message i am not sure but it does work 100% for me

Front Range 4x4 08-01-2010 02:51 PM

Quote:

Originally Posted by simonhind (Post 2077639)

This is what I get from that URL

TheSupportForum 08-01-2010 02:55 PM

Quote:

Originally Posted by Front Range 4x4 (Post 2077657)
This is what I get from that URL


sorry about that link fixed

Xtrigit 08-09-2010 06:31 PM

Very nice.

Can you make it so that it redirects you to the index page after say 5 seconds?

Thanks

TheSupportForum 08-09-2010 11:43 PM

i will do this for the next release

i am currently working on a project for erepublik.com companies and organisations
so please be patient for the next couple of days

Bluefin221 08-10-2010 06:00 AM

Where exactly should I be editing the files to display my own messages?

Bluefin221 08-11-2010 08:46 AM

This throws up errors on the who's online when I deactivate the mod the errors go away.

The error when trying to view who's online
Error1
Code:

Parse error:  syntax error, unexpected T_CASE in /home/myfolder/public_html/forums/includes/functions_online.php(2197) : eval()'d code on line 18
Error2
Code:

Parse error:  syntax error, unexpected T_CASE in /home/myfolder/public_html/forums/includes/functions_online.php(1214) : eval()'d code on line 38

TheSupportForum 08-11-2010 04:45 PM

Quote:

Originally Posted by Bluefin221 (Post 2081629)
Where exactly should I be editing the files to display my own messages?

these are phrases just search for part of the phrase

but will make it editable in admincp on next version

Dragonsys 08-11-2010 04:51 PM

Quote:

Originally Posted by Bluefin221 (Post 2082065)
This throws up errors on the who's online when I deactivate the mod the errors go away.

The error when trying to view who's online
Error1
Code:

Parse error:  syntax error, unexpected T_CASE in /home/myfolder/public_html/forums/includes/functions_online.php(2197) : eval()'d code on line 18
Error2
Code:

Parse error:  syntax error, unexpected T_CASE in /home/myfolder/public_html/forums/includes/functions_online.php(1214) : eval()'d code on line 38

Replace the following
HTTP Error Pages Pro -> Who's Online List: Online Location Unknown
replace with code with:
Code:

if ($userinfo['activity'] == '400')
{
        $userinfo['action'] = "Viewing 400 Bad Request";
        $userinfo['where'] = '<a href="400_forum.php?'.$vbulletin->session->vars[sessionurl].'">400 Bad Request</a>';
        $handled = true;
}
if ($userinfo['activity'] == '401')
{
        $userinfo['action'] = "Viewing 401 Unauthorized";
        $userinfo['where'] = '<a href="401_forum.php?'.$vbulletin->session->vars[sessionurl].'">401 Unauthorized</a>';
        $handled = true;
}
if ($userinfo['activity'] == '403')
{
        $userinfo['action'] = "Viewing 403 Forbidden";
        $userinfo['where'] = '<a href="403_forum.php?'.$vbulletin->session->vars[sessionurl].'">403 Forbidden</a>';
        $handled = true;
}
if ($userinfo['activity'] == '404')
{
        $userinfo['action'] = "Viewing 404 Not Found";
        $userinfo['where'] = '<a href="404_forum.php?'.$vbulletin->session->vars[sessionurl].'">404 Not Found</a>';
        $handled = true;
}
if ($userinfo['activity'] == '500')
{
        $userinfo['action'] = "500 Internal Server Error";
        $userinfo['where'] = '<a href="500_forum.php?'.$vbulletin->session->vars[sessionurl].'">500 Internal Server Error</a>';
        $handled = true;
}

HTTP Error Pages Pro -> Who's Online List: Online Location Process
replace code with:
Code:

if ($filename == 'forum_400.php')
{
        $userinfo['activity'] = '400';
}
if ($filename == 'forum_401.php')
{
        $userinfo['activity'] = '401';
}
if ($filename == 'forum_403.php')
{
        $userinfo['activity'] = '403';
}
if ($filename == 'forum_404.php')
{
        $userinfo['activity'] = '404';
}
if ($filename == 'forum_500.php')
{
        $userinfo['activity'] = '500';
}


TheSupportForum 08-13-2010 11:11 PM

Quote:

Originally Posted by Dragonsys (Post 2082239)
Replace the following
HTTP Error Pages Pro -> Who's Online List: Online Location Unknown
replace with code with:
Code:

if ($userinfo['activity'] == '400')
{
        $userinfo['action'] = "Viewing 400 Bad Request";
        $userinfo['where'] = '<a href="400_forum.php?'.$vbulletin->session->vars[sessionurl].'">400 Bad Request</a>';
        $handled = true;
}
if ($userinfo['activity'] == '401')
{
        $userinfo['action'] = "Viewing 401 Unauthorized";
        $userinfo['where'] = '<a href="401_forum.php?'.$vbulletin->session->vars[sessionurl].'">401 Unauthorized</a>';
        $handled = true;
}
if ($userinfo['activity'] == '403')
{
        $userinfo['action'] = "Viewing 403 Forbidden";
        $userinfo['where'] = '<a href="403_forum.php?'.$vbulletin->session->vars[sessionurl].'">403 Forbidden</a>';
        $handled = true;
}
if ($userinfo['activity'] == '404')
{
        $userinfo['action'] = "Viewing 404 Not Found";
        $userinfo['where'] = '<a href="404_forum.php?'.$vbulletin->session->vars[sessionurl].'">404 Not Found</a>';
        $handled = true;
}
if ($userinfo['activity'] == '500')
{
        $userinfo['action'] = "500 Internal Server Error";
        $userinfo['where'] = '<a href="500_forum.php?'.$vbulletin->session->vars[sessionurl].'">500 Internal Server Error</a>';
        $handled = true;
}

HTTP Error Pages Pro -> Who's Online List: Online Location Process
replace code with:
Code:

if ($filename == 'forum_400.php')
{
        $userinfo['activity'] = '400';
}
if ($filename == 'forum_401.php')
{
        $userinfo['activity'] = '401';
}
if ($filename == 'forum_403.php')
{
        $userinfo['activity'] = '403';
}
if ($filename == 'forum_404.php')
{
        $userinfo['activity'] = '404';
}
if ($filename == 'forum_500.php')
{
        $userinfo['activity'] = '500';
}



sorry about this issue guys, i changed the filenames thats why the error messages appears, i will ensure that this is fixed for next release

TalkVirginia 03-27-2011 08:20 AM

I added the ErrorDocument lines in my .htaccess and the forum_XXX.php files are in my forum root but whenever I go to a bad page or a page I know I don't have I keep getting the IE error screen "The webpage cannot be found"

Any idea why it's not redirecting to the forum_404.php?

Jim

DNN 04-06-2011 04:29 AM

Do HTTP:// error 404 pages help boost SEO or something? I hear alot of ppl talking about optimizing those pages. I have no clue why.

downloadsuk 04-06-2011 04:26 PM

this mod doesn't work if you are using the .htaccess files for friendly URL rewrites supplied by vbulletin

Crotan 06-24-2011 03:38 AM

Added the lines to the .htaccess,

Uploaded files and uploaded product and no go, It managed to change from my hosts standard ad parked 404 page to now a plain page containing

"Not Found

The requested URL /forums/ouch was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Does this mod work with 4.1.4?

fxwoody 06-24-2011 07:11 AM

Why don't u guys simply use cPanel to make your own error page???

Just a remark ;)

TeknoSounds 06-24-2011 08:39 AM

not everyone has or can afford cPanel...?

Crotan 06-24-2011 01:45 PM

Quote:

Originally Posted by fxwoody (Post 2212072)
Why don't u guys simply use cPanel to make your own error page???

Just a remark ;)

Well I don't think that's the point of this mod. Its not for custom error pages where you tell someone their a ++++, its for vbulletin template error pages that match the look and feel of your site.

I guess I should also ask if the two errors in that will show on online.php were ever fixed?

I get the two Parse error: syntax error, unexpected T_CASE if I enable this mod, so I'm assuming something changed recently or the update never happened for the mod

danswano 07-03-2011 04:23 PM

How to give the error page a title in the browser tab instead of the actual link ?

sweetpotato 07-03-2011 05:09 PM

How do I find the .htaccess file on my server?
Thanks, I'm a novice

Krisstoffer 07-03-2011 11:00 PM

mod works fine here with nginx, only change needed is of course the instructions for apache won't work for nginx but they are simple enough:
Code:

error_page    400 /forum_400.php;
error_page    401 /forum_401.php;
error_page    403 /forum_403.php;
error_page    404 /forum_404.php;
error_page    500 /forum_500.php;

You could also go along the lines of:
Code:

error_page    500 501 502 503 504 /forum_500.php;

archet1337 07-23-2011 04:44 AM

This mod looks really promising, but I cannot seem to get it to work on my 4.1.4 board.

If I try to point the browser to a page that does not exist it only comes up with a blank page saying "Page not found."

Have tried Chrome, FireFox 4, Opera and IE9. All display the same message.

I'm using vbSEO if that matters.

Any help would be much appreciated :)

archet1337 08-05-2011 11:12 PM

I have done some testing and found that invalid image urls do work with the 404 redirect, but not page urls.

Have also had my host look into this and see if it might be a server-side problem, but they said it probably was the redirect code that was the problem.

Does anyone know how I can fix this so that it redirects all urls, not only images?

Code of the 404 custom page:

Code:

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT', 'forum_404');
define('CSRF_PROTECTION', true); 
// change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('http_error_404',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$navbar = render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater = vB_Template::create('http_error_404');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());

?>


TheSupportForum 01-05-2012 05:49 AM

over the next week weeks i'll be looking into releasing a new PRO version

BrightStar 02-21-2012 10:12 AM

Has there been an updated release to this mod as I get parse errors etc when viewing who is online.

Thanks for the mod anyway, it's great work :)


All times are GMT. The time now is 05:03 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.01742 seconds
  • Memory Usage 1,823KB
  • 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
  • (11)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete