Advanced search  

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

Pages: [1]   Go Down

Author Topic: Private album "cover" thumbnail visible to guests?  (Read 3875 times)

0 Members and 1 Guest are viewing this topic.

DJExxx

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Private album "cover" thumbnail visible to guests?
« 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

Many Thanks,
Dan
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Private album "cover" thumbnail visible to guests?
« Reply #1 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="" />';
        }
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.