forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: Arch Stanton on June 15, 2005, 02:44:17 pm

Title: Unregistered Thumbnail-View Only Question
Post by: Arch Stanton on June 15, 2005, 02:44:17 pm
In reference this (http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly) 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?

Title: Re: Unregistered Thumbnail-View Only Question
Post by: Nibbler 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.
Title: Re: Unregistered Thumbnail-View Only Question
Post by: Arch Stanton 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.