Joachim is absolutely correct. Please follow board rules.
I took a look at your theme file. You made the changes at wrong place. In your theme.php
Replace
if ($mode == 'thumb') {
if ($aid == 'lastalb') {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
} else {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
}
with
if ($mode == 'thumb') {
if ($aid == 'lastalb') {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "thumbnails.php?album={$thumb['aid']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
} else {
$winsizeX = $thumb['pwidth'] + 5;
$winsizeY = $thumb['pheight'] + 5;
$thumb['caption'] = "<a href=\"displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}$uid_link\">800x600</a> <a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid={$thumb['pid']}&fullsize=1','".uniqid(rand())."','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">1024x768</a><br />".$thumb['caption'];
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => $thumb['admin_menu']
);
}
You are running an outdated (1.4.3) version whose sample theme has some discrepancies which caused you to make changes at wrong place. Upgrade to the latest stabel version ( 1.4.8 ).