Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Remove "last one added"  (Read 2013 times)

0 Members and 1 Guest are viewing this topic.

enwhysee

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Remove "last one added"
« on: November 18, 2007, 06:16:20 pm »

Yes I did a search and reviewed multiple topics but none of them worked right for me. I want to remove the date but not the file count. I tried to follow the instructions in this post but I kept getting an error. Where do I add this code in $template_album_list & $template_album_list_cat from theme.php?? Can someone explain clearer?

Quote
If you want to remove the date only and keep the number of files, add the first line below (with its surrounding comments) in front of the next lines in the functions theme_display_album_list and theme_display_album_list_cat (with the same caveats about whether you already have those functions or not in your theme.php):

Code: [Select]

            // MOD - remove date from album info
            list($album['album_info'],$trash) = split(', ',$album['album_info'],2);
            // MOD - end
            $params = array('{COL_WIDTH}' => $column_width,
                '{ALBUM_TITLE}' => $album['album_title'],
                '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
                '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
                '{ALB_LINK_PIC}' => $album['thumb_pic'],
                '{ADMIN_MENU}' => $album['album_adm_menu'],
                '{ALB_DESC}' => $album['album_desc'],
                '{ALB_INFOS}' => $album['album_info'],
                );

Logged

enwhysee

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.