vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Custom error-handler based on vBulletin templates (https://vborg.vbsupport.ru/showthread.php?t=65013)

Boofo 05-11-2004 08:47 PM

Quote:

Originally Posted by Dankinit
Sounds like it's looking in the wrong place for the css file. I think i had to hack my board to give it an absolute path for the css file...can't remember though, it was awhile ago. ;)

Where would I have to give the path for that at? Do you remember? ;)

What's wierd is that my home page doesn't have a problem with it.

GamerJunk.net 05-12-2004 03:59 AM

Good hack, but my host already lets me make my own error pages so I could easily do this without the hack.

Great job though!

MrNase 05-12-2004 04:04 AM

I don't know if it validates but placing

Code:

        <base href="http://www.sportboard.de" />
above </header> makes all links have an absolut path :)

test.html goes to http://www.sportboard.de/test.html and even a relative link to a stylesheet should change.

Pure magic ;)

colicab-d 05-12-2004 04:11 AM

oooh now this is handy :) thnx very much :)

AlexanderT 05-12-2004 05:16 AM

Ok, I updated the hack with improved instruction. Please download again.

@Boofo: Error.php is now copied to your forums path; please re-download the hack. I assume you store CSS stylesheets as files, this is why it didn't work correctly for you.

@Preech/FleaBag: Check the new instruction. Perhaps you need to ask your webhost for assistance.

@Dankinit: Ok, I moved the custom error handling specific to my site to /example/. I included it first place to help people further customizing their error responses.

Greets
Alex

Phalynx 05-12-2004 06:50 AM

*install*

Boofo 05-12-2004 08:48 AM

Quote:

Originally Posted by AlexanderT
Ok, I updated the hack with improved instruction. Please download again.

@Boofo: Error.php is now copied to your forums path; please re-download the hack. I assume you store CSS stylesheets as files, this is why it didn't work correctly for you.

Greets
Alex

Didn't chnage anything. I still get the same thing on the home page. If I select NO for stylesheets as files, it works fine. But I like to have them as files. :(

AlexanderT 05-12-2004 09:44 AM

Boofo did you read the new instruction? Earlier you said yourself that "if the error.php file is accessed from my forums directory, it looks like it is supposed to" ?!

Edit: Ahh I think i understand your problem now. I must think again if it is at all possible to support external style sheets like in your case then. Perhaps if you copy the style sheets to your root path, but that would be a pain. Lemme think about it.

Edit2: Could you add <base href="http://www.yoursite.com/yourforum/" /> to the <head> section of the ERROR_SHELL template and see if it does any difference?

Greets

Boofo 05-12-2004 10:15 AM

Quote:

Originally Posted by AlexanderT
Edit2: Could you add <base href="http://www.yoursite.com/yourforum/"> to the <head> section of the ERROR_SHELL template and see if it does any difference?

Greets

That fixed it! Thank you, sir. ;)

Do I need to put a closing </base> anywhere with that?

AlexanderT 05-12-2004 10:48 AM

Quote:

Originally Posted by Boofo
That fixed it! Thank you, sir. ;)
Do I need to put a closing </base> anywhere with that?

Cool. I have updated the instruction accordingly. <base> is an empty tag, or a standalone tag, that doesn't use a </base> endtag. The /> at the end is sufficient to make the code xhtml 1.0-valid.


All times are GMT. The time now is 08:21 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.01746 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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