I will try to look at it later, but for now - try removing the extra >
<%if forum_id >= 10>
may need to read
<%if forum_id = 10>
>= may be read as greater than or equal to.
<%if forum_id >= 10>
may need to read
<%if forum_id = 10>
>= may be read as greater than or equal to.