![]() |
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. ;) |
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! :) |
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. |
Quote:
|
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 |
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! :) |
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. |
Quote:
|
Great hack.
I'm installing it right now. |
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.
|
All times are GMT. The time now is 03:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|