coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: MattW on February 26, 2007, 11:20:33 AM

Title: Changing width of tables
Post by: MattW on February 26, 2007, 11:20:33 AM
http://www.artemis-fowl.com/gallery/index.php (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
Title: Re: Changing width of tables
Post by: Nibbler on February 26, 2007, 01:46:09 PM
Config - 'Width of the table for picture display'
Title: Re: Changing width of tables
Post by: MattW 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.
Title: Re: Changing width of tables
Post by: Nibbler on February 26, 2007, 05:06:19 PM
It's the starttable function


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.