PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  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
Carryconcealed
Hangin' Around


Joined: Jan 31, 2004
Posts: 35

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

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=\"modules.php?name=Your_Account\">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
Hangin' Around


Joined: Jan 31, 2004
Posts: 35

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

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=\"modules.php?name=Your_Account\">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>"
View user's profile Send private message Send e-mail
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