hlep me Gaugau hlep me Gaugau
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

hlep me Gaugau

Started by 亿佰, December 14, 2003, 11:36:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

亿佰

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
My username is 亿佰!----Can you see it?
I am a chinese, My name is Haotian Lau
I love you, Everybody!

Joachim Müller

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'&#93; ?>: <?php echo $lang_fullsize_popup['click_to_close'&#93;;
    
?>
</title>
<meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'&#93; == 'language file' ? $lang_charset &#58; $CONFIG['charset'&#93; ?>" />
<link rel="stylesheet" href="<?php echo $THEME_DIR ?>style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body scroll="auto" <?php if &#40;$CONFIG['disable_popup_rightclick'&#93; == 1&#41; &#123;
        
print 'onkeydown = "onKeyDown&#40;&#41;"';
    &
#125;
    
?>
>
<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 &#40;isset&#40;$HTTP_GET_VARS['picfile'&#93;&#41;&#41; &#123;
        
if &#40;!GALLERY_ADMIN_MODE&#41; cpg_die&#40;ERROR, $lang_errors['access_denied'&#93;, __FILE__, __LINE__&#41;;

        
$picfile $HTTP_GET_VARS['picfile'&#93;;
        
$picname $CONFIG['fullpath'&#93; . $picfile;
        
$imagesize = @getimagesize&#40;$picname&#41;;
        
echo "<a href=\"javascript&#58; window.close&#40;&#41;\"><img src=\"" path2url&#40;$picname&#41; . "\" $imagesize[3&#93; class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\n" . $lang_fullsize_popup['click_to_close'&#93; . "\"/></a><br />\n";
    
&#125; elseif &#40;isset&#40;$HTTP_GET_VARS['pid'&#93;&#41;&#41; &#123;
        
$pid = &#40;int&#41;$HTTP_GET_VARS['pid'&#93;;
        
$sql "SELECT * " "FROM &#123;$CONFIG['TABLE_PICTURES'&#93;&#125; " "WHERE pid='$pid$ALBUM_SET";
        
$result db_query&#40;$sql&#41;;

        
if &#40;!mysql_num_rows&#40;$result&#41;&#41; cpg_die&#40;ERROR, $lang_errors['non_exist_ap'&#93;, __FILE__, __LINE__&#41;;

        
$row mysql_fetch_array&#40;$result&#41;;
        
$pic_url get_pic_url&#40;$row, 'fullsize'&#41;;
        
$geom 'width="' $row['pwidth'&#93; . '" height="' . $row['pheight'&#93; . '"';
        
echo "<a href=\"javascript&#58; window.close&#40;&#41;\"><img src=\"" $pic_url "\" $geom class=\"image\" border=\"0\" alt=\"\" title=\"" htmlspecialchars&#40;$row['filename'&#93;&#41; . "\n" . $lang_fullsize_popup['click_to_close'&#93; . "\"></a><br />\n";
    
&#125;

    
?>

   </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:

&#20159;&#20336;

Thanks Gaugau
However, I only know you, I only believe you  :P  :P  :P  :oops:  :oops:  :twisted:  :twisted:
My username is 亿佰!----Can you see it?
I am a chinese, My name is Haotian Lau
I love you, Everybody!