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: Changing width of tables  (Read 2987 times)

0 Members and 1 Guest are viewing this topic.

MattW

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Changing width of tables
« on: February 26, 2007, 11:20:33 am »

http://www.artemis-fowl.com/gallery/index.php

How the <beep> do I change the width of the login tables, the login welcome message and the logout message?

Thanks
« Last Edit: February 26, 2007, 05:07:05 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Changing width of tables
« Reply #1 on: February 26, 2007, 01:46:09 pm »

Config - 'Width of the table for picture display'
Logged

MattW

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Changing width of tables
« Reply #2 on: February 26, 2007, 04:41:01 pm »

That didn't work, but I spent about 15 minutes searching and found that if I changed the width from width="$width" to width="440" then it works, I just couldn't find out where the $width was set so I just changed it. =] Thanks anyway.
Logged

Nibbler

  • Guest
Re: Changing width of tables
« Reply #3 on: February 26, 2007, 05:06:19 pm »

It's the starttable function

Code: [Select]
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="1" cellpadding="0" class="maintable">

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

EOT;
    }
}

login.php calls starttable with a width of '-1' so the width gets the value of picture_table_width.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.