MyBB Hacks

Full Version: Filter Threads By Thread Prefix - MyBB 1.6 Only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
I did your first edit, that is, insert AND t.prefix='{$thread['prefix']}' into the query, and it seems to work here.

http://mybbhacks.zingaburga.com/testforu...http://mybbhacks.zingaburga.com/testforum/showthread
(only display 1 thread that has same prefix)

http://mybbhacks.zingaburga.com/testforu...http://mybbhacks.zingaburga.com/testforum/showthread
(displays the only other thread with no prefix)

Did you want something different?
I think you will find this really cheeky, but can you make a third thread without any matching words in the thread subject and see if that works?

What I was after was that the similar threads box would show the threads with the same prefix even if the subjects had no words in common.

See, this thread

http://mybbhacks.zingaburga.com/testforu...http://mybbhacks.zingaburga.com/testforum/showthread

Has the key words Relevancy Test - but does not show with the other two as it has NO prefix - yet it is relevant. If you made a thread called green cabbage and give it prefix1 I dont think it will show in the similar threads box. I put my relevancy up to 8 - still no sign
You can remove the similarity check for subject form the query. Or, you can try to lower the relevancy (I'm not quite sure about the performance). Or, I think you can use a plugin for that.
Yes, but then it won't work elsewhere on the rest of the board - I don't have prefixes everywhere- and I was not planning to - and this change is in the showthread.php. So yes, it would probably have to be a plugin to adapt the show similar threads query just for a certain forum. I will try and think of something else, as such a plugin will be too hard for me I think. The higher the number, the less related they are (I think).
Oh okay, I see what you mean.
I think similarity of 0 = no relevance (according to the description).  But it's probably not best to use the similarity thing for what you want.
A plugin probably shouldn't be too difficult, just make something which queries for the threads you want, and then just display them in a table.
Ok, I will have a go at that. Thanks for all the help so far Smile
You can try this plugin.
Wow RateU - thank you very much Smile

I downloaded and tested and its perfect. You can see it in action on LeeFish if you like

Link to Show by prefix
Glad it works. You can use template prefix for the templates if you want to use it in some forums and want a different layout for each forum (depends on the template prefix applied in each forum). You can use this kinds of URL for filtering prefix in the template, by replacing the {$mnxtstp_threadprefix} variable:

HTML Code
<a href="{$forumurl_q}filterxt_prefix={$mnxtstp['prefix']}">{$mnxtstp_threadprefix}</a>


Nice postbit tabs there Smile

(11-21-2010 07:01 AM)RateU Wrote: [ -> ]Nice postbit tabs there Smile

They are yours Smile

I added an extra twist by putting the posts in the category tabs and calling them feedback - but it seems to have broken the quick edit function so the layout is not really shareable as is Frown  I can still full edit but you know....
Pages: 1 2 3 4 5 6
Reference URL's