Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Filter Threads By Thread Prefix - MyBB 1.6 Only
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #51
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
Bear in mind that if you want to select more than one value for the prefix then the mybb prefix is not suited as only ONE prefix per thread.


[Image: leelink.gif]
MYBB1.6 & XThreads
07-30-2012 09:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Kiero Offline
Junior Member
**
Posts: 4
Joined: Dec 2012
Post: #52
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
How do I go about making a dropdown box for selecting the prefixes, in both the thread list and when making a new thread?

Ie:
[Image: U41el.jpg]

But so it shows all the prefixes

And also so it has a dropdown instead of a listbox in the new thread page (unlike this)

Thanks a lot for how much xThreads contributes to MyBB Smile
12-03-2012 12:19 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #53
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
No idea on the dropbox, but a select works well if you style it nicely >>

http://www.leefish.nl/mybb/forumdisplay.php?fid=22


[Image: leelink.gif]
MYBB1.6 & XThreads
12-03-2012 12:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Kiero Offline
Junior Member
**
Posts: 4
Joined: Dec 2012
Post: #54
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
Yeah, yours is good but I had difficulty getting the code to work.
Didn't seem to do anything with or without the submit button ;_;

But then I'm not sure if I should have been putting it in another template or just straight into the forumdisplay_threadlist
12-03-2012 12:30 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #55
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
(12-03-2012 12:19 PM)Kiero Wrote:  How do I go about making a dropdown box for selecting the prefixes, in both the thread list and when making a new thread?
Template editing for the first, and MyBB uses a dropdown for thread creation by default.

(12-03-2012 12:19 PM)Kiero Wrote:  But so it shows all the prefixes
For the thread listing, you have to manually specify all prefixes.

(12-03-2012 12:19 PM)Kiero Wrote:  And also so it has a dropdown instead of a listbox in the new thread page (unlike this)
?????

(12-03-2012 12:30 PM)Kiero Wrote:  But then I'm not sure if I should have been putting it in another template or just straight into the forumdisplay_threadlist
It doesn't matter.

My Blog
(This post was last modified: 12-03-2012 12:32 PM by ZiNgA BuRgA.)
12-03-2012 12:31 PM
Find all posts by this user Quote this message in a reply
Kiero Offline
Junior Member
**
Posts: 4
Joined: Dec 2012
Post: #56
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
Thanks for telling me it has to be done manually for each, just wasn't sure if there would be something simpler.
Well, I think I managed to get an easy drop down one just using this:

Code:
1
2
3
4
5
6
<select onchange='location=this.options[this.selectedIndex].value;' style='width:100px;'> 
<option>Prefix</option> 
<option value="./forumdisplay.php?fid={$fid}&filtertf_prefix=TV/Movie">TV/Movie</option>
<option value="prefix2link">prefix2</option>
<option value="prefix3link">prefix3</option>
</select>


I'll just add the others in. Thanks.

(12-03-2012 12:31 PM)ZiNgA BuRgA Wrote:  
(12-03-2012 12:19 PM)Kiero Wrote:  How do I go about making a dropdown box for selecting the prefixes, in both the thread list and when making a new thread?
Template editing for the first, and MyBB uses a dropdown for thread creation by default.

The only Input Field Types I have in xThreads are Textbox, Multiline textbox, Listbox, Option Buttons and Checkboxes
Sorry, woops. Linked the wrong pic
Mine looks like this right now for new threads:

[Image: A3Yzr.png]
(This post was last modified: 12-03-2012 12:55 PM by Kiero.)
12-03-2012 12:47 PM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #57
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
Maybe this post will help?

http://mybbhacks.zingaburga.com/showthread.php?tid=1418

I was looking for it, sorry for the late reply.


[Image: leelink.gif]
MYBB1.6 & XThreads
12-03-2012 02:58 PM
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: #58
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
(12-03-2012 12:47 PM)Kiero Wrote:  The only Input Field Types I have in xThreads are Textbox, Multiline textbox, Listbox, Option Buttons and Checkboxes
This thread is about using MyBB's thread prefixes, not XThreads custom fields.
A listbox is the same as a "dropdown box", just set the field height to 1.

My Blog
12-03-2012 04:30 PM
Find all posts by this user Quote this message in a reply
thanhthanh098 Offline
Junior Member
**
Posts: 1
Joined: Jun 2013
Post: #59
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
I want to filter prefix in just one forum (not the whole forum as you guide). how can i do that?.
thanks
06-11-2013 05:38 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #60
RE: Filter Threads By Thread Prefix - MyBB 1.6 Only
Just don't use the filter in every other forum?

My Blog
06-12-2013 10:53 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: