Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2010, 01:55 AM
wierdo124 wierdo124 is offline
 
Join Date: Mar 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 404 Page

Hey guys.

Trying to create a custom 404 page. I was using a mod called 404 Area, but i came to the conclusion it sucked, so i'm making my own.

Problem is, i have a 404.php, i have an .htaccess that points to it, but still no dice

What's the trick with vB? I'm using vbulletin 4.
Reply With Quote
  #2  
Old 06-12-2010, 02:31 AM
Rafa-el's Avatar
Rafa-el Rafa-el is offline
 
Join Date: Feb 2010
Location: Nicaragua
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are you trying to do? I think that you only have to add this line in the .htaccess file

ErrorDocument 404 /myerrorpage.php

And if you're planning to use that page integrated with vB4 that's other history
Reply With Quote
  #3  
Old 06-12-2010, 02:37 AM
wierdo124 wierdo124 is offline
 
Join Date: Mar 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rafa-el View Post
What are you trying to do? I think that you only have to add this line in the .htaccess file

ErrorDocument 404 /myerrorpage.php

And if you're planning to use that page integrated with vB4 that's other history
I have that. And what do you mean..? there's nothing integrated with vb4, on Chrome i just get a Chrome error.
Reply With Quote
  #4  
Old 06-12-2010, 01:29 PM
Rafa-el's Avatar
Rafa-el Rafa-el is offline
 
Join Date: Feb 2010
Location: Nicaragua
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wierdo124 View Post
I have that. And what do you mean..? there's nothing integrated with vb4, on Chrome i just get a Chrome error.
so what's the problem???
Reply With Quote
  #5  
Old 06-12-2010, 07:45 PM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is our 404

http://the-sps.org/404.shtml
Reply With Quote
  #6  
Old 06-12-2010, 07:54 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check mine out

http://forum.vbdiscussions.com/wierd...hingiwantahaha

It works
Reply With Quote
  #7  
Old 06-13-2010, 10:26 AM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ours is better, Maddie McCann trumps your software babble
Reply With Quote
  #8  
Old 06-13-2010, 06:11 PM
wierdo124 wierdo124 is offline
 
Join Date: Mar 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rafa-el View Post
so what's the problem???
That i want to point to a specific custom 404 page..

How did you guys do that?
Reply With Quote
  #9  
Old 06-13-2010, 06:43 PM
pant pant is offline
 
Join Date: Mar 2010
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two files in the public folder.

one called 404.stml
one called 404image.jpg

The contents of the .shtml is

Rename the 404 with a .shtml extention and if you want also an image that you name the same as the jpg above and upload them to your public folder. You can then go to yourfoum.com/404.shtml and see if it works. If that works great, all you need to do then is play about with the shtml file to get what you want
Attached Files
File Type: txt 404.txt (26.0 KB, 8 views)
Reply With Quote
  #10  
Old 06-14-2010, 07:56 PM
wierdo124 wierdo124 is offline
 
Join Date: Mar 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But i have a 404 page setup, i can view it no problem, but an error doesn't point to the page.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04492 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete