MyBB Community Forums

Full Version: How to have different columns in different categories?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to have different columns for different categories' thread list pages.

For example, in my first category I don't have a ratings column. But in the second category, I want to have a ratings column.

I don't know how to do this.

I thought it was as simple as having a conditional if statement like

<if in_array($forum['fid'], array(5,6,7,8)) then>

But this doesn't work. I don't seem like the thread list pages uses those forum ids even though I have categories with fid=5 and fid=7. I am already using if statement elsewhere on my page, so there isn't anything wrong with my if-conditional plugin. I just don't know what variable to manipulate to add and get rid of columns for specific categories.