Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Unregistered Thumbnail-View Only Question  (Read 3439 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.021 seconds with 20 queries.