3
I'm not really familiar with template editing, I can mess with html a bit and luck my way around some things but this has me stumped: For a start, I'm not even sure which template file I need to be editing :P
Judging by the names it could be one of three for myalbum,
myalbum_categories.html
<table width="100%" border='0' cellspacing='5' cellpadding='0' align="center">
<tr>
<{foreach from=$subcategories item=cat key=count}>
<td valign="top" align="right">
<{if $cat.imgurl != ""}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$cat.imgurl}>" width="120" border="0" alt="" />
a>
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$cat.cid}>">
<img src="<{$mod_url}>/images/folder32.gif" width="32" height="32" border="0" alt="" />
a>
<{/if}>
td>
<td valign="top" align="left" width="100%">
<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}>"><img src="<{$mod_url}>/images/folder16.gif" width="16" height="16" alt="" /><{$subcat.title}><img src='<{$mod_url}>/images/subcat.gif' width='15' height='15' />a>
<{else}>
<a href="<{$mod_url}>/viewcat.php?cid=<{$subcat.cid}>"><img src="<{$mod_url}>/images/folder16.gif" width="16" height="16" alt="" /><br><{$subcat.title}>a> (<{$subcat.photo_small_sum}>)
<{/if}>
<{/foreach}>
td>
<{if ($count+1) is div by 1}>
tr><tr>
<{/if}>
<{/foreach}>
tr>
table>
myalbum_viewcat_list.html
<{strip}>
<table width="100%" cellspacing="0" class="outer">
<tr>
<td class="even">
<br />
<{include file="db:myalbum_header.html"}>
<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left'>
<span style="font-weight:bold;"><a href='index.php'><{$lang_album_main}>a> : <{$album_sub_title}>span> <{$lang_total}><{$photo_total_sum}>
td>
<td align='right'>
<{if $lang_add_photo}><a href="submit.php?cid=<{$category_id}>"><{$lang_add_photo}><img src="<{$mod_url}>/images/pictadd.gif" border="0" alt="<{$lang_add_photo}>" title="<{$lang_add_photo}>" />a><{/if}>
td>
tr>
table>
<{if count( $subcategories ) > 0 }>
<hr />
<{include file="db:myalbum_categories.html"}>
<{/if}>
td>
tr>
table>
<br />
<{if $photo_small_sum < 1 }>
<div align="center">
<{$lang_nomatch}>
div>
<{else}>
<table width="100%" cellspacing="0" class="outer">
<tr>
<td class="even" align="left">
<{if $photo_small_sum > 1 }>
<div align="center">
<{$lang_sortby}>
<{$lang_title}> (<a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=titleD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<{$lang_date}> (<a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=dateD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<{if $canrateview }>
<{$lang_rating}> (<a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<{/if}>
<{$lang_popularity}> (<a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<br />
<b><{$lang_cursortedby}>b>
<br />
<br />
<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left'>
<{$photonavinfo}>
td>
<td align='right'>
<{$photonav}>
td>
tr>
table>
div>
<hr />
<{/if}>
<br />
<table width='100%' cellspacing='0' cellpadding='10' border='0'>
<{foreach from=$photos item=photo}>
<{include file="db:myalbum_photo_in_list.html"}>
<{/foreach}>
table>
<{if $photo_small_sum > 1 }>
<hr />
<div align="center">
<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left'>
<{$photonavinfo}>
td>
<td align='right'>
<{$photonav}>
td>
tr>
table>
div>
<{/if}>
td>
tr>
table>
<{/if}>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center">
<br />
<{include file='db:system_notification_select.html'}>
<br />
<{include file="db:myalbum_footer.html"}>
td>
tr>
table>
<{/strip}>
myalbum_viewcat_table.html
<{strip}>
<table width="100%" cellspacing="0" class="outer">
<tr>
<td class="even">
<br />
<{include file="db:myalbum_header.html"}>
<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left'>
<span style="font-weight:bold;"><a href='index.php'><{$lang_album_main}>a> : <{$album_sub_title}>span> <{$lang_total}><{$photo_total_sum}>
td>
<td align='right'>
<{if $lang_add_photo}><a href="submit.php?cid=<{$category_id}>"><{$lang_add_photo}><img src="<{$mod_url}>/images/pictadd.gif" border="0" alt="<{$lang_add_photo}>" title="<{$lang_add_photo}>" />a><{/if}>
td>
tr>
table>
<{if count( $subcategories ) > 0 }>
<hr />
<{include file="db:myalbum_categories.html"}>
<{/if}>
td>
tr>
table>
<br />
<{if $photo_small_sum < 1 }>
<div align="center">
<{$lang_nomatch}>
div>
<{else}>
<table width="100%" cellspacing="0" class="outer">
<tr>
<td class="even" align="left">
<{if $photo_small_sum > 1 }>
<div align="center">
<{$lang_sortby}>
<{$lang_title}> (<a href="viewcat.php?cid=<{$category_id}>&orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&orderby=titleD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<{$lang_date}> (<a href="viewcat.php?cid=<{$category_id}>&orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&orderby=dateD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<{if $canrateview }>
<{$lang_rating}> (<a href="viewcat.php?cid=<{$category_id}>&orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<{/if}>
<{$lang_popularity}> (<a href="viewcat.php?cid=<{$category_id}>&orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" />a><a href="viewcat.php?cid=<{$category_id}>&orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" />a>)
<br />
<b><{$lang_cursortedby}>b>
<br />
<br />
<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left'>
<{$photonavinfo}>
td>
<td align='right'>
<{$photonav}>
td>
tr>
table>
div>
<hr />
<{/if}>
<br />
<table width='100%' cellspacing='0' cellpadding='0' border='0'>
<tr>
<{foreach from=$photos item=photo}>
<td align='center' style='margin:0px;padding:5px 0px;'>
<a href='<{$mod_url}>/photo.php?lid=<{$photo.lid}>'><img src='<{$photo.imgsrc_thumb}>' <{$photo.width_spec}> alt='<{$photo.title}>' title='<{$photo.title}>' border='0' />a>
td>
<{if $photo.count is div by $colsoftableview }>
tr>
<tr>
<{/if}>
<{/foreach}>
tr>
table>
<{if $photo_small_sum > 1 }>
<hr />
<div align="center">
<table broder='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left'>
<{$photonavinfo}>
td>
<td align='right'>
<{$photonav}>
td>
tr>
table>
div>
<{/if}>
td>
tr>
table>
<{/if}>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center">
<br />
<{include file='db:system_notification_select.html'}>
<br />
<{include file="db:myalbum_footer.html"}>
td>
tr>
table>
<{/strip}>
or one of these for wfdownloads:
wfdownloads_viewcat.html
(Here's the template atm)
<{include file='db:wfdownloads_header.html'}>
<div class="wfd_view_top">
<{if $cat_rssfeed_link !== ""}>
<{$cat_rssfeed_link}>
<{/if}>
<{if $category_title !== ""}>
<h1><{$category_title}>h1>
<{if $category_image}>
<img src="<{$category_image}>" alt="<{$category_title}>" title="<{$category_title}>" />
<{/if}>
<{/if}>
<{$description}>
div>
<br />
<div class="wfd_view_subs">
<{if $subcategories}>
<fieldset>
<h4><{$smarty.const._MD_WFD_SUBCATLISTING}>h4>
<table class="wfd_view_subslist">
<tr>
<{foreach item=subcat from=$subcategories}>
<td>
<a href="viewcat.php?cid=<{$subcat.id}>"><img src="<{$subcat.image}>" alt="<{$subcat.title}>" title="<{$subcat.title}>" align="middle" /> <{$subcat.title}>a> (<{$subcat.totallinks}>)<br />
td>
<{if $subcat.count is div by 2}>
tr>
<tr>
<td> td>
<{/if}>
<{/foreach}>
tr>
table>
fieldset>
<{/if}>
div>
<div class="wfd_view_catpath">
<{$category_path}>
div>
<br />
<{if $show_links == true}>
<div class="wfd_view_sortlist" align="center">
<b><{$smarty.const._MD_WFD_SORTBY}>b> <{$smarty.const._MD_WFD_TITLE}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=titleA">
<img src="images/up.gif" align="middle" alt="" title="" />a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=titleD">
<img src="images/down.gif" align="middle" alt="" title="" />a>
)
<{$smarty.const._MD_WFD_DATE}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=dateA">
<img src="images/up.gif" align="middle" alt="" title="" />a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=dateD">
<img src="images/down.gif" align="middle" alt="" title="" />a>
)
<{$smarty.const._MD_WFD_RATING}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=ratingA">
<img src="images/up.gif" align="middle" alt="" title="" />a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=ratingD">
<img src="images/down.gif" align="middle" alt="" title="" />a>
)
<{$smarty.const._MD_WFD_POPULARITY}> (
<a href="viewcat.php?cid=<{$category_id}>&orderby=hitsA">
<img src="images/up.gif" align="middle" alt="" title="" />a>
<a href="viewcat.php?cid=<{$category_id}>&orderby=hitsD">
<img src="images/down.gif" align="middle" alt="" title="" />a>
)
<br />
<b><{$lang_cursortedby}>b>
div>
<br />
<{/if}>
<{if $page_nav == true}>
<div class="wfd_pagenav">
<{$smarty.const._MD_WFD_PAGES}>: <{$pagenav}>
div>
<br />
<{/if}>
<{section name=i loop=$file}>
<{include file="db:wfdownloads_download.html" down=$file[i]}>
<{/section}>
<{if $page_nav == true}>
<div class="wfd_pagenav">
<{$smarty.const._MD_WFD_PAGES}>: <{$pagenav}>
div>
<{/if}>
<{include file='db:wfdownloads_footer.html'}>
Would anyone mind pointing out exactly what I need to change to get everything aligned properly?