coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: gothicbarbie on September 23, 2006, 12:10:36 PM

Title: Cannot get rid of borders!!!!
Post by: gothicbarbie on September 23, 2006, 12:10:36 PM
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. 
Title: Re: Cannot get rid of borders!!!!
Post by: Nibbler on September 24, 2006, 12:32:53 AM
It's not a border, it's your background image.
Title: Re: Cannot get rid of borders!!!!
Post by: gothicbarbie on September 24, 2006, 01:28:01 AM
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.
Title: Re: Cannot get rid of borders!!!!
Post by: Nibbler on September 24, 2006, 02:12:37 AM
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;
    }
}
Title: Re: Cannot get rid of borders!!!!
Post by: gothicbarbie on September 24, 2006, 02:40:41 AM
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"! ;)
Title: Re: Cannot get rid of borders!!!!
Post by: Sami on September 24, 2006, 07:14:32 AM
Simply ,Yes :)
Title: Re: Cannot get rid of borders!!!!
Post by: gothicbarbie on September 24, 2006, 09:37:12 AM
Yessssssss! *pumps fist in air*

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

:D