Hello, I am have a formatting issue with a new module I am creating. It seems as if the footer and right blocks are not formating correctly. I think it may having something to do with way I have added html through echo commands in my file.
I have read the idiots guide and search for this problem on the forums for about an hour and have not seen any topics on it.
For the life of me I can't figure it out. Can someone take a quick look?
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
if(!isset($mainfile)){
include("mainfile.php");
}
$index = 1;
include("header.php");
OpenTable();
echo "<p align='center'><b><br>\n";
echo "SPONSORSHIP OPPORTUNITIES</b></p>\n";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
echo "<tr>\n";
echo "<td bgcolor='#383838'><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n";
echo "<tr>\n";
echo "<td bgcolor='#000000'><table width='100%' border='0' cellspacing='1' cellpadding='0'>\n";
echo "<tr>\n";
echo "<td height='30' background='themes/MissionImpossible/images/cellpic3.gif' bgcolor='#383838'><table width='100%' border='0' cellspacing='0' cellpadding='4'>\n";
echo "<tr>\n";
echo "<td><font class='block-title'><strong>Nightmare\n";
echo "TITLESPONSOR $10,000</strong></font></td>\n";
echo "</tr>\n";
echo "</table></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td bgcolor='#383838'><table width='100%' border='0' cellspacing='0' cellpadding='4'>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<ul>\n";
echo "<li><font class='content'>Company patch on Game Uniform\n";
echo "(Nightmare Team Provided)</font></li>\n";
echo "<li><font class='content'>Corporate Banner at all\n";
echo "Spokane Nightmare home games (scoreboard), player\n";
echo "appearances and special events</font></li>\n";
echo "<li><font class='content'>Title recognition on all\n";
echo "printed materials & marketing collateral and media spots</font></li>\n";
echo "<li><font class='content'>Sign-up and literature tables\n";
echo "at all Nightmare home games</font></li>\n";
echo "<li><font class='content'>Company Logo on all Spokane\n";
echo "Nightmare printed materials</font></li>\n";
echo "<li><font class='content'>Company Logo printed on all\n";
echo "team promotional merchandise</font></li>\n";
echo "<li><font class='content'>Logo on the front cover of the\n";
echo "Nightmare media guide</font></li>\n";
echo "<li><font class='content'>Logo and ad on the back of all\n";
echo "Nightmare game tickets</font></li>\n";
echo "<li><font class='content'>100 Season tickets & media\n";
echo "guides to give to your valued partners and employees</font></li>\n";
echo "<li><font class='content'>Your promotional merchandise\n";
echo "at all our games and events</font></li>\n";
echo "<li><font class='content'>Your involvement announced\n";
echo "several times at our games and radio shows</font></li>\n";
echo "<li><font class='content'>Links from our Official Team\n";
echo "Website</font></li>\n";
echo "<li><font class='content'>Title sponsorship recognition\n";
echo "at all Spokane Nightmare special events</font></li>\n";
echo "<li><font class='content'>Team appearances at your\n";
echo "corporate events</font></li>\n";
echo "<li><font class='content'>Spokane Nightmare\n";
echo "commemorative plaque</font></li>\n";
echo "<li><font class='content'>Signed, Spokane Nightmare\n";
echo "league issued football & Commemorative team jersey<br>\n";
echo "<br>&</font></li>\n";
echo "</ul>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td height='26' background='themes/MissionImpossible/images/cellpic1.gif' bgcolor='#272727'>&</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "\n";
CloseTable();
include("footer.php");
[/quote]
Thank you for your time in advance
Last edited by ryndog on Tue Jun 10, 2003 4:12 pm; edited 2 times in total
ryndog Corporal
Joined: Apr 29, 2003
Posts: 58
Location: USA
Posted:
Tue Jun 10, 2003 4:04 pm
OMG... Im sorry. Im in the 'BLOCKS' section. Can someone move this to the 'MODULES' forum. Sorry about that admins.
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Tue Jun 10, 2003 5:50 pm
Before I try to answer this, there is a much easier way . Instead of all the echo statements, just use regular html like this SINCE YOU ARE NOT USING PHP IN YOUR Html. Then see if you can find the maistake
Code:
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
Ok thanks. I ran across that too. I've changed it. I spend a few hours comparing and messing with the tables to try and get it to format right, with no avail. Im alright when it comes to HTML, however tables confuse me sometimes.
Still show up with the same format problems, seems the main HTML im putting in is in a table with the right blocks and footer.
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
if(!isset($mainfile)){
include("mainfile.php");
}
$index = 1;
include("header.php");
OpenTable();
?>
<p align="center"><b><br>
SPONSORSHIP OPPORTUNITIES</b></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#383838"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="30" background="themes/MissionImpossible/images/cellpic3.gif" bgcolor="#383838"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td><font class="block-title"><strong>Nightmare
TITLESPONSOR $10,000</strong></font></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#383838"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td>
<ul>
<li><font class="content">Company patch on Game Uniform
(Nightmare Team Provided)</font></li>
<li><font class="content">Corporate Banner at all
Spokane Nightmare home games (scoreboard), player
appearances and special events</font></li>
<li><font class="content">Title recognition on all
printed materials & marketing collateral and media spots</font></li>
<li><font class="content">Sign-up and literature tables
at all Nightmare home games</font></li>
<li><font class="content">Company Logo on all Spokane
Nightmare printed materials</font></li>
<li><font class="content">Company Logo printed on all
team promotional merchandise</font></li>
<li><font class="content">Logo on the front cover of the
Nightmare media guide</font></li>
<li><font class="content">Logo and ad on the back of all
Nightmare game tickets</font></li>
<li><font class="content">100 Season tickets & media
guides to give to your valued partners and employees</font></li>
<li><font class="content">Your promotional merchandise
at all our games and events</font></li>
<li><font class="content">Your involvement announced
several times at our games and radio shows</font></li>
<li><font class="content">Links from our Official Team
Website</font></li>
<li><font class="content">Title sponsorship recognition
at all Spokane Nightmare special events</font></li>
<li><font class="content">Team appearances at your
corporate events</font></li>
<li><font class="content">Spokane Nightmare
commemorative plaque</font></li>
<li><font class="content">Signed, Spokane Nightmare
league issued football & Commemorative team jersey<br>
<br>&</font></li>
</ul>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="26" background="themes/MissionImpossible/images/cellpic1.gif" bgcolor="#272727">&</td>
</tr>
</table>
</table>
<?
CloseTable();
include("footer.php");
?>
Thanks again.
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Tue Jun 10, 2003 7:49 pm
You will have to figure out where, but you have 5 table open tags and only 4 table close tags Shouldn't be that hard
Thanks for the hint. Im glad you didn't point it straight out. Got it working. Your awesome Raven. I rememebr you helped me back about 4 months ago with another issue I was having when I go tinto php nuke. Thanks again.
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