I'm trying to upgrade my Coppermine to the latest version. I've got a heavily modified theme from 1.4.18 which seems to work fine except for the sort order of the thumbnail view and I can't figure out how to correct that.
My previous theme.php contained this:
// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="statlink"><h2 style="text-align:left;">{ALBUM_NAME}</h2></td>
<td><img src="images/spacer.gif" width="1" alt="" /></td>
<td class="sortorder_cell" width="250">
<table cellpadding="0" cellspacing="0" align="center">
<tr><td class="sortorder_options" >SORT BY: </td>
<td width="10"></td>
<td class="sortorder_options">{DATE}: </td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=da" title="{SORT_DA}"> + </a></span></td>
<td class="sortorder_options">
<span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=dd" title="{SORT_DD}"> - </a></span></td>
<td width="10"></td>
<td class="sortorder_options">{POSITION}: </td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pa" title="{SORT_PA}"> + </a></span></td>
<td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&page={PAGE}&sort=pd" title="{SORT_PD}"> - </a></span></td>
</tr>
</table>
</td>
</tr>
</table>
EOT;
It shows the sort options, Sort by {Date} + - {Position} + - , but when you click on the + or - it gives an error stating Error The selected album/file does not exist!
Any ideas how I can fix this?