2012-03-31, 08:09 PM
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.
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.