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
You're probably better off using post icons for that.
Trying to change the prefix to an image means you have to change a number of places.

EDIT: I see icons are hard coded, so you can't simply put it in through a template edit.  How annoying.  Well means you'll probably need to use some placeholder or similar and use conditionals to replace it...
The same information for Filtering Thread by Thread Prefix (MyBB 1.6 Only) and Filtering Thread by Thread Icons. We don't need to "activate" it again in edit forum setting. The filter systems always enable. We only need to use the URL.

Additional Info:

We can set thread prefix and thread icon as default sorting.
Set it in Default Sort By: setting in Edit Forum settings page.
Set the ASC or DESC in Default Sort Order: setting.

We can set thread prefix and thread icon as default filter.
Set it in Default Thread Filter textarea in XThreads settings in Edit Forum settings page.
The format should be like this:
For Thread Prefix:
Field: __xt_prefix
Value: Thread Prefix ID here.

For Post Icons:
Field: __xt_icon
Value: Post icon ID here.
usefull Thread, Thanks for all these shared tips

Linked Prefix in "forumdisplay_thread" template should be a default feature in 1.6


EDIT:


{$forumurl_q} is generating some strange URLs(from a sub-forum for example, not the main forum correct link) with Mybb Google Seo.

I´m using in forumdisplay_thread:

PHP Code:
<a href="forumdisplay.php?fid={$thread['fid']}?filterxt_prefix={$thread['prefix']}">{$thread['threadprefix']}</a>



EDIT2:


Nevermind, my XThreads version was outdated. Upgraded to 1.42 and it´s working smootly Smile
can i filtering by 2 fid?

for e.g : filter prefix A on fid=11 and fid=12

thanks all
As far as I know, we can't do that.
thanks rateu
i think i will make same name prefix but different filter Biggrin
Would this help me with a computers forum - so that users could sort out threads by the type of computer related threads they wanted (ie. Internet and Networking for instance)?

The articles won't work for that type of setup as they aren't articles, but various threads for people to discuss computers in.

Thanks for the help!
(07-29-2012 04:02 PM)WhiteEagle Wrote: [ -> ]Would this help me with a computers forum - so that users could sort out threads by the type of computer related threads they wanted (ie. Internet and Networking for instance)?
http://www.ask8ball.net/
(07-29-2012 05:54 PM)ZiNgA BuRgA Wrote: [ -> ]
(07-29-2012 04:02 PM)WhiteEagle Wrote: [ -> ]Would this help me with a computers forum - so that users could sort out threads by the type of computer related threads they wanted (ie. Internet and Networking for instance)?
http://www.ask8ball.net/

Like that's any help!Tongue
It is indeed very helpful.
Pages: 1 2 3 4 5 6
Reference URL's