MyBB Hacks

Full Version: Filtering Thread By Thread Author
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
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?
For example?
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.
Something like this?

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

Yay it worked - thank you RateU - now I can have a pretty tabbed layout on my wiki forum Smile
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
Pages: 1 2 3 4
Reference URL's