Unregistered Thumbnail-View Only Question Unregistered Thumbnail-View Only Question
 

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

Main Menu

Unregistered Thumbnail-View Only Question

Started by Arch Stanton, June 15, 2005, 02:44:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Arch Stanton

In reference this FAQ question

QuoteHow 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?


Nibbler

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.

Arch Stanton

What is the extra code?

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