help! parse error, unexpected T_STRING .../displayimage.php on line 189 help! parse error, unexpected T_STRING .../displayimage.php on line 189
 

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

help! parse error, unexpected T_STRING .../displayimage.php on line 189

Started by LWAA, September 26, 2005, 09:57:51 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

LWAA

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!
<i>"I understand everything, except what you're telling me"</i>

kegobeer

What modificaitons have you made?  What version of Coppermine are you using?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

snork13


LWAA

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
<i>"I understand everything, except what you're telling me"</i>

snork13

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?

LWAA

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?
<i>"I understand everything, except what you're telling me"</i>

kegobeer

You can start by posting the code from displayimage.php, lines 185-195.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

LWAA

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') {
<i>"I understand everything, except what you're telling me"</i>

snork13

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') {

LWAA

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
<i>"I understand everything, except what you're telling me"</i>

Joachim Müller

if you're interessted in "forensics" and you want to find out what went wrong, use a diff viewer like winmerge to compare the two files. You will then be able to see the differences and might learn something from it.

LWAA

thanks - sounds good, butI'm on a mac....I will load softwindows and try it though.
<i>"I understand everything, except what you're telling me"</i>

Joachim Müller

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.