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: borderquestion  (Read 3828 times)

0 Members and 1 Guest are viewing this topic.

Stevo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 86
borderquestion
« on: October 30, 2010, 05:57:51 am »

http://www.stevo.be/gallery


I just made my theme like my cms-template.
Then I changed my style to become this result.

But I still can see some borderlines.
Where can I find them??

Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: borderquestion
« Reply #1 on: October 30, 2010, 07:26:48 am »

You need to upgrade to 1.4.27, you are vulnerable to attacks.
<!--Coppermine Photo Gallery 1.4.25 (stable)-->

Those aren't borders ... if we are taking about the space between table cells.
That is the table cellspacing attribute.

Try adding this to custom theme's theme.php
Code: [Select]
// 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;
    }
}

Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Stevo

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 86
Re: borderquestion
« Reply #2 on: October 30, 2010, 08:08:43 am »

You need to upgrade to 1.4.27, you are vulnerable to attacks.
<!--Coppermine Photo Gallery 1.4.25 (stable)-->

Those aren't borders ... if we are taking about the space between table cells.
That is the table cellspacing attribute.

Try adding this to custom theme's theme.php
Code: [Select]
// 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;
    }
}



thx, will upgrade soon.
I installed 1.4.25 because of some plugins.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 22 queries.