Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
Carryconcealed
Hangin' Around



Joined: Jan 31, 2004
Posts: 35

PostPosted: Wed Feb 11, 2004 8:41 pm Reply with quote

I am trying to make a table so that my site logo is on the far left and banners are displayed on the far right at the top of my site.

Here are lines 52 to 74 of my theme.php file:

function themeheader() {
global $prefix, $dbi, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
echo "<body bgcolor=\"$bgcolor1\">";
if ($banners
== 1) {
include("banners.php");
}
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bienvenida = "Hello $username! [ <a href=\"modules.php?name=Your_Account&amp;op=logout\"><b>Logout</b></a> ]";
} else {
$bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">Create an Account</a> | <a href=\"account.html\">User Login</a>";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "<center><a href=\"index.php\"><img src=\"themes/Sand_Journey/images/LogoLeft.gif\" alt=\"CarryConcealed.com - The Carry Concealed Weapon (CCW) Law Information Resource Site\" title=\"CarryConcealed.com - The Carry Concealed Weapon (CCW) Law Information Resource Site\" border=\"0\"></a><br><br></center>"

Now I want to move the info regarding the logoleft and the banners into a table together. But when I tried it my page was screwed up. Not sure if the table can be created where the logo info is and move the banners or move the logo info to where the banners are and create the table there.

Anyways, if I could use plain HTML I could create the table easily enough, but I am not sure how to do it in PHP or what all needs to be moved for the banners info.
 
View user's profile Send private message Send e-mail
Carryconcealed







PostPosted: Thu Feb 12, 2004 8:12 am Reply with quote

Here is what I have tried but can't seem to get to work:

function themeheader() {
global $prefix, $dbi, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
echo "<body bgcolor=\"$bgcolor1\">";
}
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bienvenida = "Hello $username! [ <a href=\"modules.php?name=Your_Account&amp;op=logout\"><b>Logout</b></a> ]";
} else {
$bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">Create an Account</a> | <a href=\"account.html\">User Login</a>";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo
."<table border=\"0 cellpadding=\"0\" cellspacing=\"1\" width=\"100%\" align=\"left\">\n"
."<tr><td bgcolor=\"$bgcolor2\" align=\"left\" width=\"50%\"><a href=\"index.php\"><img src=\"themes/Sand_Journey/images/LogoLeft.gif\" alt=\"CarryConcealed.com - The Carry Concealed Weapon (CCW) Law Information Resource Site\" title=\"CarryConcealed.com - The Carry Concealed Weapon (CCW) Law Information Resource Site\" border=\"0\"></a></td>"
."<td bgcolor=\"$bgcolor2\" align=\"right\" width=\"50%\">if ($banners
== 1) {
include("banners.php")</td></tr></table>"

<br>

</center>"
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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 ©