forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: scottking on October 09, 2006, 01:55:58 am

Title: Error - let unregistered users see the thumbnails only
Post by: scottking on October 09, 2006, 01:55:58 am
I did as followed to displayimage.php and get an error

if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
just before
/**************************************************************************
* Local functions definition
**************************************************************************/

Error

Parse error: syntax error, unexpected T_DNUMBER in /home/nicholeh/public_html/photogallery/displayimage.php on line 97


Here is line 97

 $ipinfo = ' (' . $CURRENT_PIC_DATA['pic_hdr_ip'] . '[' . $CURRENT_PIC_DATA['pic_raw_ip'] . ']) / ';

lookking for assistance on this error

Thanks
Scott
Title: Re: Error - let unregistered users see the thumbnails only
Post by: Sami on October 09, 2006, 06:24:43 am
- Re-upload meded file again
- Rename it to displayimage.txt and attach it to this thread
Title: Re: Error - let unregistered users see the thumbnails only
Post by: scottking on October 09, 2006, 10:59:50 am
Here is the displayimage.txt

Should of mentioned too I am running 1.49 with no mods
Title: Re: Error - let unregistered users see the thumbnails only
Post by: Sami on October 09, 2006, 12:25:26 pm
Your attached file is fine !
Try to re-upload it
Title: Re: Error - let unregistered users see the thumbnails only
Post by: scottking on October 09, 2006, 04:09:11 pm
Solved.

Hmm strange. when I upload the displayimage.php I get the Parse error. If I delete the displayimage.php and upload the displayimage.txt and then rename it to .php everything works fine.
Title: Re: Error - let unregistered users see the thumbnails only
Post by: Sami on October 09, 2006, 04:36:28 pm
What FTP Client you are using ?