PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
thesportsvoice
Client


Joined: Feb 26, 2004
Posts: 115

PostPosted: Mon Mar 29, 2004 12:43 pm Reply with quote Back to top

The banner appears in the upper part of the site and I would like to move it over to the right of the logo in the header. What step do I take to make this possible?
View user's profile Send private message Visit poster's website
thesportsvoice
Client


Joined: Feb 26, 2004
Posts: 115

PostPosted: Mon Mar 29, 2004 1:09 pm Reply with quote Back to top

Ok I read that I need to replace the line but where do I located it?

if ($banners) {
include("banners.php");
echo "<br>";
}

Code:
************************************************************/
/* Function themeheader()                                   */
/************************************************************/

function themeheader() {
    global $banners;
    echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\">"
   ."<br>";
if ($banners) {
   include("banners.php");
   echo "<br>";
    }

   
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"left\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
   ."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n"
   ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td><td align=\"right\"><img border=\"0\" src=\"themes/DeepBlue/images/logo-graphic.gif\"></td></tr></table></td></tr>\n"
   ."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n"

   ."<a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/home.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/DeepBlue/images/account.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"downloads.html\"><img border=\"0\" src=\"themes/DeepBlue/images/downloads.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"submit.html\"><img border=\"0\" src=\"themes/DeepBlue/images/submit.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"topics.html\"><img border=\"0\" src=\"themes/DeepBlue/images/topics.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"top.html\"><img border=\"0\" src=\"themes/DeepBlue/images/top10.gif\" width=\"140\" height=\"18\"></a>"
   ."</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#d3e2ea\">\n"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#d3e2ea'>\n"
;
    $public_msg = public_message();
    echo "$public_msg<br>";
    echo "</td></tr></table><table width=\"840\" cellpadding=\"0\" bgcolor=\"d3e2ea\" cellspacing=\"0\" border=\"0\">\n"
   ."<tr valign=\"top\">\n"
   ."<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
   ."<td width=\"138\" bgcolor=\"d3e2ea\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
View user's profile Send private message Visit poster's website
thesportsvoice
Client


Joined: Feb 26, 2004
Posts: 115

PostPosted: Wed Mar 31, 2004 8:41 am Reply with quote Back to top

Up
View user's profile Send private message Visit poster's website
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Wed Mar 31, 2004 9:10 am Reply with quote Back to top

Code:
<?php
$bgcolor1 = "#ffffff";
$bgcolor2 = "#9cbee6";
$bgcolor3 = "#d3e2ea";
$bgcolor4 = "#0E3259";
$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=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

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

function themeheader() {
    global $banners;
    echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\">"
   ."<br>";
    #if ($banners) {
   #include("banners.php");
   #echo "<br>";
    #}
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
   ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
   ."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n";
   echo "<table border=0 width=100% cellpadding=0 cellspacing=0><tr ><td align=\"left\"><a href=\"index.php\">";
   echo "<img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Welcome to OpenMax!\" hspace=\"20\"></a></td><td align=\"right\"></td>";
    if ($banners) {
      echo "<td align=\"left\" width=\"75%\">";
      include("banners.php");
      echo "</td>";
   }
   echo "</tr></table></td></tr>\n";
   echo "<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n"
   ."<a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/home.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/DeepBlue/images/account.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"downloads.html\"><img border=\"0\" src=\"themes/DeepBlue/images/downloads.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"submit.html\"><img border=\"0\" src=\"themes/DeepBlue/images/submit.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"topics.html\"><img border=\"0\" src=\"themes/DeepBlue/images/topics.gif\" width=\"140\" height=\"18\"></a>"
   ."<a href=\"top.html\"><img border=\"0\" src=\"themes/DeepBlue/images/top10.gif\" width=\"140\" height=\"18\"></a>"
   ."</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#d3e2ea\">\n"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#d3e2ea'>\n";
    $public_msg = public_message();
    echo "$public_msg<br>";   
    echo "</td></tr></table><table width=\"840\" cellpadding=\"0\" bgcolor=\"d3e2ea\" cellspacing=\"0\" border=\"0\">\n"
   ."<tr valign=\"top\">\n"
   ."<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
   ."<td width=\"138\" bgcolor=\"d3e2ea\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" 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/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"d3e2ea\">\n";
   blocks(right);
   echo "<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
    } else {
   echo "</td><td colspan=\"2\"><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
   ."<br><center>";
    footmsg();
    echo "</center>";
}


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 bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
   ."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
   ."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
   ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
   ."<a href=\"article-topic-.html$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><tr><td bgcolor=\"#FFFFFF\" align=\"center\">\n"
   ."<font class=\"tiny\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " "._ON." $time $timezone ($counter "._READS.")<br></font>\n"
   ."<font class=\"content\">$morelink</font></center><br>\n"
   ."<img src=\"themes/DeepBlue/images/pixel.gif\" border=\"0\" height=\"3\">\n"
   ."</td></tr></table>\n"
   ."</td></tr></table><br>\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 bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
   ."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
   ."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
   ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
   ."<a href=\"article-topic-.html$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></table>\n"
   ."</td></tr></table><br><br>\n";
}

function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
   ."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
   ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>$title</b></font>"
   ."</td></tr><tr><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"138\">\n"
   ."<tr><td width=\"138\" bgcolor=\"#ffffff\">\n"
   ."$content"
   ."</td></tr></table></td></tr></table><br>";
}

?>




use this in your theme.php instead.. it should work fine
View user's profile Send private message Visit poster's website
thesportsvoice
Client


Joined: Feb 26, 2004
Posts: 115

PostPosted: Wed Mar 31, 2004 4:52 pm Reply with quote Back to top

jaded - thank you very much! it worked like a charm Mr. Green
View user's profile Send private message Visit poster's website
jaded
Theme Guru


Joined: Nov 01, 2003
Posts: 1006

PostPosted: Wed Mar 31, 2004 5:38 pm Reply with quote Back to top

you are most welcome
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16986
Location: Kansas

PostPosted: Wed Mar 31, 2004 5:48 pm Reply with quote Back to top

Just a shameless plug from Raven.

Jaded is a VERY talented young lady and I highly recommend her for everything theme and graphic wise. However, stay away from her hosting Laughing Wink (competitor you know)
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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.

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