Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Filtering Thread By Thread Author
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #31
RE: Filtering Thread By Thread Author
Very cool - I have been playing about with this trying to get a conditional to work that says if thread posted by user x then instead of something display something else. I can't get it to work. Any tips?


[Image: leelink.gif]
MYBB1.6 & XThreads
11-12-2010 11:25 PM
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: #32
RE: Filtering Thread By Thread Author
For example?

11-13-2010 04:53 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #33
RE: Filtering Thread By Thread Author
well, I have a forum where some of the posts are coming from an automated bot - I cannot get the bot to add the required picture for the thread field - so it would be easier to have a conditional in the thread display that says IF this post is from this user id (the id of the bot) then add a different picture (hardcoded)

The thing is, I use this field in a lot of other areas of the board, so I don't really want to change it in the custom thread field - I need to do it in the template.


[Image: leelink.gif]
MYBB1.6 & XThreads
11-13-2010 05:00 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: #34
RE: Filtering Thread By Thread Author
Something like this?

Code:
<if $thread['uid'] == x then>
Alternative image
<else>
Custom thread fields code
</if>


11-13-2010 05:21 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #35
RE: Filtering Thread By Thread Author
Yay it worked - thank you RateU - now I can have a pretty tabbed layout on my wiki forum Smile


[Image: leelink.gif]
MYBB1.6 & XThreads
11-13-2010 06:52 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: #36
RE: Filtering Thread By Thread Author
Just as information that now we don't need to set anything to filter threads by thread author. We only need to use the URL. The filtering system always enable. So, we can filter threads by thread author in every forums without needed to edit the forum settings Smile

02-05-2011 12:25 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: