Flak,
This sounds like a functionality that will require custom coding. I don't know how comfortable with coding you are. But samples of similar things can go a long way to get you where you want to go. Here is how I might approach this:
In your local theme.php file
1. create two variables called $prev_album, $next_album.
2. Get the current album number. Possible ways:
a. Call $_GET[album]. I believe that returns the id.
b. Parse the URL and retrieve the album number (i.e.
http://www.lightquestphoto.com/coppermine/thumbnails.php?album=1)
3. Assign the correct values to these variables. Then call them inside the code which creates the layout for the thumbnail and album pages.
That is what I did to get the album description and add it to the top of the album. Here is the code I used:
$album_desc = '';
// Get the album info
function get_album_data($aid)
{
global $CONFIG;
global $lang_errors;
global $album_desc;
$result = cpg_db_query("SELECT description from {$CONFIG['TABLE_ALBUMS']} WHERE aid='$aid'");
$count = mysql_num_rows($result);
if ($count > 0) {
$row = mysql_fetch_array($result);
$album_desc = $row['description'];
}
}
get_album_data($_GET[album]);
// HTML template for title row of the view (album title + sort options)
$template_thumb_view_title_row = <<<EOT
<table width="98%" cellpadding="0" cellspacing="0" class="gcBorder1Top" >
<tr cellpadding="3" >
<td style="width: 80%; vertical-align:top; text-align:left">
<p class="giDescription">{$album_desc}</p>
</td>
</tr>
</table><br />
EOT;
This should get you started. It is up to try and code the rest of it. But let us know how it goes after you try and get it going.
Note: To make this really clean you will need to get the total album count so you know where to stop with $next_album. A db function like I use above can get you the count of albums as well. Change the SQL to something like this:
cpg_db_query("SELECT count(*) from {$CONFIG['TABLE_ALBUMS']}");
- Derek