Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
404 Not Found turns into vBulletin search! Details »»
404 Not Found turns into vBulletin search!
Version: 1.00, by Beorn Beorn is offline
Developer Last Online: Feb 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-21-2002 Last Update: Never Installs: 25
 
No support by the author.

Well, I can't say that this is the most advanced, or most original thing I've written, but I figure it'll be a good hack to post first.

Say a user goes to your forum, and is looking for something specific and quick. Perhaps your forum is a Tolkien based forum...and the user was looking for information on Gandalf, the user could go to http://www.yourforum.com/gandalf, and a search would be generated. Basically what this hack does is it uses GET data as POST data in what would be submitted by search.php.

Features:
  • Incorporates permissions to match your forums permissions.
  • Gives the most common bots and spiders a 404 error.
  • Small, and disgustingly easy installation
  • Explicitly clear instructions for configuration (comes preconfigured with vBulletin defaults)

The attached zip by default only works on Apache's httpd or other servers that support .htaccess and ErrorDocument directive. Can be configured for IIS, but extra work on your part (and probably your host's) part.

So far, it has been tested and works on 2.2.8 and 2.2.9, but it should work on 2.2.*.

Ahh, yes, I said it wasn't original. I got the idea from php.net's neat little idea where you can go to http://www.php.net/something and it will search for something.

To Install:
  1. Upload 404.php to your forum root directory.
  2. If you have a .htaccess file in place already, copy the line from the supplied file into your file. If you *do not* have a .htaccess file in place already, add the file.

Lets see, I believe that's all...nope

Oh, yes, one last...yes, finally last...thing, please, please click Install if/when you install this hack.

That's all folks!

EDIT: VERSION 1.0

Show Your Support

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

Comments
  #12  
Old 12-30-2002, 07:00 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this seem pretty cool... what seems handy is someone can just type anything in the url field like if they are performing a regular search, saves you a step from having to find the search link/button.
Reply With Quote
  #13  
Old 01-28-2003, 11:20 AM
Minots's Avatar
Minots Minots is offline
 
Join Date: Jan 2002
Location: Germany
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Beorn
Cool Job! thx
*installed & working*
Reply With Quote
  #14  
Old 02-04-2003, 09:31 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Personally I love the idea. I already do something similar with my FAQ...

http://www.overgrow.com/faq/clone
http://www.overgrow.com/faq/hydroponics

I just don't think too many people use it
Reply With Quote
  #15  
Old 02-04-2003, 07:03 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, just like php.net works. Thanks
Reply With Quote
  #16  
Old 03-22-2003, 01:50 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On my board, it cuts off the first letter of the search term. If I put in http://www.eaforums.com/forums/frog, it searches for rog.

I have not modified your code any.

Amy
Reply With Quote
  #17  
Old 03-22-2003, 09:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack.

I have 2 questions...

1- Does anybody have a good list of robots to include in the 404.php file

2- I have a search engine indexer installed. what will this do to spiders that are excluded from that?
Reply With Quote
  #18  
Old 03-23-2003, 05:37 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get this to work. I get a page cannot be displayed error. Any ideas what I am doing wrong?
Reply With Quote
  #19  
Old 04-21-2003, 12:44 AM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello all. I'm really sorry that I haven't said a single thing on this thread in so long, but in the past two months, my life has been hell. Sitting down at a computer for more than 10 minutes has been unheard of. I will shortly (2 or 3 days) be releasing version 1.0, with a few things fixed. Amykhar's problem I've encountered, and I realized what's wrong, but I haven't looked into Boofo's problem.

Now, for some reason IE will not follow 404 redirects for my domain. It will for a different domain on the same host. Opera will. Who knows....

Mike B

EDIT: Should the config be in the file, or via ACP? Putting it in the ACP involves actually integrating the hack, while in the file doesn't. I personally prefer hacks to lay on top of, not be part of a base system, so I would go with in the file. What's everyone elses' opinion?

Yet again,
Mike B
Reply With Quote
  #20  
Old 04-29-2003, 07:39 PM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

V 1.0 is out

Fixed AmyKhar's problem, can't figure out what Boofo's is...
Reply With Quote
  #21  
Old 04-29-2003, 08:05 PM
GaleForce GaleForce is offline
 
Join Date: Sep 2002
Location: New York
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a demo of this anywhere? I would love to see it in action
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 05:28 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.09948 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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