Changing width of tables Changing width of tables
 

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

Changing width of tables

Started by MattW, February 26, 2007, 11:20:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MattW

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

Nibbler

Config - 'Width of the table for picture display'

MattW

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.

Nibbler

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.