The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
=V.2= vB3 Similar Threads Details »» | |||||||||||||||||||||||||
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:
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:
Show Your Support
|
Comments |
#82
|
||||
|
||||
I just thought of some suggestions that could be done, if you are up to hacking yourself, otherwise I might think of implementing this later. You could either do what Spark2 suggested here, or make it appear in a small pop-up window. To do this create a seperate PHP file known as similarthread.php, then inside contain all the data of codechunk.txt, but at the top of the file insuring that global.php is being required, error-reporting enabled, and surrounding the file by the php open and close tags. Then in the template that contains template2.txt, put the html, $header, $headerinlcude, body, and other basic tags in it. Then in the showthread.php, make a link appearing like this:
Code:
<a href="#" onClick="window.open('similarthread.php?s=&threadtitle=$thread[title]','javascript_1','width=x,height=y,scrollbars=1,resizable=no,menubar=no,toolbar=no'); return false;"><u>Click to view similar threads</u></a> Just configure the "width" and "height" attributes, and also whatever you want to use as a link caption (whether it be text or image). Also in similarthread.php, change the variable "$thread['title']" in the query WHERE clause to $threadtitle (not sure if arrays can be passed through URL's) This method at least it gives the users their option of viewing the similar threads, but doesn't decrease the output speed of the thread. |
#83
|
|||
|
|||
Not a bad thought. Just to let you know I wasn't trying to down this hack. You did a wonderful job. I was just making you all aware of the problem large forums like myself would have.
Thanks for the alternative Spark2 and Velocd! |
#84
|
||||
|
||||
VirtueTech, here are my stats:
[high]Page generated in 0.19562302 seconds (80.92% PHP - 19.08% MySQL) with 20 queries[/high] Is not the script. Feel free to check my board for time and performance. Cheers. |
#85
|
|||
|
|||
Quote:
|
#86
|
||||
|
||||
I'm getting this error:
Fatal error: [] operator not supported for strings in /home/virtual/site6/fst/var/www/html/community/forum/showthread.php on line 500 |
#87
|
||||
|
||||
Great hack, thanks!
I was experiencing some slowness as well, so I tried to come up with a way to limit this feature to only selected forums. Basically, at the start of the codechunk.txt, put this... PHP Code:
At the end of codechunk.txt put this: PHP Code:
PHP Code:
PHP Code:
Now, find this line: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Any help would be greatly appreciated! |
#88
|
||||
|
||||
Also, another question - is there a way to omit specific words from the matching process? Or perhaps a way to add keywords to threads and allow matching to those?
I'm just trying to find a way for the matching process to be more accurate on my forums, as currently it's not overly accurate. |
#89
|
||||
|
||||
Quote:
|
#90
|
|||
|
|||
Great hack.
I'm installing it right now. |
#91
|
||||
|
||||
Mmm... I am using version 1 of this hack, and it is working well on a reasonably sized forum (half a million posts). Should I upgrade? I am loathed to since everything is working fine.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|