Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Wed Sep 08, 2004 10:19 am Reply with quote

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

_________________
Classic Mini rules the bends & bends the rules!
[img] 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Wed Sep 08, 2004 10:35 am Reply with quote

You have not escaped the qouotes within quotes. Use \" on all quotes except the beginning and ending ones Wink
 
View user's profile Send private message
Muffin
PostPosted: Wed Sep 08, 2004 10:39 am Reply with quote

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
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Wed Sep 08, 2004 10:44 am Reply with quote

Nailed it in one!
That is what he was talking about.

_________________
------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it! 
View user's profile Send private message Visit poster's website
Muffin
PostPosted: Wed Sep 08, 2004 10:49 am Reply with quote

Ooops you posted after I edited my post rofl

hehehehe

Thank you!

Wanna nuvver kiss? huh? huh? lol
 
Raven
PostPosted: Wed Sep 08, 2004 11:23 am Reply with quote

Always Wink
 
Muffin
PostPosted: Wed Sep 08, 2004 4:21 pm Reply with quote

ROTFL
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©