Author
Message
max77 New Member Joined: Aug 30, 2009 Posts: 2
Posted:
Sun Aug 30, 2009 7:40 am
Hey I have moved to raven nuke for my CMS just got my php nuke theme added to it an its working 99% I got 1 small table problem..
after the header the left & right side of my theme are cut off by the left, right & center blocks I know its something simple just cant fig it out
You can see what I mean with these links:
PHP-Nuke with the theme fully working no errors
Raven Nuke with the PHP-Nuke theme with the table error
If you cant see what I mean look down the sides of both sites one has the working edging an the raven nuke dont
Theme: AOG_Andromeda
Here is the theme.php
Code:
<?php
/************************************************************/
/* Theme Colors Definition */
/************************************************************/
$bgcolor1 = "#02131F";
$bgcolor2 = "#02131F";
$bgcolor3 = "#02131F";
$bgcolor4 = "#02131F";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";
/************************************************************/
/* OpenTable Functions */
/************************************************************/
function OpenTable() {
global $bgcolor1, $bgcolor2;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="38"><img src="themes/AOG_Andromeda/images/blocks_03.jpg" width="38" height="63"></td>
<td background="themes/AOG_Andromeda/images/blocks_04.jpg"><img src="themes/AOG_Andromeda/images/blocks_04.jpg" width="1" height="63"></td>
<td width="43"><img src="themes/AOG_Andromeda/images/blocks_06.jpg" width="43" height="63"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14" background="themes/AOG_Andromeda/images/blocks_08.jpg"><img src="themes/AOG_Andromeda/images/blocks_08.jpg" width="14" height="1"></td>
<td bgcolor="#02131f" align="center">
<?
}
function CloseTable() {
?>
</td>
<td width="15" background="themes/AOG_Andromeda/images/blocks_11.jpg"><img src="themes/AOG_Andromeda/images/blocks_11.jpg" width="15" height="1"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="39"><img src="themes/AOG_Andromeda/images/blocks_14.jpg" width="39" height="58"></td>
<td background="themes/AOG_Andromeda/images/blocks_15.jpg"><img src="themes/AOG_Andromeda/images/blocks_15.jpg" width="1" height="58"></td>
<td width="41"><img src="themes/AOG_Andromeda/images/blocks_17.jpg" width="41" height="58"></td>
</tr>
</table>
<?
}
function OpenTable2() {
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\"><tr><td class=extra>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* FormatStory */
/************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if (!empty($notes)) {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<span class=\"content\" color=\"#505050\">$thetext$notes</span>\n";
} else {
if(!empty($informant)) {
if(is_array($informant)) {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant[0]\">$informant[1]</a> ";
} else {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
}
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<span class=\"content\" color=\"#505050\">$boxstuff</span>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $cookie, $prefix, $sitekey, $db, $name, $banners;
cookiedecode($user);
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$username = $cookie[1];
if (empty($username)) {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";
if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><input class=noborder type=\"text\" name=\"username\" value=\"username\" onFocus=\"if(this.value=='username')this.value='';\" value style=\"width:100;height:14;\"> <input type=\"password\" class=noborder name=\"user_password\" value=\"password\" onFocus=\"if(this.value=='password')this.value='';\" value style=\"width:100;height:18;\"> <input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"image\" value=\"login\" class=noborder src=\"themes/AOG_Andromeda/images/login.gif\" border=\"0\"></TD></form>\n";
} else {
$theuser = " </TD>\n";
}
include_once("themes/AOG_Andromeda/header.php");
echo "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"middle\">\n";
echo " <tr valign =\"top\">\n";
echo " <td valign =\"top\">\n";
echo " <td style=\"width: 25px; background-image: url(themes/AOG_Andromeda/images/sides_02.jpg)\" valign =\"top\"><img src=\"themes/AOG_Andromeda/images/spacer.gif\" width=\"25\" height=\"1\" border=\"0\" alt=\"\"></td>\n";
echo " <td valign =\"top\">\n";
//if($name!=Forums AND $name!=Private_Messages AND $name!=Members_List AND $name!=coppermine)
// {
blocks("left");
// }
echo " </td>\n";
echo " <td style=\"width: 5;\" valign =\"top\"><img src=\"themes/AOG_Andromeda/images/spacer.gif\" alt=\"\" width=\"5\" height=\"1\" border=\"0\"></td>\n";
echo " <td width=\"100%\">\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $index, $user, $banners, $cookie, $prefix, $db, $dbi, $foot1, $foot2, $foot3;
if (defined('INDEX_FILE')) {
echo " </td>\n";
echo " <td style=\"width: 5;\" valign =\"top\"><img src=\"themes/AOG_Andromeda/images/spacer.gif\" alt=\"\" width=\"5\" height=\"1\" border=\"0\"></td>\n";
echo " <td width=\"100%\">\n";
blocks("right");
}
echo " </td>\n";
echo " <td valign =\"top\">\n";
echo " <td style=\"width: 25px; background-image: url(themes/AOG_Andromeda/images/sides_04.jpg)\" valign =\"top\"><img src=\"themes/AOG_Andromeda/images/spacer.gif\" alt=\"\" width=\"25\" height=\"1\"></td>\n";
echo " </tr>\n";
echo "</table>\n";
$footer_message = "$foot1<br>$foot2<br>$foot3";
include("themes/AOG_Andromeda/footer.php");
}
/************************************************************/
/* Function themeindex() */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "<br><br><b>Admin's Comment:</b> $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ";
//End Code Change
$tmpl_file = "themes/AOG_Andromeda/story_home.htm";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>Admin's Comment:</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/AOG_Andromeda/story_page.htm";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($title, $content, $bid=0) {
$tmpl_file = "themes/AOG_Andromeda/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
Palbin Site Admin Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Sun Aug 30, 2009 10:40 am
Have you asked over at Maybe one of the other guys here can help, but I can't see anything wrong.
As a side note this theme is poorly written, It has double use of html, head, and body tags.
max77 New Member Joined: Aug 30, 2009 Posts: 2
Posted:
Sun Aug 30, 2009 12:03 pm
Ok thanx i'll just keep messing with it lolz
If any other member could fix this or knows how to fix please reply
Palbin Site Admin Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Sun Aug 30, 2009 4:29 pm
This is just a FF issue it appears some what ok on IE 8
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