>>  Site Map >>  Forums >>  Themes 6x

Forum module - topics in forum:



Themes 6x - Discussions regarding PHP-Nuke Themes.



Making theme full screen

Hey,

I have just downloaded a theme..but it is one that isn't full screen.

See it here

Here is the theme.php could some edited it for me so it makes it full screen?

Code: :

<?php

$bgcolor1 = "#CCCCCC";
$bgcolor2 = "#000000";
$bgcolor3 = "#E5E6E6";
$bgcolor4 = "#E5E6E6";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

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

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
   if($informant != "") {
       $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES. "$thetext\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/

function themeheader() {
    global $banners, $name; 
    echo "<body bgcolor=\"#ecf0f6\" text=\"#000000\" link=\"000000\"><br>\n";
    if ($banners) {
   include("banners.php");
   echo "<br>";
    }

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E5E6E6\" width=\"80\" align=\"center\">\n"

    ."<tr><td width=\"800\" height=\"15\" valign=\"bottom\">\n"
   ."<img border=\"0\" src=\"themes/Portale3000_Dragonball/images/bar_up.gif\" width=\"800\" height=\"15\">"


    ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
   ."<tr><td width=\"100%\" height=\"60\" bgcolor=\"#E5E6E6\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/Portale3000_Dragonball/images/logo.jpg\" alt=\"Powered by Portale3000.iT\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"

   ."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"15\" valign=\"bottom\">\n"
   ."<a href=\"index.php\"><img src=\"themes/Portale3000_Dragonball/images/home.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=Your_Account\"><img src=\"themes/Portale3000_Dragonball/images/dati.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=Downloads\"><img src=\"themes/Portale3000_Dragonball/images/download.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=GuestBook\"><img src=\"themes/Portale3000_Dragonball/images/guestbook.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=Web_Links\"><img src=\"themes/Portale3000_Dragonball/images/weblinks.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=Topics\"><img src=\"themes/Portale3000_Dragonball/images/topics.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=Forums\"><img src=\"themes/Portale3000_Dragonball/images/forum.gif\" border=\"0\"></a>"
."<a href=\"modules.php?name=Feedback\"><img src=\"themes/Portale3000_Dragonball/images/contatti.gif\" border=\"0\"></a>"
."<a href=\"admin.php\"><img src=\"themes/Portale3000_Dragonball/images/admin.gif\" border=\"0\"></a>"

   ."</td></tr></table>\n"
   ."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#A6BBE3'>\n"
   ."<tr><td bgcolor=\"#E5E6E6\"><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr>\n";   
    echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"#E5E6E6\" cellspacing=\"0\" border=\"0\">\n"
   ."<tr valign=\"top\">\n"
   ."<td><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
   ."<td width=\"130\" bgcolor=\"#E5E6E6\" valign=\"top\">\n";
 
   if ($name=='Forums') {}
   else if ($name=='Members_List') {}
   else if ($name=='Private_Messages') {}
   else {
    blocks(left);
   }
   
    echo "</td><td><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index;
    echo "<br>";
    if ($index == 1) {
   echo "</td><td><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"130\" bgcolor=\"#E5E6E6\">\n";
   blocks(right);
   echo "<td><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\">";
    }
 else {
   echo "</td><td colspan=\"2\"><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
style=\"border-collapse: collapse\" bordercolor=\"#CCCCCC\" width=\"100%\"
bgcolor=\"#CCCCCC\"><tr><td width=\"100%\">"
   ."<br><center>";
    footmsg();
    echo "</center></table></table></table>";
}


function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#CCCCCC\">\n"
   ."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"><tr>\n"
   ."<td background=\"themes/Portale3000_Dragonball/images/header_news.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
   ."<tr><td colspan=\"2\" bgcolor=\"#CCCCCC\">\n"
   ."<table border=\"0\" width=\"98%\" bgcolor=\"#CCCCCC\" align=\"center\"><tr><td>\n"
   ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td bgcolor=\"#CCCCCC\" align=\"left\">\n"
    ."&nbsp"
   ."<b><font class=\"tiny\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " "._ON." $time $timezone <br>&nbsp($counter "._READS.")</font>\n"
   ."<font class=\"content\">$morelink</font></center>\n"
   ."<img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" border=\"0\" height=\"1\">"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td background=\"themes/Portale3000_Dragonball/images/header_news_down.gif\" width=\"100%\" height=\"15\"></tr>"
   ."<tr><td bgcolor=\"#A6BBE3\"><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n";
   echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#CCCCCC\">\n"
   ."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\">"
   ."<tr><td background=\"themes/Portale3000_Dragonball/images/header_news_articles.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b>&nbsp;&nbsp;&nbsp;&nbsp;$title</b></font></td></tr>\n"
   ."<tr><td colspan=\"2\" bgcolor=\"#CCCCCC\"><br>\n"
   ."<table border=\"0\" width=\"98%\" bgcolor=\"#CCCCCC\" align=\"center\"><tr><td>\n"
   ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table><br>\n"
   ."</td></tr>\n"
   ."</table></td></tr>\n"
   ."<tr><td background=\"themes/Portale3000_Dragonball/images/header_news_down_articles.gif\" width=\"100%\" height=\"15\"></tr>"
   ."<tr><td bgcolor=\"#E5E6E6\"><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}

function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"130\" cellpadding=\"0\" cellspacing=\"0\">"
   
   ."<tr><td background=\"themes/Portale3000_Dragonball/images/header.gif\" width=\"130\" height=\"16\">"
   ."&nbsp;<font color=\"#000000\"><b>$title</b></font>"
   ."</td></tr><tr><td><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"100%\" height=\"1\"></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"130\">\n"
   ."<tr><td width=\"130\" bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"130\">\n"
   ."<tr><td background=\"themes/Portale3000_Dragonball/images/back1.gif\" width=\"130\" bgcolor=\"#CCCCCC\">\n"
   ."$content"
   ."</td></tr></table></td></tr><td background=\"themes/Portale3000_Dragonball/images/header_down.gif\" width=\"130\" height=\"16\"></td><tr><td><img src=\"themes/Portale3000_Dragonball/images/pixel.gif\" width=\"130\" height=\"4\"></td></tr></table>";
}

?>


Thanx

Andy






Find any 800 and change them to 100%




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS