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: Unregistered Thumbnail-View Only Question  (Read 3392 times)

0 Members and 1 Guest are viewing this topic.

Arch Stanton

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Unregistered Thumbnail-View Only Question
« on: June 15, 2005, 02:44:17 pm »

In reference this FAQ question

Quote
How can I let unregistered users see the thumbnails only, but not the actual pictures?

Is there a way to enable this on a per-album basis instead of globally?

« Last Edit: June 15, 2005, 02:50:28 pm by Arch Stanton »
Logged

Nibbler

  • Guest
Re: Unregistered Thumbnail-View Only Question
« Reply #1 on: June 15, 2005, 03:18:38 pm »

You can build in a check for the album parameter, so

Code: [Select]
$albums_to_restrict = array(1,23,456);
if (!USER_ID && in_array($_GET['album'], $albums_to_restrict)) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);

If you want to restrict the displayimage.php?pos=-123 method aswell you'd need extra code.
Logged

Arch Stanton

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Unregistered Thumbnail-View Only Question
« Reply #2 on: June 17, 2005, 04:09:34 am »

What is the extra code?

Quote
If you want to restrict the displayimage.php?pos=-123 method aswell you'd need extra code.

Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.