Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
paranor
Worker
Worker



Joined: Aug 28, 2003
Posts: 227

PostPosted: Mon Oct 20, 2003 10:34 am Reply with quote

I would like to change my theme to have a white background. But I only see color codes for the tables, etc. Any pointers?

<?php

/************************************************************/
/* Theme Name: XPOlive */
/* Theme Developers: Rick Bennett and mikem */
/* version 2.0 */
/* Cleaned, Enhanced and modified by: */
/* mikem (http://www.nukemods.com) */
/* */
/* Copyright Notice */
/* - THIS PACKAGE IS NOT RELEASED AS GPL/GNU SCRIPTING. */
/* - Our Package name and link MUST REMAIN in the credit */
/* footer of all Nuke generated pages. */
/* Translations are permitted, not renaming. */
/* - This package CAN NOT be ported without written */
/* permission. */
/* - This package CAN NOT be mirrored without written */
/* permission. */
/* - Use of this package requires that credits to the */
/* original PHPNuke remain in all site generated */
/* page footers. */
/************************************************************/

/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/

$bgcolor1 = "#ECE9D8";
$bgcolor2 = "#C0D0A1";
$bgcolor3 = "#ECE9D8";
$bgcolor4 = "#C0D0A1";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

/************************************************************/
/* OpenTable Functions */
/* */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to */
/* properly close our tables. The difference is that */
/* OpenTable has a 100% width and OpenTable2 has a width */
/* according with the table content */
/************************************************************/

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";
}

/************************************************************/
/* FormatStory */
/* */
/* Here we'll format the look of the stories in our site. */
/* If you dig a little on the function you will notice that */
/* we set different stuff for anonymous, admin and users */
/* when displaying the story. */
/************************************************************/

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\" color=\"#505050\">$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 .= "<font class=\"content\">".writes." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}

/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/

function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#ECE9D8\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n\n";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" bgcolor=\"#C0D0A1\">\n"
."<tr>\n"
."<td bgcolor=\"#ffffff\" align=\"left\" valign=\"top\" width=\"100%\"><a href=\"index.php\"><img src=\"themes/XPOlive/images/raphlogoaddr.jpg\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a><img src=\"images/header/sign.jpg\" align=\"right\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></td>\n"
."<td width=\"35%\" align=\"right\" class=\"menuehead\">\n";
if ($banners) {
include("banners.php");
}
echo "</td>\n"
."</tr></table>\n"
."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#ECE9D8\">\n"
."<tr>\n"
."<td bgcolor=\"#ECE9D8\" colspan=\"4\"><IMG src=\"themes/XPOlive/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr valign=\"middle\" bgcolor=\"#ECE9D8\">\n"
."<td align=\"left\" valign=\"top\" width=\"8\" height=\"22\"><img src=\"themes/XPOlive/images/topnav-left.gif\"></td>\n"
."<td width=\"175\" background=\"themes/XPOlive/images/topnav-bg.gif\" nowrap><font class=\"content\" color=\"#363636\">\n";
if ($username == "Anonymous") {
echo "&nbsp;&nbsp;Welcome Guest\n";
} else {
echo "&nbsp;&nbsp;Welcome $username! <a href=\"account-logout.html\">logout</a>";
}
echo "</font></td>\n"
."<td align=\"center\" height=\"20\" background=\"themes/XPOlive/images/topnav-bg.gif\"><font class=\"content\">\n"
."</font>\n"
."</td>\n"
."<td align=\"left\" valign=\"top\" width=\"8\" height=\"22\"><img src=\"themes/XPOlive/images/topnav-left.gif\"></td>\n"
."<td align=\"right\" width=\"125\" background=\"themes/XPOlive/images/topnav-bg.gif\"><font class=\"content\">\n"
."<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script></font>&nbsp;</td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#ECE9D8\" colspan=\"5\"><IMG src=\"themes/XPOlive/images/pixel.gif\" width=\"1\" height=\"3\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#ACA899\" colspan=\"5\"><IMG src=\"themes/XPOlive/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."<tr>\n"
."<td bgcolor=\"#716F64\" colspan=\"5\"><IMG src=\"themes/XPOlive/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
."</tr>\n"
."</table>\n"
."<!----- Begin Main Content Table ----->\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ECE9D8\" align=\"center\"><tr valign=\"top\">\n"
."<td bgcolor=\"#C0D0A1\"><img src=\"themes/XPOlive/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td bgcolor=\"#C0D0A1\" width=\"175\" valign=\"top\">\n";
blocks(left);
echo "</td><td bgcolor=\"#C0D0A1\"><img src=\"themes/XPOlive/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td bgcolor=\"#ECE9D8\"><img src=\"themes/XPOlive/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"100%\">\n";
$public_msg = public_message();
echo "$public_msg<br>";
}

/************************************************************/
/* 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;
if ($index == 1) {
echo "</td><td><img src=\"themes/XPOlive/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
blocks(right);
}
echo "</td><td bgcolor=\"#ECE9D8\"><img src=\"themes/XPOlive/images/pixel.gif\" width=10 height=1 border=0 alt=\"\">\n"
."</td></tr></table>\n"
."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#C0D0A1\" align=\"center\">\n"
."<tr align=\"center\">\n"
."<td width=\"100%\" colspan=\"3\">\n";
footmsg();
echo "</td>\n"
."</tr></table>\n";
}

/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
}

/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ECE9D8\" width=\"100%\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#C0D0A1\" width=\"100%\"><tr><td align=\"left\">\n"
."<font class=\"option\" color=\"#363636\"><b>$title</b></font><br>\n"
."<font class=\"content\">"._POSTEDON." $datetime "._BY." ";
formatAidHeader($aid);
if (is_admin($admin)) {
echo "<br>[ <a href=\"admin.php?op=EditStory&amp;sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&amp;sid=$sid\">"._DELETE."</a> ]\n";
}
echo "</td></tr></table></td></tr></table><br>";
echo "<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
FormatStory($thetext, $notes="", $aid, $informant);
echo "</td></tr></table><br>\n\n\n";
}

/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/

function themesidebox($title, $content) {
if (@file_exists($content)) {
$fp = fopen ($content, "r");
$content = fread($fp, filesize($content));
fclose ($fp);
$content = "?>$content<?";
$content = eval($content);
} else if (eregi("^http", $content)) {
$fp = fopen ($content, "r");
$content = fread($fp, 65535);
fclose ($fp);
}
echo "<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
."<tr>\n"
."<td align=\"left\" valign=\"top\" width=\"26\" height=\"30\"><img src=\"themes/XPOlive/images/sidebox-title-left.gif\"></td>\n"
."<td align=\"left\" valign=\"middle\" background=\"themes/XPOlive/images/sidebox-title-bg.gif\" width=\"143\" height=\"30\">\n"
."<font class=\"option\" color=\"#ffffff\">&nbsp;&nbsp;<b>$title</b></font></td>\n"
."<td align=\"left\" valign=\"top\" width=\"6\" height=\"30\"><img src=\"themes/XPOlive/images/sidebox-title-right.gif\"></td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."</tr>\n"
."</table>\n\n"
."<!----- Side Box Content ----->\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\">\n"
."<tr valign=\"top\">\n"
."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/XPOlive/images/sidebox-bar-left.gif\"><img src=\"themes/XPOlive/images/sidebox-bar-px.gif\"></td>\n"

."<td bgcolor=\"#FFFFFF\" width=\"166\" align=\"left\" valign=\"top\">\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"166\">\n"
."<tr>\n"
."<td>\n"
."$content\n"
."</td>\n"
."</tr>\n"
."</table>\n"
."</td>\n"
."<td width=\"4\" align=\"left\" valign=\"top\" background=\"themes/XPOlive/images/sidebox-bar-right.gif\"><img src=\"themes/XPOlive/images/sidebox-bar-px.gif\"></td>\n"
."</tr></table>\n"

."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"175\">\n"
."<tr>\n"
."<td align=\"left\" valign=\"top\" width=\"175\" height=\"29\">\n"
."<img src=\"themes/XPOlive/images/sidebox-bottom.gif\">\n"
."</td>\n"
."</tr>\n"
."</table>\n\n\n";
}

?>
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Oct 20, 2003 10:39 am Reply with quote

Have you tried changing this line
Code:
echo "<body bgcolor=\"#ECE9D8\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n\n"; 
to
Code:
echo "<body bgcolor=\"#FFFFFF\" topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\">\n\n";
 
View user's profile Send private message
paranor







PostPosted: Mon Oct 20, 2003 10:58 am Reply with quote

No go.
 
Raven







PostPosted: Mon Oct 20, 2003 11:30 am Reply with quote

Interesting. I'm assuming the code listed above is your theme.php file. I modified mine as I suggested to you and it changed the background of mine. Look in your styles/style.css to see if there's a background tag overriding the themes.php file.
 
paranor







PostPosted: Mon Oct 20, 2003 12:35 pm Reply with quote

I did too which is why I'm confused!

I changed the CSS files and no go.

I did put the entire theme in this directory (I love the DOCUMENTS module!)

http://www.ravenwebhosting.com/~strapha/modules.php?name=Documents&file=index&start=Documentation&target=

XPOLIVE
 
paranor







PostPosted: Mon Oct 20, 2003 12:58 pm Reply with quote

Right now my site (www.ravenwebhosting.com/~strapha) does have it's tables white via the index.php file in the theme. But I was looking for a white background and then the tan colored tables. I can't find the part that makes the background tan.
 
Raven







PostPosted: Mon Oct 20, 2003 1:20 pm Reply with quote

Do a find and replace on #C0D0A1 and #ECE9D8 to #FFFFFF.
 
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Mon Oct 20, 2003 4:48 pm Reply with quote

what theme are you trying to edit and also to change the back ground color you ussually edit the tables.php file
Thanks
Fury
 
View user's profile Send private message
paranor







PostPosted: Mon Oct 20, 2003 9:12 pm Reply with quote

XPOlive is the theme and it only has the one php file.

But thanks to Raven I was able to figure it out. Now...to tweak it. Smile
 
fury







PostPosted: Tue Oct 21, 2003 2:31 pm Reply with quote

i dont know how it only has 1 php file. but i am looking into downloading that theme.
 
paranor







PostPosted: Tue Oct 21, 2003 9:21 pm Reply with quote

yup. just "theme.php"
 
fury







PostPosted: Tue Oct 21, 2003 10:06 pm Reply with quote

Can you zip it up and send it to me for this is interesting. send me a Pm of the link.
Thanks
Fury
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©