The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB3 Similar Threads Details »» | |||||||||||||||||||||||||
vB3 Similar Threads for 2.2.x
Clone version | 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. Install time: 6 minutes File edits: 1 (showthread.php) Template edits: 1 (showthread) New templates: 2 (showthread_similarthreads, showthread_similarthreadbits) What is it? Basically this hack will check for other similar thread titles within the forum of the thread you are viewing, then it will display the most similar threads, based on a similar-priority setting you choose, at the bottom of that thread. Why did I make it? This hack instantly drew my attention when I first saw it at the Jupiter vB3 forums. I figured it couldn't be that bad to make, and why wait when it's such a simple feature to integrate as a standalone hack? So, I opened up my TextPad and started coding. Personally, I HIGHLY doubt the method and coding I used in my hack is at all similar to the one at Jupiter vB3, but it seems to work just as fine. Even on my small forum the results on some threads look good, while for a large forum such as vB.org the results would look 3x as better. Features:
Bugs? Depending on the priority level you pick, some threads that you are "dead sure" to have a similar result might not show. You might have to toggle the priority level at first, to get it set just right. Other than this, it's fairly clean. See a demo at this thread, scroll to bottom: http://beta.vbulletin.com/vb3/showth...p?threadid=990 Screenshots? Demo's? See the next post for a screenshot. Want a demo? Visit the similar thread feature at the Jupiter vB3 forums ------------- Installation ------------- #1. In showthread.php, find: PHP Code:
PHP Code:
PHP Code:
#2. Create a new template called showthread_similarthreads, and place inside: Code:
<table cellpadding="{_tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{_tablebordercolor}" {_tableouterextra} width="{_contenttablewidth}" align="center"> <tr><td> <table cellpadding="4" cellspacing="{_tableinnerborderwidth}" border="0" {_tableinnerextra} width="100%"> <tr> <td bgcolor="{_tableheadbgcolor}" width="{_tablewidth}" colspan="4" align="center"> <normalfont color="{_tableheadtextcolor}"> <b>Similar Threads</b></normalfont></td> </tr> <tr align="center" bgcolor="{_categorybackcolor}" background="https://vborg.vbsupport.ru/images/catagory_backing.gif"> <td align="center" nowrap><span><smallfont><b>Thread</b></smallfont></span></td> <td nowrap><span><b><smallfont>Thread Starter</smallfont></b></span></td> <td nowrap><span><smallfont><b>Replies</b></smallfont></span></td> <td nowrap><span><smallfont><b>Last Post</b></smallfont></span></td> </tr> $similarthreadbits </table> </td></tr></table> <br> #3. Create a new template called showthread_similarthreadbits, and place inside: Code:
<tr align="center"> <td width="60%" align="left" bgcolor="{_firstaltcolor}"><normalfont> <a href="showthread.php?s=$session[sessionhash]&forumid=$thread[forumid]&threadid=$similar[threadid]" title="$similar[description]">$similar[title] </a></normalfont></td> <td width="20%" bgcolor="{_secondaltcolor}" nowrap="nowrap"><normalfont> <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$similar[postuserid]">$similar[postusername] </a></normalfont></td> <td bgcolor="{_firstaltcolor}"><normalfont>$similar[replycount]</normalfont></td> <td bgcolor="{_secondaltcolor}" width="20%"><normalfont>$similar[date]</normalfont> </td> </tr> #4. In the template showthread, find: Code:
<!-- thread options links --> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" align="center"><tr><td> Code:
$similarthreads ------------- End ------------- That's it! Pretty easy and quick to install, which is the nicest part about it. If you use this hack remember, please click install! Without it, you might have had to wait till vB3 Show Your Support
|
Comments |
#62
|
||||
|
||||
BINGO!
I forgot to add the $similarthreads above the <!-- Template Options ---> in the showthread template! Thanks! |
#63
|
|||
|
|||
Would you please explain what you did to make it work? I'm getting all kinds of errors.
|
#64
|
|||
|
|||
Hello,
I installed it like the instructions said. I noticed that the instructions weren't exactly correct at the part where it says "if ($noshutdownfunc)..." but I thought I might still work if others said it works for them. So I installed it, and I'm getting 2 errors you can see at http://forums.pdaperformance.com/sh...php?threadid=84 I'm don't know anything about PHP (though I do know C and C++) so I don't know what this means... Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of similar_text(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/pdacom/public_html/forums/showthread.php on line 281 Warning: Cannot add header information - headers already sent by (output started at /home/pdacom/public_html/forums/showthread.php:281) in /home/pdacom/public_html/forums/admin/functions.php on line 1573 (end of errors) PHP 4.2.3 and mySQL 3.23.53a is installed. This hack looks like something I really need, so I would like to get it up and running as soon as possible. Any help would be greatly appreciated. I'm assuming this hack doesn't work with PHP 4.2? Thank you, Parker |
#65
|
||||
|
||||
let's take a peek at your showthread.php (Send [PM] it to me) ...
|
#66
|
||||
|
||||
It shouldn't be an issue of your PHP or MySQL version, as I am running PHP 4.2.3 and mySQL 3.23.54 and it works fine.
I have heard of issues with this on vBulletin 2.2.9, which is what you are running, so there could be some conflicts there. I do not have 2.2.9 installed, except on my localhost, so I will install this hack there and get back to you a.s.a.p Thanks for contacting me via PM also ptm, as it's the best way for those needing help with one of my hacks to get my attention, in addition to replying to the thread. |
#67
|
|||
|
|||
Velocd,
Thank you for your time and help. Next time when I install another modification I will be sure to PM the author. - Parker |
#68
|
||||
|
||||
Velocd, don't bother setting it up on 2.2.9. I am running that version and this works fine for me. I installed it a few days ago.
|
#69
|
|||
|
|||
Well it's not working on mine.
Boofo, would you PM me your showthread.php so I can try it on my server to see if I still get errors? |
#70
|
||||
|
||||
Its working fine on my rather hacked 2.2.9 too with out a problem. Perhaps another hack you've got installed is conflicting with it?
|
#71
|
|||
|
|||
Nope, not a chance. Haven't installed 1 hack.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|