Look in displayimage.php and search for
$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')\">";
change to
//$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_html = "<a href='displayimage.php?pid=$pid&fullsize=1'";
Now, open your theme's theme.php file and add this:
function theme_display_fullsize_pic()
{
global $CONFIG, $HTTP_GET_VARS, $THEME_DIR, $ALBUM_SET;
global $lang_errors, $lang_fullsize_popup, $lang_charset;
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>', $CONFIG['gallery_name'], '
</title>
<meta http-equiv="content-type" content="text/html; charset=',$CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'], '" />
<link rel="stylesheet" href="', $THEME_DIR, 'style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body scroll="auto" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2">
<td align="center" valign="middle">
<table cellspacing="2" cellpadding="0" style="border: 1px solid #000000; background-color: #FFFFFF;">
<td>';
if (isset($HTTP_GET_VARS['picfile'])) {
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
$picfile = $HTTP_GET_VARS['picfile'];
$picname = $CONFIG['fullpath'] . $picfile;
$imagesize = @getimagesize($picname);
echo '<img src="', path2url($picname), '"', $imagesize[3], ' class="image" border="0" alt="" title="', $picfile, '"/><br />
';
} elseif (isset($HTTP_GET_VARS['pid'])) {
$pid = (int)$HTTP_GET_VARS['pid'];
$sql = "SELECT * " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='$pid' $ALBUM_SET";
$result = db_query($sql);
if (!mysql_num_rows($result)) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
$row = mysql_fetch_array($result);
$pic_url = get_pic_url($row, 'fullsize');
$geom = 'width="' . $row['pwidth'] . '" height="' . $row['pheight'] . '"';
echo '<img src="', $pic_url, '"', $geom, ' class="image" border="0" alt="" title="', htmlspecialchars($row['filename']), '"><br />
';
}
echo '
</td>
</table>
</td>
</table>
</body>
</html>';
}
Why did you have to delete the javascript link? If you add the javascript link to whatever blog template you have, then the popup and rest of the functions will work. Without it, the slideshow and other stuff won't work.