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
Search Thread Details »»
Search Thread
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 10-28-2002 Last Update: Never Installs: 82
 
No support by the author.

Search Thread - by Erwin Loh
-----------------------------

This hack will add a "Search This Thread" search box at the bottom of threads (similar to the "Search This Forum" search box at the bottom of Forum Display).

Should be useful for loooooooooooooong threads, especially for a forum like this one.


Demo
-------

This hack is installed here at vB.org - just use the Search This Thread box at the bottom right hand corner of this page.


Features
-----------

1. Only posts from the thread will be searched.
2. Uses that standard searchindex table.
3. Uses the same vB search algorithms.
4. This will add NO extra queries to your forum.
5. Uses the standard search and forum permissions set by you.


Installation
------------

1. Running 1 database query
2. Making 2 changes to showthread.php
3. Making 6 changes to search.php
4. Making 1 change to template "showthread"
5. Adding a new template "showthread_searchthread"

Enjoy!

Please click install if you want updates to this hack!

Dr. Erwin Loh

I've updated the installation text file to make things clearer, and made the search box visible to guests as well.

Show Your Support

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

Comments
  #92  
Old 02-09-2003, 07:57 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've replied. Basically, your search.php looks fine, but I reformatted that long query for you.

Make sure you've run the database query to add that extra column in the search table, that is specified in the text file.
Reply With Quote
  #93  
Old 03-09-2003, 05:36 PM
Craigr's Avatar
Craigr Craigr is offline
 
Join Date: May 2002
Location: Ayr, Scotland
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great for me.

Thanks Erwin.

Craig
Reply With Quote
  #94  
Old 03-23-2003, 01:00 AM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem with hack??? or problem with search?

When I search in this thread:

http://www.theforumz.com/forumz/show...hreadid=38156&

for "people" it says "Displaying Topics 1 to 2 of 2" yet it doesn't show any topics at all.

So you may think well his hack isn't working.

But when you go into that same thread and do a search for "max" it brings up 3 results.

I have had problems before with generic names that search wont allow. Could "people" be one of those? I talked to firefly about this a while and I guess there are certain words that it wont seach because your search index (or something like that) would get to big.

Could this be the case? I was just playing around with it and noticed this. Can somebody please help me troubleshoot this problem?

Thanks.
Reply With Quote
  #95  
Old 03-23-2003, 01:20 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I tried it, it gave me the try another term error message. I didn't get displaying 1 of 2 or anything like that. There are certain words in the badwords.php file that don't show up for the same reason Firefly said. Your search index would sky-rocket without that.

And also, 30 posts per page makes for a long page.
Reply With Quote
  #96  
Old 03-23-2003, 02:43 AM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:20 PM Boofo said this in Post #94
When I tried it, it gave me the try another term error message. I didn't get displaying 1 of 2 or anything like that. There are certain words in the badwords.php file that don't show up for the same reason Firefly said. Your search index would sky-rocket without that.

And also, 30 posts per page makes for a long page.

OK, so now I have a bigger problem. Why is it showing you that and telling me there is 1of 2 and not shoing anything?

30 posts is considered a long page? I'm about ready to bump it up to 45 or 50 just to please my users.

Here's another example of the problem.

in this thread: http://www.theforumz.com/forumz/show...threadid=46176

You do a search for "TheForumz" and it does say no matches found. Well you can clearly see that "TheForumz" appears in the first post. What gives? :ermm:
Reply With Quote
  #97  
Old 03-23-2003, 04:12 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack uses the normal searchindex and search functions. Any search error you get will be specific to your forum, and not from this hack.
Reply With Quote
  #98  
Old 03-23-2003, 10:39 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Erwin, remember how I had trouble with this hack before? Well I just installed it on a hacked 2.3.0 board (I actually still had the extra field in the search table from my previous install) and it worked fine, first try!
Reply With Quote
  #99  
Old 03-23-2003, 11:13 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 11:39 PM X-Fan said this in Post #97
Hey Erwin, remember how I had trouble with this hack before? Well I just installed it on a hacked 2.3.0 board (I actually still had the extra field in the search table from my previous install) and it worked fine, first try!
Great! It must have been another hack on your older board.
Reply With Quote
  #100  
Old 03-23-2003, 12:07 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Erwin, try this:

Enter a single number in your search thread box and you will get the error that tells you that you are below the 3 letter limit. Now enter a single alphabet character and you get the "try a different term" error. That seems to only happen with the bottom 3 rows of keys on a search.

By the way, that happens with vBulletin's search too.
Reply With Quote
  #101  
Old 03-23-2003, 09:04 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no idea what you mean. Like I said, this hack uses the same search function that the normal search uses, with the variable "search results as post" ticked. Whatever it is you got (and I tried and cannot duplicate it), if you get the same with the "search result as post" ticked on the normal search page, then it is a native vB issue.
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:54 PM.


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.09318 seconds
  • Memory Usage 2,310KB
  • 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
  • (2)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
  • (4)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