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)

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 02:26 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.00985 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)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
  • (9)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