Need to display AID on the album list page Need to display AID on the album list page
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Need to display AID on the album list page

Started by treehstn, November 18, 2008, 01:06:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

treehstn

Is there a way to code the (I'm assuming) index.php file so that the album id value is displayed on the album list page?  It would be great if it were displayed where the following text is:

26 files, last one added on Nov 16, 2008

which is under the buttons that say Delete Properties EditFiles.

Thanks!

Stramm

open themes/sample/theme.php and find function theme_display_album_list() and the var $template_album_list = <<<EOT ... and copy both (the hole thing, not just the first line) to the theme.php you're actually using.

Then find within the copied function
                '{ALBUM_TITLE}' => $album['album_title'],

and below add
                '{ALBUM_AID}' => $album['aid'],


find in the var
                        <p class="album_stat">{ALB_INFOS}</p>

and replace it eg. with
                        <p class="album_stat">{ALB_INFOS}<br>aid: {ALBUM_AID}</p>

treehstn

AWESOME!  Worked like a charm!  Thank you.