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 4.0.1 (https://vborg.vbsupport.ru/showthread.php?t=231843)

TheSupportForum 01-08-2010 07:22 AM

Quote:

Originally Posted by wIrEs (Post 1950148)
there is some bugs in the admin settings page view image uploaded, you also added the possibility to redirect the page after 5 seconds but you did not add a setting for it and are asking us to add this using .htaccess... Also i am sure that the setting "Enable error pages even while forums are closed" is useless because vbulletin wont allow any page to be access if the site is turned Off.

edit: since the plugin is only for vbulletin 4, obviously i am using vb4 :) ( minversion="4.0.0" )
edit: please see picture # 2, there's no text next to the home picture.

whats steps did you take to reproduce this error i have tried all combinations of settings all working

Old-Git 01-08-2010 09:19 AM

Quote:

Also i am sure that the setting "Enable error pages even while forums are closed" is useless because vbulletin wont allow any page to be access if the site is turned Off.
at the moment my site is locked to guest viewing while I finalise the design. If I try to access a non-existent page in the forum directory I get the login page first. Which is probably correct behaviour for this. However, if the error pages were stored at root, rather, than the Forum directory then they'd be available to every part of the web-site rather than just the VB stuff. Of-course this would only be off benefit for those who use VB only as an add-on to a bigger web-site.

TimberFloorAu 01-08-2010 05:44 PM

works fine for me.

We have forums in directory /forum and have added this to forum root and domain root.

Just checked error log, and all seems fine

wIrEs 01-08-2010 08:33 PM

Quote:

Originally Posted by simonhind (Post 1950188)
whats steps did you take to reproduce this error i have tried all combinations of settings all working

hmm, downloaded, edited errors text, edited templates, renamed templates, phrases, php files and username.

the error pages are working and are being displayed in VB4, the problem is in admin area and also in whois online, i tried adding code to functions_online.php but this only resulted in error to display the users profiles, when i removed "case...." from functions_online.php everything works and i can view users profile.

vbulletin 4 pl 1

TimberFloorAu 01-08-2010 11:28 PM

k looking at this, a bit more critically.

Arent the links within the 404 page supposed to be absolute, if so.. why isnt the css being parsed.

TheSupportForum 01-08-2010 11:58 PM

Quote:

Originally Posted by TimberFloorAu (Post 1950765)
k looking at this, a bit more critically.

Arent the links within the 404 page supposed to be absolute, if so.. why isnt the css being parsed.

i choose not to include it, but next release will be tested with this

Neo_obs 01-09-2010 02:17 AM

Thought I would help with the WOL part. You need to create two plugins

Hook Location: online_location_process
Code:

if ($filename == '/400_forum.php' || $filename == '400_forum.php')
{
    $userinfo['activity'] = '400error';
}
if ($filename == '/401_forum.php' || $filename == '401_forum.php')
{
    $userinfo['activity'] = '401error';
}
if ($filename == '/403_forum.php' || $filename == '403_forum.php')
{
    $userinfo['activity'] = '403error';
}
if ($filename == '/404_forum.php' || $filename == '404_forum.php')
{
    $userinfo['activity'] = '404error';
}
if ($filename == '/500_forum.php' || $filename == '500_forum.php')
{
    $userinfo['activity'] = '500error';
}

The second
Hook Location: online_location_unknown
Code:

if ($userinfo['activity'] == '400error')
{
    $userinfo['action'] = '400 Error Page';
    $handled = true;
}
if ($userinfo['activity'] == '401error')
{
    $userinfo['action'] = '401 Error Page';
    $handled = true;
}
if ($userinfo['activity'] == '403error')
{
    $userinfo['action'] = '403 Error Page';
    $handled = true;
}
if ($userinfo['activity'] == '404error')
{
    $userinfo['action'] = '404 Error Page';
    $handled = true;
}
if ($userinfo['activity'] == '500error')
{
    $userinfo['action'] = '500 Error Page';
    $handled = true;
}

That should do it.

Just did it on my forum and all is working. You may want to put "Viewing 400 Error Page" if that is what you want it to show.

Brew 02-18-2010 10:46 PM

This would be a great mod if there were a way to easily change the message and fix the Who's Online message as per Neo_obs above.

Do you plan to update this soon?

TheSupportForum 02-18-2010 10:57 PM

i plan to update most my mods by the end of the weekend

Brew 02-19-2010 01:06 PM

Thanks Simon. I'll be looking forward to it :)

I do have a problem with the formatting in the 404 page.

The header is per the theme but the text was black (I changed it to white). When I changed the text to white the browser title now has the html text in it too.

When you update this could you remove the table header there or maybe make it a horizontal rule? Or is this a CSS thing?

Thanks!


All times are GMT. The time now is 02:08 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.01175 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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