Cannot get rid of borders!!!! Cannot get rid of borders!!!!
 

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

Cannot get rid of borders!!!!

Started by gothicbarbie, September 23, 2006, 12:10:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gothicbarbie

Hey there, I have just about tried everything to try and get rid of the borders in the table of the photo gallery that is integrated into one of my websites, including checking the stylesheet about 10 times, checking if it´s a maybe a spacer image, if it´s possibly my own background/a margin/padding problem, or if it´s just in Firefox and not in IE.  Oh, and of course I have searched and looked and tried some of the solutions to some of the answers here on the forum.  But I still cannot get rid of them.  I have had this problem before about a year back, but then it was simply a small change to one of the border properties in the stylesheet and it was sorted.

It´s probably something sooo simple I can´t see it.  I wonder if somebody here can help me with this?  The URL is:

http://www.catnipcamera.com/starcats/photogallery/index.php

and I attach a .zip file of my theme (based on Classic). 

Thanks!
Barbarella
www.starcats.co.uk

Hoping that someone can help with this, thanks. 

Nibbler

It's not a border, it's your background image.

gothicbarbie

Thanks for noting that, but like I said I had already taken that into account too and couldn´t fix it.  Do you know how I could possibly turn ON some borders in that case and make them the same colour as the background of the lighter colour table? :)

Ta mate.

Nibbler

Take the cellspacing out of your standard table by adding this into your theme.php


// Function to start a 'standard' table
function starttable($width = '-1', $title = '', $title_colspan = '1')
{
    global $CONFIG;

    if ($width == '-1') $width = $CONFIG['picture_table_width'];
    if ($width == '100%') $width = $CONFIG['main_table_width'];
    echo <<<EOT

<!-- Start standard table -->
<table align="center" width="$width" cellspacing="0" cellpadding="0" class="maintable">

EOT;
    if ($title) {
        echo <<<EOT
        <tr>
                <td class="tableh1" colspan="$title_colspan">$title</td>
        </tr>

EOT;
    }
}

gothicbarbie

Aw man, I´m sorry and you´re being such a gem at being helpful, but I´m pretty much PHP illiterate! 

When I go into my theme.php all I see is this:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.8
  $Source$
  $Revision: 3116 $
  $Author: gaugau $
  $Date: 2006-06-08 00:11:54 +0200 (Do, 08 Jun 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);




?>

Should I just stick the code you gave me before the last question mark and bracket? 

Really sorry to sound like such a "blonde"! ;)

Sami

‍I don't answer to PM with support question
Please post your issue to related board

gothicbarbie

Yessssssss! *pumps fist in air*

That´s fantastic.  It worked.  Thanks a lot, mateys. 

:D