Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Filter Threads By Thread Prefix - MyBB 1.6 Only
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #21
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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?

My Blog
11-20-2010 10:13 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #22
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 11-20-2010 10:52 AM by leefish.)
11-20-2010 10:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #23
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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.

11-20-2010 11:20 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #24
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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).


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 11-20-2010 11:28 AM by leefish.)
11-20-2010 11:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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.

My Blog
11-20-2010 01:23 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #26
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
Ok, I will have a go at that. Thanks for all the help so far Smile


[Image: leelink.gif]
MYBB1.6 & XThreads
11-21-2010 01:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #27
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
You can try this plugin.


Attached File(s)
.7z  mnxtstp.7z (Size: 2.25 KB / Downloads: 488)

11-21-2010 05:36 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #28
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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


[Image: leelink.gif]
MYBB1.6 & XThreads
11-21-2010 06:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
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


(This post was last modified: 11-21-2010 07:07 AM by RateU.)
11-21-2010 07:01 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #30
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
(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....


[Image: leelink.gif]
MYBB1.6 & XThreads
11-21-2010 07:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: