How to supress the border around original image? How to supress the border around original image?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to supress the border around original image?

Started by Biggi, March 14, 2005, 10:18:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Biggi

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 

Joachim Müller

to edit the html markup of the fullsize pop-up, edit displayimage.php, find<!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

Biggi

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

Joachim Müller

<!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