The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mysql 4 Search hack Details »» | |||||||||||||||||||||||||
MySQL 4 Search hack for Vbulletin 2.x.x - version 1.2 beta
Author: PineappleClock (pineappleclock@clockcrew.cc) aim: Janitor61 ------------------------------------- Overview The MySQL 4 search hack modifies the search functionality in Vbulletin to take advantage of the new SQL functions available in MySQL 4. Synopsis This hack allows MySQL to index the posts and threads in your BBS instead of requiring vbulletin to do it. This hack, when installed, will change the BBS in the following ways:
File Listing install.txt -- the installation howto simplesearch.txt -- a block of code that replaces a block of code in search.php searchtemplate.txt -- a vbulletin template used for drawing the search form. Requirements MySQL 4.0.1 or newer - required vbulletin 2.x.x - required (i've only tested it on 2.3.0 though) How to check your MySQL version: execute the following query: Code:
SELECT @@global.version Notes The installation instructions assumes that you have access to database management software, like phpMyAdmin. If you can't edit your database directly, I can make a php script that will modify your database if there's enough demand. The Vbulletin team aren't going to put in support for MySQL 4 until version 3.1 - so this hack should be obsolete by then. If you'd like to see the modified search engine, go here: http://www.clockcrew.cc/bbs/search.php I was originally going to distribute the whole modified search.php file, but after reading the rules, im only distributing the modified part. Please let me know if you spot any bugs, etc. I've tested this, but there still are probably bugs i need to work out. update [Apr 17]: added instructions on uninstalling good luck! Show Your Support
|
Comments |
#42
|
||||
|
||||
Installed, and it works great.
This is a revolutionary hack for vB. I am quite sure future versions will incorporate this with it. Search is faster, posting is slightly faster (since we don't have to add to the searchindex and word tables)... 250 members online at once with no problems so far (I shall wait for my peak times) ... As for the page and highlight errors - they don't apply to me since I don't use highlights as all my search result pages are parsed into a non-dynamic format like this: http://www.yourdomain.com/search/137498-2.html And it works great with this hack. Thanks for this one. |
#43
|
||||
|
||||
I've managed to make my Search Thread hack work with this, which is great.
Very simple. 1) Install my search hack here first before installing this hack: https://vborg.vbsupport.ru/showthrea...threadid=45142 If you've already installed my hack, that's fine. Go to next step. 2) Then, install this hack (after installing my hack first). 3) Then, find this block of code (which is from this hack) in search.php: PHP Code:
PHP Code:
Thanks, my Search Thread is much faster. I notice this new search is smarter and ignores common words too. |
#44
|
|||
|
|||
Erwin, I was just thinking about that, thanks for the fix!
|
#45
|
|||
|
|||
Quote:
Erin, I get a parse error on line 402 when I try doing this hack... line 402 just happens to be the following query: PHP Code:
|
#46
|
||||
|
||||
Oops! I made a mistake -
Change: PHP Code:
PHP Code:
|
#47
|
||||
|
||||
I've fixed my post as well.
|
#48
|
|||
|
|||
Darn... I still get a parse error on the same line...
/me continues pulling hair out |
#49
|
||||
|
||||
That's odd. Are you sure you removed the extra comma? Redo the instructions again from the beginning. Also, let's not hijack this support thread - post more questions in the Search Thread hack support thread.
|
#50
|
|||
|
|||
Erwin helped me get it working, thanks!
Now if we could all figure out how this phantom string is showing up for some of us in the MySQL 4 hack it would be peaches! |
#51
|
|||
|
|||
Quote:
after this line in the search.php Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|