Style for sub forum listing [message #35594] |
Wed, 24 January 2007 13:57 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Currently, it seems that the forum uses the same template for main level and sub level forums, but it calculates the left-padding with some formula.
What I want, is a different style IF it is a subforum - I am guessing I need to add some IF in the index.tmpl -> index_category_allow_collapse_Y subtemplate.
Basically, what I am trying to do is that this line:
<td colspan="6" class="CatDesc" style="padding-left: {FUNC: ($i[0] ? $i[0] * 20 : '0')}px;"> should have an IF statement in it, something like this:
<td colspan="6" {IF: BLAH}class="CatDesc"{ELSE]class="CatDesc_SUB"{ENDIF} style="padding-left: {FUNC: ($i[0] ? $i[0] * 20 : '0')}px;">
So, what I want to know is, what do I write in the {IF: } statement, so that it checks if it is a subcategory or not? I am guessing it's some variable (i?) that has to equal some number (1?)
Or if it is greater than 0?
I don't know, please Sir Ilya, help me, I am lost without you!
Ginnunga Gaming
|
|
|
|