Thumbnails only for un-registered users? (question!) Thumbnails only for un-registered users? (question!)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Thumbnails only for un-registered users? (question!)

Started by thelynnied, March 18, 2006, 03:34:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

thelynnied

I checked the FAQ and got the code, but where do I put it?I  know it says before displayimage.php but where is that? Sorry if this is a dumb question, I'm lucky to have even gotten my gallery customized! lol I just dont want to mess anything up!
Thanks in advance!  :) ;D

Joachim Müller

http://coppermine-gallery.net/demo/cpg13x/docs/faq.htm#viewThumbnailsOnly doesn't say that, read the section more carefully. It says
QuoteEdit 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
**************************************************************************/
, so you're suppossed to edit the file displayimage.php with a plain text editor (notepad.exe is fine), find/**************************************************************************
* Local functions definition
**************************************************************************/
and insertif (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);into a new line right before the code you searched for.

thelynnied