Enter Album in Slideshow? Remove Album stats from album list? Enter Album in Slideshow? Remove Album stats from album list?
 

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

Enter Album in Slideshow? Remove Album stats from album list?

Started by CMCK, December 05, 2012, 04:19:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CMCK

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!

ΑndrĂ©

Quote from: CMCK on December 05, 2012, 04:19:24 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
<p class="album_stat">{ALB_INFOS}<br />{ALB_HITS}</p>
and remove it in both sections.


Quote from: CMCK on December 05, 2012, 04:19:24 AM
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
'{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
and replace it with
'{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.