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
  #2  
Old 12-22-2002, 03:01 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting idea Beorn, although I can't say it's really needed by me, but I'll defiantly consider it for future installation.
Reply With Quote
  #3  
Old 12-22-2002, 03:06 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots?

Does this perform a search through the vB forum search, or a websearch through some other site.

*Didn't read full post*
Reply With Quote
  #4  
Old 12-22-2002, 03:11 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DrkFusion
Screenshots?

Does this perform a search through the vB forum search, or a websearch through some other site.

*Didn't read full post*
Quote:
Basically what this hack does is it uses GET data as POST data in what would be submitted by search.php.
vB forum search

Nice hack, I might consider it
Reply With Quote
  #5  
Old 12-22-2002, 03:16 AM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, I will check it out
Reply With Quote
  #6  
Old 12-22-2002, 04:00 AM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DrkFusion
Screenshots?

Does this perform a search through the vB forum search, or a websearch through some other site.

*Didn't read full post*
There really are no screenshots. Basically if you went to yourforum.com/searchforthis, it would be the same as yourforum.com/search.php, and typed in 'searchforthis' and hitting enter.

Quote:
Great, I will check it out
Thanks
Quote:
Interesting idea Beorn, although I can't say it's really needed by me, but I'll defiantly consider it for future installation.
*tries to convince you that you really do need it


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

Thanks all,
Mike
Reply With Quote
  #7  
Old 12-22-2002, 06:22 AM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's just like on php.net. It's great just too bad I already use php 404 handler for pages.
Reply With Quote
  #8  
Old 12-22-2002, 01:43 PM
Herman Herman is offline
 
Join Date: Apr 2002
Location: I dunno... VB heava?
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is very nice, I will definately install this, thanks!

/me clickies install
Reply With Quote
  #9  
Old 12-22-2002, 07:43 PM
snyx's Avatar
snyx snyx is offline
 
Join Date: Oct 2001
Location: Vancouver (whistler.2010)
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could I see a working demo by any chance?
Reply With Quote
  #10  
Old 12-22-2002, 09:02 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this, and it works great, because search engine cached pages that do not work because maybe I moved it or something, but now the potential users will not leave
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 11:26 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.05412 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete