PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
max77
New Member
New Member


Joined: Aug 30, 2009
Posts: 2

PostPosted: Sun Aug 30, 2009 7:40 am Reply with quote Back to top

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
Only registered users can see links on this board!
Get registered or login to the forums!


Raven Nuke with the PHP-Nuke theme with the table error
Only registered users can see links on this board!
Get registered or login to the forums!


If you cant see what I mean look down the sides of both sites one has the working edging an the raven nuke dont Sad

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&amp;op=userinfo&amp;username=$informant[0]\">$informant[1]</a> ";
            } else {
               $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;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;\">&nbsp;&nbsp;&nbsp;<input type=\"password\" class=noborder name=\"user_password\" value=\"password\" onFocus=\"if(this.value=='password')this.value='';\" value style=\"width:100;height:18;\">&nbsp;&nbsp;<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 = "&nbsp;</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&amp;op=userinfo&amp;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&amp;op=userinfo&amp;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;
}
?>
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Aug 30, 2009 10:40 am Reply with quote Back to top

Have you asked over at
Only registered users can see links on this board!
Get registered or login to the forums!
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.
View user's profile Send private message
max77
New Member
New Member


Joined: Aug 30, 2009
Posts: 2

PostPosted: Sun Aug 30, 2009 12:03 pm Reply with quote Back to top

Sad Ok thanx i'll just keep messing with it lolz

If any other member could fix this or knows how to fix please reply Smile
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Aug 30, 2009 4:29 pm Reply with quote Back to top

This is just a FF issue it appears some what ok on IE 8
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum