Private album "cover" thumbnail visible to guests? Private album "cover" thumbnail visible to guests?
 

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

Private album "cover" thumbnail visible to guests?

Started by DJExxx, October 02, 2010, 09:48:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DJExxx

Hi, I have searched high and low for an answer to this before coming here, I hope I haven't missed the answer, and thank you in advance for your help.

I am wanting to show guests the album cover of password protected albums rather than the padlock image. I see that someone asked the same question for 1.4, and had a very simple answer, but I can't find an answer for 1.5.8. Here is the 1.4 thread if that helps finding an answer.
http://forum.coppermine-gallery.net/index.php/topic,45750.msg217668.html#msg217668
http://forum.coppermine-gallery.net/index.php/topic,45750.msg217668.html#msg217668

Many Thanks,
Dan

ΑndrĂ©

The answer is still the same. Open index.php and comment out / delete the following lines:
Code (line 824) Select
        if (!in_array($aid, $FORBIDDEN_SET_DATA) || $CONFIG['allow_private_albums'] == 0) {
Code (line 864-868) Select
        } elseif ($CONFIG['show_private']) {
            // $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']);
            $cpg_privatepic_data = cpg_get_system_thumb('private.jpg', $alb_thumb['category']);
            $alb_list[$alb_idx]['thumb_pic'] = '<img src="' . $cpg_privatepic_data['thumb'] . '" ' . $cpg_privatepic_data['whole'] . ' class="image" border="0" alt="" />';
        }