Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to supress the border around original image?  (Read 4026 times)

0 Members and 1 Guest are viewing this topic.

Biggi

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
How to supress the border around original image?
« on: March 14, 2005, 10:18:33 am »

Good morning to everybody!

Again I need your help...

I'm trying to get rid of the border around the original image. I found out that in style.css the point "tableb." is responsible for the color of the border or table, but I can't supress the border itself. I use the "hardwired" theme and I have changed it in some points. My background for example is black. So a border-color black would also do. But nothing happens during my trials.

Besides I reached a table background of black behind the display of my photos, but then there is still a border in grey/blue and the black occurs on the category-table on startpage too, but at this place the color should stay as it was.

These are my problems. Does anybody have a solution for me?

----------------------------------------------------------------------------------------
In german:

Ich möchte gerne den Rahmen loswerden, der sich um das Original-Foto herum befindet. Inzwischen habe ich herausgefunden, daß in der Datei style.css der Punkt "tableb." dafür zuständig ist, die Farbe des Rahmens zu bestimmen. Da ich das theme hardwired benutze und es dahingehend angespaßt habe, daß ich einen schwarzen Hintergrund auf der Seite habe, wo das Original-Foto erscheint, habe ich die Tabelle, die hinter dem Foto liegt auf schwarz angepaßt. Trotzdem bleibt dann ein grau/blauer Rahmen von 1 Px bestehen und außerdem ändert diese Maßnahme dann auch die Tabelle auf der Startseite, in der die Kategorien angezeigt werden.

Wie kann ich also entweder den Rahmen um das Bild ganz loswerden (was die beste Lösung wäre) oder wie kann ich es schaffen, den 1Px-Rahmen und den Hintergrund der Tabelle des Original-Fotos schwarz zu bekommen und gleichzeitig die Tabelle der Kategorien auf der Startseite unangetastet zu lassen? Hat jemand eine Lösung für mich? Ich weiß echt nicht mehr weiter...

Danke!

My gallery: http://www.bildmomente.de/Galerie2/l

Thanks and regards,
Biggi 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to supress the border around original image?
« Reply #1 on: March 14, 2005, 10:58:11 am »

to edit the html markup of the fullsize pop-up, edit displayimage.php, find
Code: [Select]
<!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" marginwidth="0" marginheight="0">
<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_MODEcpg_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>
and edit accordingly.

Joachim
Logged

Biggi

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: How to supress the border around original image?
« Reply #2 on: March 14, 2005, 12:54:47 pm »

Thank you, Joachim. But unfortunately it brought no changes to edit displayimage.php according to your tip. I changed border-settings and even tried to supress the connection to style.css and to give exact orders how the table has to look like. Nothing happend...

Instead I found out that only style.css changed the look of the table of  my picture. Now I still have a 1Px border around my image. I could set this in meantable to color black, but in this case I again have the result, that the borders of the category-cells on startpage are black too. It would be fine to eliminate the border around the image, but to be able to save the border on category-cells. If you or somebody else does'nt have a good idea I think I have to live with this last border around my image. According to my knowledge I'm at the end  ;)  Can you imagine why your idea did not brought changes? Maybe it's just a small thing, but I can't imagine right now  ???

Regards, Biggi
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to supress the border around original image?
« Reply #3 on: March 14, 2005, 07:09:37 pm »

Code: [Select]
<!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'?>" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body scroll="auto" marginwidth="0" marginheight="0" text="#000000" bgcolor="#000000">
<script language="JavaScript" type="text/JavaScript">
adjust_popup();
</script>
<?php
    
if (isset($HTTP_GET_VARS['picfile'])) {
        if (!
GALLERY_ADMIN_MODEcpg_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";
    }
    
?>

</body>
</html>
doesn't work for you? Post a link to your site then.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.