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
-
In reference this (http://coppermine.sourceforge.net/faq.php#viewThumbnailsOnly) FAQ question
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?
-
You can build in a check for the album parameter, so
$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.
-
What is the extra code?
If you want to restrict the displayimage.php?pos=-123 method aswell you'd need extra code.