I want to give most of my forums unique icons on the forumdisplay and index page. Currently I use the following code in forumhome_forumbit_level1_post and forumhome_forumbit_level2_post:
And I will need to add a lot more forums to that, which I each time have to add/modify in two templates too, but I think that there should be an easier way, for example if it would be possible to add a custom field to a forum (comparable to a user profile field) so I can let a condition check that, i.e.:
How difficult would it be to add field like this to the database and to make it possible to use it with conditions?
<if condition="$forumid == 2 or $forumid == 4 or $forumid == 9 or $forumid == 12 or $forumid == 16"><div class="smallfont"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img class="icon32" src="../images/icons/$forum[forumid]-32.gif" alt="$forum[title]" /></a></div></if>
<if condition="$forum['icon']"><div class="smallfont"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img class="icon32" src="../images/icons/$forum[forumid]-32.gif" alt="$forum[title]" /></a></div></if>
Comment