5
I've done a backup, as i have tryed to do this before, but without any success..
I just can't figure out how to eliminate the subcategories in the main myalbum page.
Here's the myalbum_categories.html file
Quote:
<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<{foreach from=$subcategories item=cat key=count}>
<td valign="top">
<{if $cat.imgurl != ""}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$cat.imgurl}>" width="120" border="0" alt="" />
</a>
<{/if}>
</td>
<td valign="top" width="33%">
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>"><span style="font:bold 150%;"><{$cat.title}></span></a> <{$lang_total}><{$cat.photo_total_sum}> (<{$cat.photo_small_sum}>)
<br />
<{foreach from=$cat.subcategories item=subcat}>
<{if $subcat.number_of_subcat}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><{$subcat.title}><img src='<{$mod_url}>/images/subcat.gif' width='15' height='15' /></a>
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><{$subcat.title}></a> (<{$subcat.photo_small_sum}>)
<{/if}>
<{/foreach}>
</td>
<{if ($count+1) is div by 3}>
</tr><tr>
<{/if}>
<{/foreach}>
</tr>
</table>
Anyone ?