I want to do some modification in the "Click to view full size image" page, Where should I revise ?
http://mydomain/photo/displayimage.php?pid=100&fullsize=1
Thanks
I don't know what you want to change in detail (maybe a link or a screenshot would help). If you're looking for the properties of the popup window, edit displayimage.php and look for<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo $CONFIG['gallery_name'] ?>: <?php echo $lang_fullsize_popup['click_to_close'];
?></title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'] ?>" />
<link rel="stylesheet" href="<?php echo $THEME_DIR ?>style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body scroll="auto" <?php if ($CONFIG['disable_popup_rightclick'] == 1) {
print 'onkeydown = "onKeyDown()"';
}
?>>
<script language="JavaScript" type="text/JavaScript">
adjust_popup();
</script>
<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>
<?php
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 "<a href=\"javascript: window.close()\"><img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\n" . $lang_fullsize_popup['click_to_close'] . "\"/></a><br />\n";
} 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 "<a href=\"javascript: window.close()\"><img src=\"" . $pic_url . "\" $geom class=\"image\" border=\"0\" alt=\"\" title=\"" . htmlspecialchars($row['filename']) . "\n" . $lang_fullsize_popup['click_to_close'] . "\"></a><br />\n";
}
?>
</td>
</table>
</td>
</table>
</body>
</html>
That's where to pop-up is handled.
GauGau
P.S. There are other supporters as well - no need to ask for help from me directly in the subject line; better use the subject line for a short summary what your posting is about, like "how to change pop-up properties" :wink:
Thanks Gaugau
However, I only know you, I only believe you :P :P :P :oops: :oops: :twisted: :twisted: