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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 2 Guests 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.