vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Custom HTTP Error Documents (https://vborg.vbsupport.ru/showthread.php?t=41651)

Neo 07-30-2002 12:03 AM

Marry me JJR512 ;)

FWC 07-30-2002 05:50 AM

Quote:

Originally posted by JJR512
Takara: I'm not quite sure I understand what you're saying. Are you saying in the .htaccess file, on the ErrorDocument xxx lines, I can make the path to error.php be relative, not full? Just make it like ErrorDocument 400 forums/error.php?error=400?
Actually, the paths should be relative. You are not supposed to use full url's in error document redirections in .htaccess. It will fill the Apache error log up with error messages. They should look like:

ErrorDocument 400 /forums/error.php?error=400

JJR512 07-30-2002 05:58 AM

Tested, yep, it works like that. :)

LouChipher 07-30-2002 09:10 AM

Quote:

Originally posted by JJR512
LouChipher: I can't release a German version myself, since I don't speak it well enough to translate it. But it should be easy, since all the language is in the templates. If anyone else wants to do it, by all means, feel free.

I know, but somebody should do this... ;)

Chris M 07-30-2002 09:39 AM

Quote:

Originally posted by Neo
Marry me JJR512 ;)
The movie : "Indecent Proposal" comes to mind;):p

Satan

DemiNeo0101 07-30-2002 03:09 PM

ok here is an interesting bad bug i foun thats gona keep me from useing this great hack. in the online users for 90% of my users it shows: Unknown Location: /forums/error.php?error=404 (in included a screen shot) even for me even know im viewing online.php. It does this same thing on you forums to JJR512 except it seems you modifyed your online.php to make it look cleaner.

might wanna get this fixed b/c i use my online.php alot.

Floris 07-30-2002 04:18 PM

This is NOT a bug.

Every different file that is not set in the source code of vBulletin, will display as unknown location. You have to edit it.

JJR512 07-30-2002 07:29 PM

To make it look nicer in Who's Online:

Open online.php

Find:
Code:

    case 'gallery':
      $userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
      break;

Under that, add:
Code:

// HTTP Errors
    case 'httperror':
      $userinfo[where] = "Experiencing an HTTP Error";
      break;
// End HTTP Errors

Find:
Code:

  case 'gallery.php':
    $userinfo[activity] = 'gallery';
    break;

Under that, add:
Code:

// HTTP Errors
  case 'error.php':
    $userinfo[activity] = "httperror";
    break;
// End HTTP Errors

That's it. :)

DemiNeo0101 07-30-2002 08:43 PM

why do all thoughs errors go away when i take the error.php out then? And for me it shows the error and im looking at the online.php

JJR512 07-31-2002 01:24 AM

I'm sorry...I'm not quite certain I understand the problem here. :confused:


All times are GMT. The time now is 06:17 AM.

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.01146 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (3)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