forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: DJExxx on October 02, 2010, 09:48:25 pm

Title: Private album "cover" thumbnail visible to guests?
Post by: DJExxx on October 02, 2010, 09:48:25 pm
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 (http://forum.coppermine-gallery.net/index.php/topic,45750.msg217668.html#msg217668)

Many Thanks,
Dan
Title: Re: Private album "cover" thumbnail visible to guests?
Post by: Αndré on October 12, 2010, 11:23:54 am
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="" />';
        }