The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
||||
|
||||
![]()
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> 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}" /> 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> 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> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|