| Author |
Message |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Fri May 16, 2003 9:37 pm |
  |
I think I understand the concept of modules, don't know enough php I'm afraid, but I'm learning daily.
I can't figure out though how to keep the blocks on the right, header footer adn left are there, but where is the code to display the right ones.
Ta |
_________________ www.TheOlderGamers.com |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun May 18, 2003 7:35 pm |
  |
In your module, add this line somewhere near the top:
$index = 1;
That will display the right blocks  |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Fri May 23, 2003 2:47 am |
  |
I'm afraid that doesn't seem to work:
This is my current code for my test module
| Code: |
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$index = 1;
require_once("mainfile.php");
include("header.php");
echo ("<h2>This is basic HTML</h2>");
?>
<div align="center"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="72" height="690">&</td>
<td width="100%" valign="top" bgcolor="#003399"><!--DWLayoutEmptyCell-->&</td>
<td width="90">&</td>
</tr><tr><td height="1"><img src="spacer.gif" alt="" width="72" height="1"></td><td></td><td><img src="spacer.gif" alt="" width="90" height="1"></td></tr>
</table>
</body>
|
|
_________________ www.TheOlderGamers.com |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 2:59 am |
  |
Try getting rid of the /body tag. The $index=1; is the only correct way to do what you want. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 3:08 am |
  |
Also, wrap your code in an OpenTable(); and CloseTable(); wrapper, like this
| Code: |
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$index = 1;
require_once("mainfile.php");
include("header.php");
OpenTable();
echo ("<h2>This is basic HTML</h2>");
?>
<div align="center"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="72" height="690"> </td>
<td width="100%" valign="top" bgcolor="#003399"><!--DWLayoutEmptyCell--> </td>
<td width="90"> </td>
</tr><tr><td height="1"><img src="spacer.gif" alt="" width="72" height="1"></td><td></td><td><img src="spacer.gif" alt="" width="90" height="1"></td></tr>
</table>
<?CloseTable();?> |
|
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Last edited by Raven on Fri May 23, 2003 7:07 pm; edited 2 times in total |
|
    |
 |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Fri May 23, 2003 5:52 pm |
  |
Hmm, I get an error on line 24 which is
OpenTable():
I moved it underneath the
?>
Then it shows up as text
What is the purpose of opentable, is it a html or php?
I cant find it in the php function list.  |
_________________ www.TheOlderGamers.com |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 5:55 pm |
  |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 5:58 pm |
  |
Oops! Theres a typo in my code. OpenTable() has to have a ';' after it, not a ':'. Sorry! I corrected my post. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Fri May 23, 2003 6:02 pm |
  |
Yeah that seems to have fixed that one, I get a plain square border around it now, but I still dont have my right hand blocks ? |
_________________ www.TheOlderGamers.com |
|
    |
 |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Fri May 23, 2003 6:09 pm |
  |
Also
What are the ampersand symbols supposed to do, as they actually show up as text
&</td>
I removed them, do they serve a purpose? |
_________________ www.TheOlderGamers.com |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Fri May 23, 2003 7:06 pm |
  |
|
    |
 |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Sat May 24, 2003 4:56 pm |
  |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat May 24, 2003 5:17 pm |
  |
Oops! Forgot a line. Make your last line
| Code: |
| <?CloseTable();include("footer.php");?> |
|
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Father
Lieutenant


Joined: Apr 30, 2003
Posts: 165
Location: Australia
|
Posted:
Sat May 24, 2003 6:19 pm |
  |
Thanks Mate, glad you know what you're doing That worked!
To make things even harder, how can I now add the graphics surrounding the blocks (top and bottom ones) to this centre one as well.
So instead of just having the square border around it it looks like a big block?
I'm starting to feel bad about all these questions I bombard upon you
Cheers |
_________________ www.TheOlderGamers.com |
|
    |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sat May 24, 2003 6:22 pm |
  |
If it's just standard HTML, then just continue adding you HTML as you would normally. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
|
|