$picture_url exists in displayimage.php, but not in theme.php
To do what you're looking for, edit displayimage.php, find $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";
}
and replace with something like $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";
$pic_html .= "<br />\n";
$pic_html .= "<a href=\"http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=".$CONFIG['ecards_more_pic_target'].$picture_url."\" target=\"_blank\"> Send this photo as a real card (not an e-card)</a>\n";
} else {
$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
$pic_html .= "<a href=\"http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=".$CONFIG['ecards_more_pic_target'].$picture_url."\" target=\"_blank\"> Send this photo as a real card (not an e-card)</a><br />\n";
}
(not tested though).
Joachim
P.S. I can't make heads or tails of the code you posted, with all this color and highlighting. Please use the bbcode tag [ c o d e ]echo 'Hello world';[ / c o d e ] (without the spaces) to denote code in postings on this (and other) boards.