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: Enter Album in Slideshow? Remove Album stats from album list?  (Read 3002 times)

0 Members and 1 Guest are viewing this topic.

CMCK

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Enter Album in Slideshow? Remove Album stats from album list?
« on: December 05, 2012, 04:19:24 am »

Hola...
I'm trying to make 2 mods to my CPG script and having a tough time finding the right files to change.
First, when the Album List renders, it shows each album's thumbnail, along with album stats.
I'd really like those album stats to go away.
*thought* it was in the config, but it does not appear so.

Second, I'd like to make it so that when a visitor clicks on the album thumb/link, they go straight into the slideshow for that album.

I'm pretty comfy modifying scripts, just can't seem to figure out where these things are located.
Can someone point me in the right direction?
Thanks!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: Enter Album in Slideshow? Remove Album stats from album list?
« Reply #1 on: December 05, 2012, 10:44:15 am »

I'd really like those album stats to go away.

Copy the sections $template_album_list and $template_album_list_cat to your theme's theme.php file if they don't exist. Then, find the line
Code: [Select]
<p class="album_stat">{ALB_INFOS}<br />{ALB_HITS}</p>and remove it in both sections.


I'd like to make it so that when a visitor clicks on the album thumb/link, they go straight into the slideshow for that album.

Copy the functions theme_display_album_list and theme_display_album_list_cat to your theme's theme.php file if they don't exist. Then, find the line
Code: [Select]
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",and replace it with
Code: [Select]
'{ALB_LINK_TGT}' => "displayimage.php?album={$album['aid']}&pid=".mysql_result(cpg_db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE aid = {$album['aid']} LIMIT 1"), 0)."&slideshow=5000",in both functions.


Next time, please respect our board rules by just asking one question per thread. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.