MyBB Community Forums

Full Version: IF statement help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am trying to use

<if $forum['fid'] == 49 then>
</br>{$statusicon}<a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a>
<else>
<li><p>{$statusicon}<a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></li>
</if>

I'm trying to set the subforums in catagory 49 only to display in one column going vertical. This doesn't seem to work, anyone know why?
I can think of 3 reasons.
1. </p> end tag is missing in 2nd line of code.
2. You should not use <p></p> tags if you are already using <li> tags.
3. You are using this code in wrong template.

Try to play around with above 3 points, you will be successful.
basically </br> should be <br />
That will not working as well.

A <li> tag also requires a <ul> tag, a normal line not.
(2015-01-11, 02:26 AM).m. Wrote: [ -> ]basically </br> should be <br />

that's how I gave the codes to him.. the <p> and <li> also not there in my code... but looks like he modified the code and changed few things..... my guess is he is using it the wrong template... but I couldn't check further as I am on mobile...

@Ben_Conway Check your forums now... its fixed... it was not working because you gave me a wrong forum id.. Toungue