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)

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 ;)


All times are GMT. The time now is 02:25 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.01262 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)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
  • (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