forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: CMCK on December 05, 2012, 04:19:24 am

Title: Enter Album in Slideshow? Remove Album stats from album list?
Post by: CMCK 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!
Title: Re: Enter Album in Slideshow? Remove Album stats from album list?
Post by: Αndré 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.