Fork me on GitHub

Body not taking up 100% of width (supaniceGrey)  Bottom

  • Hi, I'm using the supaniceGrey theme and body is not spreading across the full width.

    Here's the most obvious example, the forum. See how the body content stops at the end of the search box?

    http://www.humanshields.org/width.jpg

    Any ideas on which file and bit of code is causing this?
  • Would really need a URL to see, but obiously the top table should be @ 100%. Not so obviously, if the left/center/right block part of your theme is 100% and you've set an absolute width for the left and right table cells that contain the left/right blocks, the center block should be set to a large *absolute* pixel width instead of 100% - like "2000" of something bigger than could fit on the screen. Provided it's "parent" table is set to 100%, this will force the center block to fill the void...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Thanks nate, where do I edit these settings?
  • You edit them in the part of your theme I just described... Most likely in the header portion.

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Is this somewhere in the theme.php file?
  • can also be in a HTML file, theme.html etc
  • Okay this is my theme.php file (no HTML found). I'm having a little trouble locating the correct lines of code. If anyone could point me in the general direction it would be much appreciated.

    Code

    <?PHP
    // ------------------------------------------------------------ //
    // mentalbloc / supaniceGrey
    //
    // LEGAL NOTICE
    // NO COMMERCIAL USE WITHOUT PERMISSION.
    // Otherwise GPL applies.
    //
    // mentalbloc design themes. - jai.wilson@ntlworld.com
    // please credit mentalbloc for original design
    // (or iffy coding ;) )
    //
    // always include the imageReady PSD's with this distribution.
    //
    // author : jai.wilson / mentalbloc design
    // http://mentalbloc.da.ru
    // jai.wilson@ntlworld.com
    //
    // codedate : Sat Feb 16 3:28:53  2002
    // ------------------------------------------------------------ //

        $bgcolor1   = "#EFEFEF"; // Comment Header Bg
        $bgcolor2   = "#FFFFFF"; // Messages Bg
        $bgcolor3   = "#FFFFFF"; // Article Bg
        $bgcolor4   = "#FFFFFF"; // Border Bg
        $textcolor1 = "#000000";
        $textcolor2 = "#3C3C3C";
        $thename    = "supaniceGrey"; // Theme name
        $postnuke_theme = true;
    //jla
        themes_get_language();
     
             
    //jla

    // Table 1
    function OpenTable()
    {
        global $bgcolor2;
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    }
    function CloseTable()
    {
        echo "</td></tr></table>\n";
    }

    // Table 2
    function OpenTable2()
    {
        global $bgcolor3;
        echo "<table border=\"0\" cellspacing=\"0\" align=\"center\" cellpadding=\"10\" bgcolor=\"$bgcolor3\" align=\"center\"><tr><td>\n";
    }
    function CloseTable2()
    {
        echo "</td></tr></table>\n";
    }

    // ---------------------------------------------- //
    //  Header Section
    // ---------------------------------------------- //

    function themeheader()
    {
    global $HTTP_GET_VARS;
       
       
        $bdrcolor   = "#FFFFFF"; // Search Box Border colour
        $bgcolor5   = "#FFFFFF"; // Search Box Bg

    // Nav links are defined here by the 2D array $navitem[]

        //jla
        $tmp= $HTTP_GET_VARS['newlang'];
        if ($tmp == "") {
            $tmp = pnSessionGetVar('lang');
        }
        if ($tmp == "") {
            $tmp = pnConfigGetVar('language');
        }
       
       
        $currentlang = $tmp;
        //echo phpinfo();
        //jla

    $navitem[1][name] = "homeButton";
    $navitem[1][overimagename] = "homeButton_over";
    $navitem[1][hyperlink] = "index.php";
    $navitem[1][image] =  $currentlang."/homeButton"; // without extension
    $navitem[1][overimage] = $currentlang."/homeButton-over"; // without extension
    $navitem[1][imgext] = ".gif";
    $navitem[1][imgwidth] = "88";
    $navitem[1][imgheight] = "24";
    $navitem[1][alttext] = _HOMEPAGE; //jla "homepage";
    $navitem[1][statustext] = _GOHOMEPAGE; //jla"Go to the homepage";
    $navitem[1][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    $navitem[2][name] = "infoButton";
    $navitem[2][overimagename] = "infoButton_over";
    $navitem[2][hyperlink] = "modules.php?op=modload&name=FAQ&file=index";
    $navitem[2][image] = $currentlang."/infoButton"; // without extension
    $navitem[2][overimage] = $currentlang."/infoButton-over"; // without extension
    $navitem[2][imgext] = ".gif";
    $navitem[2][imgwidth] = "88";
    $navitem[2][imgheight] = "24";
    $navitem[2][alttext] = _OSS;//"FAQ";
    $navitem[2][statustext] = _GOOSS; //"Svar p?Ofte Stillede Sp?gsm?";
    $navitem[2][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    $navitem[3][name] = "forumButton";
    $navitem[3][overimagename] = "forumButton_over";
    $navitem[3][hyperlink] = "modules.php?op=modload&name=PNphpBB2&file=index";
    $navitem[3][image] = $currentlang."/forumButton"; // without extension
    $navitem[3][overimage] = $currentlang."/forumButton-over"; // without extension
    $navitem[3][imgext] = ".gif";
    $navitem[3][imgwidth] = "88";
    $navitem[3][imgheight] = "24";
    $navitem[3][alttext] = _FORUM; //"Bes? vor BrugerForums";
    $navitem[3][statustext] = _GOFORUM; //"Bes? diskussions fora";
    $navitem[3][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    $navitem[4][name] = "linksButton";
    $navitem[4][overimagename] = "linksButton_over";
    $navitem[4][hyperlink] = "modules.php?op=modload&name=Web_Links&file=index";
    $navitem[4][image] = $currentlang."/linksButton"; // without extension
    $navitem[4][overimage] = $currentlang."/linksButton-over"; // without extension
    $navitem[4][imgext] = ".gif";
    $navitem[4][imgwidth] = "88";
    $navitem[4][imgheight] = "24";
    $navitem[4][alttext] = _WEBLINKS; //"web links...";
    $navitem[4][statustext] = ""; //see some of the sites we like...";
    $navitem[4][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    $navitem[5][name] = "inboxButton";
    $navitem[5][overimagename] = "inboxButton_over";
    $navitem[5][hyperlink] = "index.php?module=My_eGallery";
    $navitem[5][image] = $currentlang."/inboxButton"; // without extension
    $navitem[5][overimage] = $currentlang."/inboxButton-over"; // without extension
    $navitem[5][imgext] = ".gif";
    $navitem[5][imgwidth] = "88";
    $navitem[5][imgheight] = "24";
    $navitem[5][alttext] = "Indbakke";
    $navitem[5][statustext] = "send og modtag dine private beskeder";
    $navitem[5][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    $navitem[6][name] = "portfolioButton";
    $navitem[6][overimagename] = "portfolioButton_over";
    $navitem[6][hyperlink] = "act.php";
    $navitem[6][image] = $currentlang."/portfolioButton"; // without extension
    $navitem[6][overimage] = $currentlang."/portfolioButton-over"; // without extension
    $navitem[6][imgext] = ".gif";
    $navitem[6][imgwidth] = "88";
    $navitem[6][imgheight] = "24";
    $navitem[6][alttext] = _DOWNLOAD; //Kode til DownLoad";
    $navitem[6][statustext] = _GODOWNLOAD;//"Downloadkategorier";
    $navitem[6][extended] = ""; //onClick=\"popupwin('gallery/gallerynav.php','gallery','status=0,height=570,width=400,scrollbars=0')\"";

    $navitem[7][name] = "customizeButton";
    $navitem[7][overimagename] = "customizeButton_over";
    $navitem[7][hyperlink] = "donate.php";
    $navitem[7][image] = $currentlang."/customizeButton"; // without extension
    $navitem[7][overimage] = $currentlang."/customizeButton-over"; // without extension
    $navitem[7][imgext] = ".gif";
    $navitem[7][imgwidth] = "88";
    $navitem[7][imgheight] = "24";
    $navitem[7][alttext] = _YOURACCOUNT; //"Din brugerkonto";
    $navitem[7][statustext] = ""; //Ops?ningen af din brugerkonto";
    $navitem[7][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    $navitem[8][name] = "contactButton";
    $navitem[8][overimagename] = "contactButton_over";
    $navitem[8][hyperlink] = "index.php?module=vpContact";
    $navitem[8][image] = $currentlang."/contactButton"; // without extension
    $navitem[8][overimage] = $currentlang."/contactButton-over"; // without extension
    $navitem[8][imgext] = ".gif";
    $navitem[8][imgwidth] = "88";
    $navitem[8][imgheight] = "24";
    $navitem[8][alttext] = _CONTACT; //"Vil du i kontakt med Mylook.dk ?";
    $navitem[8][statustext] = _GOCONTACT; //"Kontakt til Mylook.dk";
    $navitem[8][extended] = ""; // i.e. for java pop-up window style links... normally left blank...

    // -----------------------------------------------------------------
    // Obviously you will get some speed improvement in rendering the
    // page if you hardcode the links below..
    //
    // The array method was used for convenience/editing simplicity...
    //
    // if you do hardcode make sure you edit the dynamic javaScript
    // preloadImages function below...
    // -----------------------------------------------------------------

    global $textcolor1, $thename, $index;
    global $anonymous;
    global $username, $user, $cookie;
        $slogan = pnConfigGetVar('slogan');
        $sitename = pnConfigGetVar('sitename');
        $banners = pnConfigGetVar('banners');
        cookiedecode($user);
        $username = $cookie[1];
        if ($username == "")
        {
            $username = "Anonymous";
        }
       
    echo "<script language=\"JavaScript\">
    <!--
    function newImage(arg)
        {
            if (document.images) {
                rslt = new Image();
                rslt.src = arg;
                return rslt;
            }
        }

    function changeImages()
        {
            if (document.images && (preloadFlag == true)) {
                for (var i=0; i<changeImages.arguments.length; i+=2) {
                    document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
                }
            }
        }

    var preloadFlag = false;

    function preloadImages()
    // Dynamic variables generated by PHP...!!!
        {
            if (document.images) {
                {$navitem[1][overimagename]} = newImage(\"themes/$thename/images/{$navitem[1][overimage]}{$navitem[1][imgext]}\");
                {$navitem[2][overimagename]} = newImage(\"themes/$thename/images/{$navitem[2][overimage]}{$navitem[2][imgext]}\");
                {$navitem[3][overimagename]} = newImage(\"themes/$thename/images/{$navitem[3][overimage]}{$navitem[3][imgext]}\");
                {$navitem[4][overimagename]} = newImage(\"themes/$thename/images/{$navitem[4][overimage]}{$navitem[4][imgext]}\");
                {$navitem[5][overimagename]} = newImage(\"themes/$thename/images/{$navitem[5][overimage]}{$navitem[5][imgext]}\");
                {$navitem[6][overimagename]} = newImage(\"themes/$thename/images/{$navitem[6][overimage]}{$navitem[6][imgext]}\");
                {$navitem[7][overimagename]} = newImage(\"themes/$thename/images/{$navitem[7][overimage]}{$navitem[7][imgext]}\");
                {$navitem[8][overimagename]} = newImage(\"themes/$thename/images/{$navitem[8][overimage]}{$navitem[8][imgext]}\");
                header1 = newImage(\"themes/$thename/images/"
    .$currentlang."/headerTopLeft.gif\");
                header2 = newImage(\"themes/$thename/images/"
    .$currentlang."/headerTopCenter.gif\");
                header3 = newImage(\"themes/$thename/images/"
    .$currentlang."/headerTopRight.gif\");
                spacer = newImage(\"themes/$thename/images/"
    .$currentlang."/spacer.gif\");

                preloadFlag = true;
            }
        }

    preloadImages();

    function popupwin(URL, name, properties)
        {
        popChild=window.open(URL, name, properties);
            if(popChild)
                {
                popChild.focus();
                }
        }


    function breakout()
    {
    if (window.top != window.self)
     {
     window.top.location=\"index.php\";
     }
    }

    breakout();

    -->
    </script>
    <body topMargin=0 leftMargin=0>
    <table width=778 border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td><img src=\"themes/$thename/images/"
    .$currentlang."/headerTopLeft.gif\" width=73 height=84></td>
            <td><img src=\"themes/$thename/images/"
    .$currentlang."/headerTopCenter.gif\" width=288 height=84></td>
            <td><img src=\"themes/$thename/images/"
    .$currentlang."/headerTopRight.gif\" width=417 height=84></td>
        </tr>
    </table>
    <table width=778 border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td>
                <img src=\"themes/$thename/images/"
    .$currentlang."/menubarLeftBorder.gif\" width=74 height=24></td>
            <td colspan=3>
                <a href=\"{$navitem[1][hyperlink]}\" $navitem[1][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[1][statustext]}'; changeImages('{$navitem[1][name]}', 'themes/$thename/images/{$navitem[1][overimage]}{$navitem[1][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[1][name]}', 'themes/$thename/images/{$navitem[1][image]}{$navitem[1][imgext]}'); return true;\">
                    <img name=\"{$navitem[1][name]}\" SRC=\"themes/$thename/images/{$navitem[1][image]}{$navitem[1][imgext]}\" width={$navitem[1][imgwidth]} height={$navitem[1][imgheight]} border=0 alt=\"{$navitem[1][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[2][hyperlink]}\" $navitem[2][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[2][statustext]}'; changeImages('{$navitem[2][name]}', 'themes/$thename/images/{$navitem[2][overimage]}{$navitem[2][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[2][name]}', 'themes/$thename/images/{$navitem[2][image]}{$navitem[2][imgext]}'); return true;\">
                    <img name=\"{$navitem[2][name]}\" SRC=\"themes/$thename/images/{$navitem[2][image]}{$navitem[2][imgext]}\" width={$navitem[2][imgwidth]} height={$navitem[2][imgheight]} border=0 alt=\"{$navitem[2][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[3][hyperlink]}\" $navitem[3][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[3][statustext]}'; changeImages('{$navitem[3][name]}', 'themes/$thename/images/{$navitem[3][overimage]}{$navitem[3][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[3][name]}', 'themes/$thename/images/{$navitem[3][image]}{$navitem[3][imgext]}'); return true;\">
                    <img name=\"{$navitem[3][name]}\" SRC=\"themes/$thename/images/{$navitem[3][image]}{$navitem[3][imgext]}\" width={$navitem[3][imgwidth]} height={$navitem[3][imgheight]} border=0 alt=\"{$navitem[3][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[4][hyperlink]}\" $navitem[4][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[4][statustext]}'; changeImages('{$navitem[4][name]}', 'themes/$thename/images/{$navitem[4][overimage]}{$navitem[4][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[4][name]}', 'themes/$thename/images/{$navitem[4][image]}{$navitem[4][imgext]}'); return true;\">
                    <img name=\"{$navitem[4][name]}\" SRC=\"themes/$thename/images/{$navitem[4][image]}{$navitem[4][imgext]}\" width={$navitem[4][imgwidth]} height={$navitem[4][imgheight]} border=0 alt=\"{$navitem[4][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[5][hyperlink]}\" $navitem[5][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[5][statustext]}'; changeImages('{$navitem[5][name]}', 'themes/$thename/images/{$navitem[5][overimage]}{$navitem[5][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[5][name]}', 'themes/$thename/images/{$navitem[5][image]}{$navitem[5][imgext]}'); return true;\">
                    <img name=\"{$navitem[5][name]}\" SRC=\"themes/$thename/images/{$navitem[5][image]}{$navitem[5][imgext]}\" width={$navitem[5][imgwidth]} height={$navitem[5][imgheight]} border=0 alt=\"{$navitem[5][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[6][hyperlink]}\" $navitem[6][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[6][statustext]}'; changeImages('{$navitem[6][name]}', 'themes/$thename/images/{$navitem[6][overimage]}{$navitem[6][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[6][name]}', 'themes/$thename/images/{$navitem[6][image]}{$navitem[6][imgext]}'); return true;\">
                    <img name=\"{$navitem[6][name]}\" SRC=\"themes/$thename/images/{$navitem[6][image]}{$navitem[6][imgext]}\" width={$navitem[6][imgwidth]} height={$navitem[6][imgheight]} border=0 alt=\"{$navitem[6][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[7][hyperlink]}\" $navitem[7][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[7][statustext]}'; changeImages('{$navitem[7][name]}', 'themes/$thename/images/{$navitem[7][overimage]}{$navitem[7][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[7][name]}', 'themes/$thename/images/{$navitem[7][image]}{$navitem[7][imgext]}'); return true;\">
                    <img name=\"{$navitem[7][name]}\" SRC=\"themes/$thename/images/{$navitem[7][image]}{$navitem[7][imgext]}\" width={$navitem[7][imgwidth]} height={$navitem[7][imgheight]} border=0 alt=\"{$navitem[7][alttext]}\"></a></td>
            <td>
                <a href=\"{$navitem[8][hyperlink]}\" $navitem[8][extended]
                    ONMOUSEOVER=\"window.status='{$navitem[8][statustext]}'; changeImages('{$navitem[8][name]}', 'themes/$thename/images/{$navitem[8][overimage]}{$navitem[8][imgext]}'); return true;\"
                    ONMOUSEOUT=\"window.status=''; changeImages('{$navitem[8][name]}', 'themes/$thename/images/{$navitem[8][image]}{$navitem[8][imgext]}'); return true;\">
                    <img name=\"{$navitem[8][name]}\" SRC=\"themes/$thename/images/{$navitem[8][image]}{$navitem[8][imgext]}\" width={$navitem[8][imgwidth]} height={$navitem[8][imgheight]} border=0 alt=\"{$navitem[8][alttext]}\"></a></td>
        </tr>
    </table><table width=778 border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td><img src=\"themes/$thename/images/"
    .$currentlang."/searchBarLeftBorder.gif\" width=74 height=31></td>
            <td><img src=\"themes/$thename/images/"
    .$currentlang."/searchBarLeft.gif\" width=3 height=31></td>
            <td align=right valign=middle nowrap width=100% background=\"themes/$thename/images/"
    .$currentlang."/searchBarFill.gif\" >
                <table border='0'>
                <tr>"
    ;
                    if ($username == "Anonymous")
                    {
                    echo "<form action=\"user.php\" method=\"post\" style=\"margin:0\">\n
                    <td valign=middle align=Left>\n
                    <font class=\"PN-normal\">"
    . _USERNAME." </td><td valign=middle align=Left></font><input style='border: inset 1px $bdrcolor; background : $bgcolor5' type=\"text\" name=\"uname\" size=\"7\" maxlength=\"25\"></td>\n
                    <td valign=middle align=Left>\n
                    <font class=\"PN-normal\">"
    ._PASSWORD." </font></td><td valign=middle align=Left><input style='border: inset 1px $bdrcolor; background : $bgcolor5' type=\"password\" name=\"pass\" size=\"7\" maxlength=\"20\"></td>\n
                    <td valign=middle align=Left>\n
                    <input type=\"hidden\" name=\"module\" value=\"NS-User\">\n
                    <input type=\"hidden\" name=\"op\" value=\"login\">\n
                    <input type=\"hidden\" name=\"URL\" value=\"user.php\">\n
                    <input type=\"submit\" value=\"&nbsp;Login&nbsp;\">\n
                    </td>\n
                    <td nowrap valign=middle align=Left>&nbsp;<a href=\"user.php?op=register&amp;module=NS-NewUser\"><font class=\"PN-normal\">"
    ._CREATEACCOUNT."</font></a></td>\n
                    <td width=100%>&nbsp;</td>\n
                    </form>\n"
    ;

                    }
                    else
                    {
                      echo "<td valign=middle align=left nowrap>&nbsp;&nbsp;<font class=\"PN-normal\">"._WELCOMEBACK. " $username&nbsp;</font>&nbsp;<font class=\"PN-sub\" style=\"color:black\">[";
                      echo ml_ftime(_DATETIMEBRIEF, (GetUserTime(time())));
                      echo "]</font></td><form action=\"user.php?module=NS-User&op=logout\" method=post><td valign=middle align=left><a href=\"user.php?module=NS-User&op=logout\"><input type=\"submit\" value=\"&nbsp;Logout&nbsp;\"></a></td></form><td width=100% valign=middle align=left>&nbsp;</td>\n";
                    }
                echo "<form action=\"modules.php\" method=\"post\" style=\"margin:0\">
                    <td align=right valign=middle class=PN-normal>&nbsp;"
    ._SEARCH."&nbsp;</td>
                    <td valign=middle align=right>
                        <input type=\"hidden\" name=\"name\" value=\"Search\">
                        <input type=\"hidden\" name=\"file\" value=\"index\">
                        <input type=\"hidden\" name=\"op\" value=\"modload\">
                        <input type=\"hidden\" name=\"action\" value=\"search\">
                        <input type=\"hidden\" name=\"overview\" value=\"1\">
                        <input type=\"hidden\" name=\"active_stories\" value=\"1\">
                        <input type=\"hidden\" name=\"bool\" value=\"AND\">                 <input type=\"hidden\" name=\"stories_cat\" value=\"\">
                        <input type=\"hidden\" name=\"stories_topics\" value=\"\">
                        <input type=text class=PN-normal style='border: inset 1px $bdrcolor; background : $bgcolor5' name=q >
                    </td>
                    <td valign=middle align=right>
                        <input style='font-size: 9px' type=\"submit\" value=\"&nbsp;Go&nbsp;\">
                    </td>
                </form>
                </tr>
                </table>
            </td>
            <td><img src=\"themes/$thename/images/"
    .$currentlang."/searchBar.gif\" width=2 height=31></td>
        </tr>
    </table><table width=778 height=\"100%\" border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td align=left valign=top background=\"themes/$thename/images/"
    .$currentlang."/borderLeftFill.gif\">
                <img src=\"themes/$thename/images/"
    .$currentlang."/pageBorderLeft.gif\" width=74 height=608></td>
                <td valign=top>
                <table cellpadding=1><tr><td valign=top><table cellpadding=0><tr><td valign=top>\n"
    ;
                blocks(left);
        echo  "</td><td width=500 valign=top>\n";
        pnBannerDisplay();
        if ($index == 1){
            blocks('centre');
        }
    }
    // ---------------------------------------------- //
    // Footer Section
    // ---------------------------------------------- //

    function themefooter() {

    $tbgcolor1 = "#FFFFFF";

    global $thename;
    global $index;

    if ($index == 1)
    {
        echo "</td><td width=140 valign=top align=center>";
        blocks(right);
    }

        echo "</td></tr></table></td></tr></table>";
        echo "<table width=100% cellpadding=0 cellspacing=0 border=0 bgcolor=$tbgcolor1>
            <tr>
                <td>
                </td>
            </tr>
            </table>"
    ;

        echo"<table width=100% cellpadding=0 cellspacing=0 border=0 bgcolor=$tbgcolor1><tr><td align=center>";
        echo "<hr>";
        footmsg();
        echo "<hr>";
        echo "</td></tr></table>";
        echo "</td></tr></table>";

       echo "<script type=\"text/javascript\" src=\"./modules/ContentExpress/js/menu_com.js\"></script>";
    }

    // ---------------------------------------------- //
    // NEWS Topics Index View...
    // ---------------------------------------------- //

    function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext, $info, $links, $preformat) {
    global $HTTP_GET_VARS;
        //jla
        $tmp= $HTTP_GET_VARS['newlang'];
        if ($tmp == "") {
            $tmp = pnSessionGetVar('lang');
        }
        if ($tmp == "") {
            $tmp = pnConfigGetVar('language');
        }
       
       
        $currentlang = $tmp;
        //echo phpinfo();
        //jla
    $bgcolor6 = "#FFFFFF"; // Article box

    global $thename;
    global $tipath, $anonymous;

    echo"<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
        <tr>
            <td>
                <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
                    <tr>
                        <td background=\"themes/$thename/images/"
    .$currentlang."/spacer.gif\"><img src=\"themes/$thename/images/".$currentlang."/spacer.gif\" width=\"3\" height=\"1\"></td>
                        <td width=\"100%\">
                            <table border=0 width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" bgcolor=$bgcolor6>
                            <tr>
                                <td align=right><img src=\"themes/$thename/images/"
    .$currentlang."/arrows.png\"></td>
                                <td class=\"PN-normal\" height=\"24\" nowrap valign=\"center\">$preformat[catandtitle]</td>
                            </tr>
                            <tr>
                                <td rowspan=3 valign=top align=left>$preformat[searchtopic]</td>
                                <td valign=top align=left><span class=PN-normal>$info[hometext]</span><br><span class=PN-sub>$preformat[notes]</span></td>
                            </tr><td></td>"
    ;
                            echo "<tr>
                                <td align=right colspan=2 nowrap>"
    ;
                                // ------------------------------------------------------------------------
                                //
                                // replace string _READMORE with continue img link in $preformat[more]
                                // it's a bit dirty but it works... (pn7.04 thru pn7.11)

                                $continuebutton = "<img align=right border=0 src=themes/$thename/images/".$currentlang."/continue.png alt=\"Read the rest of the story...\">";
                                $imgmoretemp =ereg_replace(_READMORE, $continuebutton, $preformat[more]);
                                $imgmorelink =ereg_replace('\(.* bytes more)', '', $imgmoretemp);
                                echo "$imgmorelink";

                                // ------------------------------------------------------------------------

                            echo "</td>
                            </tr>
                            </table>
                        </td>
                        <td background=\"themes/$thename/images/"
    .$currentlang."/spacer.gif\"><img src=\"themes/$thename/images/".$currentlang."/spacer.gif.gif\" width=\"3\" height=\"1\"></td>
                    </tr>
                    <tr>
                        <td><img src=\"themes/$thename/images/"
    .$currentlang."/spacer.gif\" width=\"3\" height=\"7\"></td>
                        <td width=\"100%\" background=\"themes/$thename/images/"
    .$currentlang."/spacer.gif\"><img src=\"themes/$thename/images/".$currentlang."/spacer.gif\" width=\"1\" height=\"6\"></td>
                        <td><img src=\"themes/$thename/images/"
    .$currentlang."/spacer.gif\" width=\"3\" height=\"7\"></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <hr width=98%><br>"
    ;
    }

    // ---------------------------------------------- //
    // NEWS Article View...
    // ---------------------------------------------- //

    function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext, $info, $links, $preformat ) {

    global $thename;
    global $admin, $sid, $tipath;
    global $HTTP_GET_VARS;
        //jla
        $tmp= $HTTP_GET_VARS['newlang'];
        if ($tmp == "") {
            $tmp = pnSessionGetVar('lang');
        }
        if ($tmp == "") {
            $tmp = pnConfigGetVar('language');
        }
       
       
        $currentlang = $tmp;
        //echo phpinfo();
        //jla

    echo "<table width=\"100%\" cellpadding=\"5\" cellspacing=\"0\">
        <tr>
        <td align=\"left\" width=\"100%\" class=\"PN-normal\" height=\"22\" nowrap valign=\"center\" background=\"themes/$thename/images/"
    .$currentlang."/ab_tc.gif\">$preformat[catandtitle]<img src=\"themes/$thename/images/".$currentlang."/spacer.gif\" width=\"10\">";
    if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT))
        {
            echo "[ <a href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">"._EDIT."</a>";
            if (pnSecAuthAction(0, 'Stories::', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE))
            {
                echo " | <a href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">"._DELETE."</a>";
            }
            echo " ]<img src=\"themes/$thename/images/".$currentlang."/spacer.gif\" width=\"10\">\n";
        }
    echo "</td>
        </tr>
        <tr>
            <td colspan=2 class=\"PN-sub\" style=\"font:9px\">"
    ._POSTEDBY." $info[informant]";
            echo "&nbsp;|&nbsp"._ON." $info[longdatetime] $timezone\n";
    echo "</td>
        </tr>
        <tr>
            <td valign=top align=left>$preformat[searchtopic]</td>
            <td valign=top align=left width=100%></td>
        </tr>
        <tr>
            <td colspan=2><span class=PN-normal>$preformat[fulltext]</span>
            </td>
        <tr>"
    ;
    //
    // replace string _READMORE with img in $preformat[more] //
    //
        $continuebutton = "<img align=right border=0 src=themes/$thename/images/".$currentlang."/continue.gif>";
        $imgmorelink =ereg_replace(_READMORE, $continuebutton, $preformat[more]);
        $printlink = ereg_replace(_READMORE, "", $preformat[more]);
        $linksplit = split("<",$printlink);
        $numrefs = count($linksplit);
        $i = 0;
            for ($i; $i < $numrefs; ++$i)
                {
                $linksplit[$i] = "<".$linksplit[$i];
                }

        echo"<td colspan=2 nowrap align=right><span class=PN-sub>";
        echo $linksplit[4]." ".$linksplit[5]." ".$linksplit[6];
        echo $linksplit[7]." ".$linksplit[8]." ".$linksplit[9];
        echo"</span>
            </td>
        </tr>
        </tr>
    </table>"
    ;
    }

    // ---------------------------------------------- //
    // Side Column Boxes... simple.
    // ---------------------------------------------- //

    function themesidebox($block) {

    global $thename;
    global $HTTP_GET_VARS;
        //jla
        $tmp= $HTTP_GET_VARS['newlang'];
        if ($tmp == "") {
            $tmp = pnSessionGetVar('lang');
        }
        if ($tmp == "") {
            $tmp = pnConfigGetVar('language');
        }
       
       
        $currentlang = $tmp;
        //echo phpinfo();
        //jla

    if ($block['position'] != 'c')
        {
        echo "<table width=140 border=0 cellpadding=0 cellspacing=0>
            <tr>
                <td>
                    <table width=100% border=0 cellpadding=0 cellspacing=0>
                        <tr>
                            <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_t_tl.png\" width=10 height=6></td>
                            <td width=100% height=6 background=\"themes/$thename/images/"
    .$currentlang."/bloc_t_tfill.png\"></td>
                            <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_t_tr.png\" width=10 height=6></td>
                        </tr>
                    </table>
                    <table width=100% border=0 cellpadding=0 cellspacing=0>
                        <tr>
                            <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_t_l.png\" width=10 height=18></td>
                            <td align=right valign=center nowrap width=100% height=18 background=\"themes/$thename/images/"
    .$currentlang."/bloc_t_fill.png\"><span class=\"PN-sub\"><b>$block[title]</b></span></td>
                            <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_t_r.png\" width=10 height=18></td>
                        </tr>
                    </table>
                    <table width=100% border=0 cellpadding=0 cellspacing=0>
                        <tr>
                            <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_t_bl.png\" width=10 height=6></td>
                            <td width=100% height=6 background=\"themes/$thename/images/"
    .$currentlang."/bloc_t_b_fill.png\"></td>
                            <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_t_br.png\" width=10 height=6></td>
                        </tr>
                    </table>
                    <table width=100% border=0 cellpadding=0 cellspacing=0>
                        <tr>
                            <td background=\"themes/$thename/images/"
    .$currentlang."/bloc_b_l_fill.png\" width=10></td>
                            <td><span class=\"PN-normal\">{$block[content]}</span></td>
                            <td background=\"themes/$thename/images/"
    .$currentlang."/bloc_b_r_fill.png\" width=10></td>
                        </tr>
                    </table>
                <table width=100% border=0 cellpadding=0 cellspacing=0>
                    <tr>
                        <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_b_l.png\" width=10 height=13></td>
                        <td width=100% height=13 background=\"themes/$thename/images/"
    .$currentlang."/bloc_b_fill.png\"></td>
                        <td><img src=\"themes/$thename/images/"
    .$currentlang."/bloc_b_r.png\" width=10 height=13></td>
                    </tr>
                </table>
            </td>
            </tr>
        </table>\n"
    ;
        }
        else // center blocks (aka. admin messages)
        {
        echo "<table width=100%>\n"
        ."<tr><td align=left><span class=\"PN-normal\">{$block[content]}</span></td></tr>\n"
        ."</table><br>\n";
        }
    }

    ?>
  • Can anyone help me find the right line of code in my previous post?
  • bump
  • Found it:

    Code

    cellpadding=0><tr><td valign=top>\n";
                blocks(left);
        echo  "
    </td><td width=500 valign=top>\n";
        pnBannerDisplay();
        if ($index == 1){
            blocks('centre');
        }
    }
    // ---------------------------------------------- //
    // Footer Section
    // ---------------------------------------------- //


    Changed the 500 to 2000. Seems to have worked.
  • where did you get that theme at?

This list is based on users active over the last 60 minutes.