Version: 1.00, by Erwin
Developer Last Online: May 2013
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.
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?
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.
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.
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:
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!
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.
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.
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.