coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: LWAA on September 26, 2005, 09:57:51 PM

Title: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: LWAA on September 26, 2005, 09:57:51 PM
Parse error: parse error, unexpected T_STRING in /home/maple/public_html/flrouiedscv3/displayimage.php on line 189

I get this error when clicking on a thumbnail to view the larger image. Can anyone tell me what's wrong here?

the script is here: http://maplecards.com/flrouiedscv3/thumbnails.php?album=3

thanks!
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: kegobeer on September 26, 2005, 11:33:25 PM
What modificaitons have you made?  What version of Coppermine are you using?
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: snork13 on September 26, 2005, 11:40:23 PM
maybe you could post the code change?

snork
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: LWAA on September 26, 2005, 11:45:44 PM
I've incorporated the paypal mod (which I've done before without a problem).
I'm using coppermine 1.3.3
there was no code change as such, I copied files from a site I did previously and re-uploaded them.

thanks
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: snork13 on September 26, 2005, 11:48:26 PM
Quote from: LWAA on September 26, 2005, 11:45:44 PM
I've incorporated the paypal mod (which I've done before without a problem).
I'm using coppermine 1.3.3
thanks

Have you double checked the changes?
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: LWAA on September 26, 2005, 11:52:19 PM
I'm not up on coding other than regular html, so wouldn't know what was right and what wasn't  :\'(

Would I be best to reupload the whole darn lot and start from scratch?
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: kegobeer on September 27, 2005, 12:06:45 AM
You can start by posting the code from displayimage.php, lines 185-195.
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: LWAA on September 27, 2005, 12:31:44 AM
here they are:

        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
         //$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            //$pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: snork13 on September 27, 2005, 01:49:40 AM
Quote from: LWAA on September 27, 2005, 12:31:44 AM
here they are:

        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
         //$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            //$pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {




line 189 & 191 // <-- try removing it from in front, i assume your trying to comment it out? from the mod below:

      if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
            $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: LWAA on September 27, 2005, 02:53:14 AM
thanks, that didn't seem to do it ??? , but I swapped out that displayimage.php for another I'd used on another site and now it works perfectly!  :D
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: Joachim Müller on September 27, 2005, 08:34:52 AM
if you're interessted in "forensics" and you want to find out what went wrong, use a diff viewer like winmerge (http://winmerge.sourceforge.net/) to compare the two files. You will then be able to see the differences and might learn something from it.
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: LWAA on September 30, 2005, 12:53:15 PM
thanks - sounds good, butI'm on a mac....I will load softwindows and try it though.
Title: Re: help! parse error, unexpected T_STRING .../displayimage.php on line 189
Post by: Joachim Müller on October 01, 2005, 10:45:10 AM
there are diff viewers for mac as well. As far as I know, Mac OS is Unix, sort of, so you should be able to find diff viewers for your OS. I think there are even diff viewers that come with Lunix.