Quote:
Originally Posted by bajrice
it works,... ty very much
but the thumbpic is after the subcat name,...
thanks
|
Sometimes, a little look at the code learns you so much.
Look at the red bit, and after that, the "catimage" gives it away.
Code:
<tr>
<td class="dl2info" valign="middle" align="{vb:stylevar left}" nowrap="nowrap">
<a href="downloads.php?{vb:raw session.sessionurl}do=cat&id={vb:raw sub.id}">{vb:raw sub.name}</a>
<vb:if condition="$sub['catimage'] != ''"> <a href="downloads.php?{vb:raw session.sessionurl}do=cat&id={vb:raw sub.id}"><img src="{vb:raw sub.catimage}" border="0" alt="{vb:raw sub.name}" title="{vb:raw sub.name}" /></a></vb:if>
</td>
<td class="dl2info" valign="middle" align="{vb:stylevar left}">
<span class="smallfont">{vb:raw sub.description}</span>
<vb:if condition="$subcats">
<div class="subcats">
<h4>{vb:rawphrase dl2_sub_cats}:</h4>
<ol class="commalist">
{vb:raw subcats}
</ol>
</div>
</vb:if>
</td>
<td class="dl2info" valign="middle" align="center" height="50"><span class="smallfont">{vb:raw sub.files}</span></td>
</tr>
Simply move it to where you want it to display, ie the example below would be after the image.
Code:
<tr>
<td class="dl2info" valign="middle" align="{vb:stylevar left}" nowrap="nowrap">
<vb:if condition="$sub['catimage'] != ''"><a href="downloads.php?{vb:raw session.sessionurl}do=cat&id={vb:raw sub.id}"><img src="{vb:raw sub.catimage}" border="0" alt="{vb:raw sub.name}" title="{vb:raw sub.name}" /></a></vb:if>
<a href="downloads.php?{vb:raw session.sessionurl}do=cat&id={vb:raw sub.id}">{vb:raw sub.name}</a>
</td>
<td class="dl2info" valign="middle" align="{vb:stylevar left}">
<span class="smallfont">{vb:raw sub.description}</span>
<vb:if condition="$subcats">
<div class="subcats">
<h4>{vb:rawphrase dl2_sub_cats}:</h4>
<ol class="commalist">
{vb:raw subcats}
</ol>
</div>
</vb:if>
</td>
<td class="dl2info" valign="middle" align="center" height="50"><span class="smallfont">{vb:raw sub.files}</span></td>
</tr>