coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: imperious on November 23, 2004, 09:19:32 PM

Title: error message when people try to register
Post by: imperious on November 23, 2004, 09:19:32 PM
I went to the FAQ and found this code

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
**************************************************************************/




I did that code just like it says and now people that try to register get this error message

"Parse error: parse error, unexpected T_STRING in /home/mike1/public_html/port/register.php on line 180"

Please help me figure this out

My url is

http://www.imperiousphotography.com/port/index.php

Thanks!



Title: Re: error message when people try to register
Post by: Nibbler on November 23, 2004, 09:23:57 PM
Replace your register.php with a fresh version.
Title: Re: error message when people try to register
Post by: imperious on November 23, 2004, 09:32:33 PM
PLease tell me how to do that?
Title: Re: error message when people try to register
Post by: Tranz on November 23, 2004, 09:59:24 PM
Go to the downloads link at the top of this page and download the package that matches your version. Uncompress the archive file and upload register.php to your server space.