Quote:
Originally Posted by Disco_Stu
Here are my changes. I suggest you make a copy of your original code first as I am not responsible for any changes to your forums you make.
To display the sub forum icons:
Styles & Templates>Search In Templates>forumhome_subforums
Look for this line of code:
Code:
<a href="{vb:link forum, {vb:raw row}}">{vb:raw row.title}</a>{vb:raw row.comma}
and replace it (comment it out - I don't like to hard delete) with this code:
Code:
<br>
<div style="width:65px;">
<center><a href="{vb:link forum, {vb:raw row}}"><img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw row.forumiconimg}" /><br>{vb:raw row.title}</a></center>
</div>
That's all there is to it. Note that I left off the comma between subforums. If you want that then include "{vb:raw row.comma}" after "</a>". Also I included a <div> to control the width of the icon display and a <center> to center the title below the icon.
|
I'm afraid this doesn't work because of the plugin "VSa - Sub-Forum Manager" is replacing the sub-category codes.
VSA code being:
Code:
<li class="subforum">
<vb:if condition="$canpost">
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" 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}.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
</vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a>
</li>