Thumbnail views to Guists and Full gallery view to Registerd Users Thumbnail views to Guists and Full gallery view to Registerd Users
 

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

Thumbnail views to Guists and Full gallery view to Registerd Users

Started by nivar, January 11, 2007, 04:00:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nivar

Im looking for solution:
I want the not registered users to only be able to view the thumbnail of the gallery, if thy click on the thumbnail it should prompt them to register to view the full size picture.

How should i go about doing this ?

thanks in advance,

nivar

sorry guys, got the answer:

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

Edit displayimage.php and add
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before

/**************************************************************************
* Local functions definition
**************************************************************************/


Joachim Müller