Quote:
Originally Posted by AndrewD
My impression, looking at the code, is that get_hotlinks() will just return a null string. If this is problematic, it could be fixed by modifing the vbindex_custom template, e.g. (not sue if my syntax is correct)
PHP Code:
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
<td colspan="2" class="tcat" style="text-align: center">
<a name="hotties" style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('vbindex_customblock$box')"><img id="collapseimg_vbindex_customblock$box" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_vbindex_customblock.gif" alt="" border="0" /></a>
<strong><a href="$vboptions[bburl]/local_links.php" title="Visit the Downloads section">Hottest Downloads</a></strong>
</td>
</tr>
<tbody id="collapseobj_vbindex_customblock$box" style="$collapseobj_vbindex_customblock">
<if condition="$hotlinks">$hotlinks<else />There are no downloads available to you</if>
</tbody>
</table>
</td>
</tr>
</table>
<br />
|
Looks good to me !

I'm happy to roll-up my hack into yours with this facility and be logged for support in the one place (if you are OK with that ?)