Sorry, forgot a trailing slash on the elseif.
Code:
<li class="subforum">
<vb:if condition="$forum[forumid] == xx">
<img class="inlineimg" src="pathtoximage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:elseif condition="$forum[forumid] == yy" />
<img class="inlineimg" src="pathtoyimage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:else />
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
</vb:if>
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a>
</li>
Also I should make myself clear.
You replace
xx and
pathtoximage for your
first subsection.
You replace
yy and
pathtoyimage for your
second subsection and etc.
If you need to change more, you just copy paste the else if statement code and add it after your last elseif code:
Code:
<vb:elseif condition="$forum[forumid] == zz" />
<img class="inlineimg" src="pathtozimage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
The end result should look like this:
Code:
<li class="subforum">
<vb:if condition="$forum[forumid] == xx">
<img class="inlineimg" src="pathtoximage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:elseif condition="$forum[forumid] == yy" />
<img class="inlineimg" src="pathtoyimage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:elseif condition="$forum[forumid] == zz" />
<img class="inlineimg" src="pathtozimage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:else />
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
</vb:if>
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a>
</li>
You wanted the images to be linkable as well, then use this code instead:
Code:
<li class="subforum">
<vb:if condition="$forum[forumid] == xx">
<a href="{vb:link forum, {vb:raw forum}}"><img class="inlineimg" src="pathtoximage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />{vb:raw forum.title}</a>
<vb:elseif condition="$forum[forumid] == yy" />
<a href="{vb:link forum, {vb:raw forum}}"><img class="inlineimg" src="pathtoyimage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />{vb:raw forum.title}</a>
<vb:elseif condition="$forum[forumid] == zz" />
<a href="{vb:link forum, {vb:raw forum}}"><img class="inlineimg" src="pathtozimage" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />{vb:raw forum.title}</a>
<vb:else />
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a>
</vb:if>
</li>