Jibba Jabbas
06-01-2008, 10:03 AM
Right, i have a football forum and i have forums of different leagues (English league, Spanish league ect) and i have post icons of teams logos in the leagues, as you can imagine with around 20 odd teams in each league, doing 20 post icons for each league... i have a lot of post icons and it looks a bit messy. So i thought i'd attempt to neaten it up.
I viewed source to find the HTML i need for the radio buttons because in the post icon templates it was just one variable holding everything.. so i replaced the variable with it's HTML equivilent if that makes sense.
I have them all in pure HTML and it all works like normal, now what i need to do is add if statements in, for example around the english club icons i need to put something like "if forum id = 4" and then show those icons, just unsure on what the if statement would be?
I tried using "<if condition="in_array($forumid, array(4))">" but it didn't work.... how do i go about doing this?
I'm doing this in the Post Icons template if that helps, would be better if an array could be used but not 100% nessacery.
Thanks!
I viewed source to find the HTML i need for the radio buttons because in the post icon templates it was just one variable holding everything.. so i replaced the variable with it's HTML equivilent if that makes sense.
I have them all in pure HTML and it all works like normal, now what i need to do is add if statements in, for example around the english club icons i need to put something like "if forum id = 4" and then show those icons, just unsure on what the if statement would be?
I tried using "<if condition="in_array($forumid, array(4))">" but it didn't work.... how do i go about doing this?
I'm doing this in the Post Icons template if that helps, would be better if an array could be used but not 100% nessacery.
Thanks!