Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google WMT friendly 404 Search mod Details »»
Google WMT friendly 404 Search mod
Version: 1.00, by Adult SEO Adult SEO is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.7 Rating:
Released: 05-16-2007 Last Update: Never Installs: 12
Uses Plugins Template Edits
Additional Files  
No support by the author.

Hi there!

The folowing mod will enable you to setup a true 404 page while displaying the search page with a customizable message to your users.

Installation instructions for vBSEO users:
  1. Import the attached XML product
  2. Include the folowing tag in your search template called search_forums where you want to display the 404 message:
    Code:
    <!-- 404message -->
  3. Upload 404.php to your forum root
  4. Sign in to your vBSEO adminpanel and edit your 404 page settings with the folowing configuration:
    Attachment 64442
Installation instructions for non-vBSEO users:
  1. Import the attached XML product
  2. Include the folowing tag in your search template called search_forums where you want to display the 404 message:
    Code:
    <!-- 404message -->
  3. Upload 404.php to your forum root
  4. Edit your htaccess page and add the folowing code:
    Code:
    RewriteEngine On
    Code:
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ 404.php
Requirements: PHP Curl

The template to edit for the custom message on the searchpage is search_forums_404

A demo can be found on http://www.vbcash.com/blablabla.html

Have Fun!
Jan Jaap

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-07-2007, 04:46 AM
Icyeb Icyeb is offline
 
Join Date: May 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work, got it installed on 3.6.7pl1 without any major problem except the logged out problem. is there a way to redirect users to the homepage instead of showing the search page
Reply With Quote
  #13  
Old 06-20-2007, 02:39 PM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cookie isn't persistant...

If logged in member puts in bad url, delivers search page with 404 but also delivers page as though they aren't logged in.

As an aside, I edited .htaccess in domain root to:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /home/YOURINFO/public_html/YOURFORUMDIRECTORY/404.php
This also provides custom 404's domain wide. This is still parsing as a guest though too.

If the cookie issue can't be fixed, I'll have to uninstall... Hopefully there's a fix!
Reply With Quote
  #14  
Old 06-20-2007, 03:03 PM
tokenyank tokenyank is offline
 
Join Date: Jul 2005
Location: London
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooops!

Umm... A friendly pointer!

If you've just gutted your site and took 3 years of content down and made your forums the 'ONLY' content on your site... Putting a custom 404 into your search.php may not be a good idea when you have around 300 spiders all hitting it at the same time.

Server load spiked to 9 and brought down httpd.

A server reboot and hack uninstall later, all fine again! Looks like I'm stuck using normal ol' shtml 404's!
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 06:23 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.03911 seconds
  • Memory Usage 2,238KB
  • Queries Executed 19 (?)
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
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete