| Author |
Message |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Sep 08, 2004 10:19 am |
|
I'm attempting to make my first centre block.
Each year on 10 September I put candle and memorium for 9/11 and all people all over the world that have lost loved ones thru a terrorist attack.
This year because I now have a Nuke site, I want to put it in a top centre block. But I'm having trouble.
Can someone help me please?
Here's the error I'm getting when I want to view the block before activating it
| Quote: | | Parse error: parse error, unexpected T_STRING in /home/minicity/public_html/nuke/html/blocks/block-Candle_Block.php on line 6 |
And here's my block file:
| Quote: |
<?php
if (eregi("block-Candle_Block.php",$_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
$content = "<center><img src="http://www.minicitymag.com/images/candle.gif"><br><br>In memory of all those who have lost their lives through terrorist attacks
around the world.<br><br>Our thoughts to all those that have lost a
child, parent, grandparent, friend and loved ones.<br><br>After 9/11
mCm remembers that dreadful day each year by lighting a candle of
rememberance to everyone in any country that has suffered from
terrorist attacks, and each year there are more countries who are being
attacked. Is anything really worth all the mass slaughter that is
happening</center>";
?>
|
For the life of me I can't see that I've missed a closing } or "; anything else lol
I'd be really grateful if someone could point me in the right direction |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Sep 08, 2004 10:35 am |
|
You have not escaped the qouotes within quotes. Use \" on all quotes except the beginning and ending ones  |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Sep 08, 2004 10:39 am |
|
OIC
lol
thank you Raven.
Just to clarify cos I'm not the brightest of bunnies, I have to put this right? :
$content = "<center><img src=\"http://www.minicitymag.com/images/candle.gif\"><br><br>In memory of all those who have lost their lives through terrorist attacks
around the world.<br><br>Our thoughts to all those that have lost a
child, parent, grandparent, friend and loved ones.<br><br>After 9/11
mCm remembers that dreadful day each year by lighting a candle of
rememberance to everyone in any country that has suffered from
terrorist attacks, and each year there are more countries who are being
attacked. Is anything really worth all the mass slaughter that is
happening</center>";
is that what you mean? (sorry)
Edit
Woohoo! It works! It works rofl
Thank you Rave ((((((((((((((Smoooooooooooch)))))))))))))
sorry got carried away ! lol |
Last edited by Muffin on Wed Sep 08, 2004 10:48 am; edited 1 time in total |
|
|
 |
Tao_Man Involved


Joined: Jul 15, 2004 Posts: 252 Location: OKC, OK
|
Posted:
Wed Sep 08, 2004 10:44 am |
|
Nailed it in one!
That is what he was talking about. |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Sep 08, 2004 10:49 am |
|
Ooops you posted after I edited my post rofl
hehehehe
Thank you!
Wanna nuvver kiss? huh? huh? lol |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Sep 08, 2004 11:23 am |
|
Always  |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Sep 08, 2004 4:21 pm |
|
|
|
 |
|
|
|
|