Changing width of tables Changing width of tables
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.