Version: 1.00, by Velocd
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 12-20-2002
Last Update: Never
Installs: 59
No support by the author.
vB3 Similar Threads =Version 2=
by Velocd
This hack, as well all my other vB2 hacks, I no longer provide support for (being I run vB3 and it's too much hassel to debug vB2). When vB3 Release Candidate comes out, by request I might convert some of my hacks.
Update - Version 2.1
View this post for complete information.
Description:
I recoded the old vB3 Similar Threads hack earlier today, realizing a much better and enhanced method of making it work.
Also, I made a new thread for this hack mainly so it would be better known, since the old one had many unsolved issues.
Improvements:
It no longer compares threads via a similarity or priority level, but rather using a MySQL string-comparison function. I experienced no slow downs on any pages, and many of my pages seem to be generating .20 faster (from the old version).
The comparison between threads is even more accurate and efficient, and best of all requires no toggling of a priority setting like the previous version. The threads are now searched via the one and only query, making things faster.
The hack has been tested on 2.2.6 and 2.2.9, and also does not require the use of PHP function trim(), so older versions of PHP should deal no trouble.
The overall appearance of the hack has been enhanced to look more vB3 as well
The MySQL function MATCH..AGAINST requires MySQL version 3.23.23 or later, else the hack will not operate.
Screenshots:
Refer to the .zip, they are located inside.
Upgrading?
If you are upgrading from the old version, just replace the codechunk.txt file in the location of the old chunk, as well replacing the templates.
---------------
Remember, if you use this hack on your forum, please click the install button! ^__^
side note: once installed, the similar-thread box will not show until you start replying to threads or create new ones. I predict this has something to do with the altering of the field title to FULLTEXT
side note 2: if for some reason you are getting an error about FULLTEXT not being functionable on your thread table, you are running a non-MyISAM table type, and thus must be converted. Run this query to do so:
PHP Code:
ALTER TABLE `thread` TYPE = MYISAM
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by TECK Hmm, it looks like your table is not set as MyISAM? Only the MyISAM table type supports FULLTEXT indexes...
Are you sure about the MySQL ver?
I was at first pondering if there was a way to combine the forum permissions in forum jump function with that of this hack, but then after reading your post Teck it dawned on me that I never do use the forum jump..and it is quite useless.. (another 2 queries saved.. ^_^)
If you wanna solve your problem still Xianx, place the code in codechunk.txt under makeforumjump(), and that should do it.
Just unset $iforumcache and $ipermcache, that should do it... if you really want to have both sets of queries... But I find it useless, IMO. Just kill the forumJump.