coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: nivar on January 11, 2007, 04:00:48 AM

Title: Thumbnail views to Guists and Full gallery view to Registerd Users
Post by: nivar on January 11, 2007, 04:00:48 AM
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,
Title: Re: Thumbnail views to Guists and Full gallery view to Registerd Users
Post by: nivar on January 11, 2007, 04:10:52 AM
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
**************************************************************************/

Title: Re: Thumbnail views to Guists and Full gallery view to Registerd Users
Post by: Joachim Müller on January 11, 2007, 08:31:30 AM
To others: the answer was taken from the FAQ: http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#viewThumbnailsOnly