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!
What modificaitons have you made? What version of Coppermine are you using?
maybe you could post the code change?
snork
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
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?
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?
You can start by posting the code from displayimage.php, lines 185-195.
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') {
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') {
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
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.
thanks - sounds good, butI'm on a mac....I will load softwindows and try it though.
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.