|
|
Joined: Jun 2006
Posts: 33
newbie
|
newbie
Joined: Jun 2006
Posts: 33 |
How do I insert HTML into a custom portal island? Currently I get this error message: Parse error: syntax error, unexpected '<' in /home/realtune/public_html/forums/cache_builders/custom/portal_box_1.php on line 3 I thought it supported HTML? Is it only PHP it allows you to enter?
|
|
|
|
Joined: Dec 2003
Posts: 6,567 Likes: 78
|
Joined: Dec 2003
Posts: 6,567 Likes: 78 |
You need to place the html between the eof tags. Think of it like the ubb code tags.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
Ruben, always beating me to it, lol.
|
|
|
|
Joined: Dec 2003
Posts: 6,567 Likes: 78
|
Joined: Dec 2003
Posts: 6,567 Likes: 78 |
Been kinda out of touch. Playing with my xmas server and redoing my desk layout.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 33
newbie
|
newbie
Joined: Jun 2006
Posts: 33 |
|
|
|
|
Joined: Jun 2006
Posts: 33
newbie
|
newbie
Joined: Jun 2006
Posts: 33 |
I spoke to soon Ok, this is what I'm entering into my custom portal island: /*
<a href="http://www.*****.org/forum/fpage.php?page/contactus/">Contact Us</a><br>
<a href="http://www.*****.org/forum/fpage.php?page/About/">About *****.org</a><br>
*/
$body = <<<EOF
EOF; But the island remains empty?
|
|
|
|
Joined: Dec 2003
Posts: 6,567 Likes: 78
|
Joined: Dec 2003
Posts: 6,567 Likes: 78 |
wrong: /* <a href="http://www.*****.org/forum/fpage.php?page/contactus/">Contact Us</a><br> <a href="http://www.*****.org/forum/fpage.php?page/About/">About *****.org</a><br> */ $body = <<<EOF EOF; Correct would be like: /* PHP CODE HERE */
/* BODY HERE */ $body = <<<EOF <a href="http://www.*****.org/forum/fpage.php?page/contactus/">Contact Us</a><br> <a href="http://www.*****.org/forum/fpage.php?page/About/">About *****.org</a><br> EOF;
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
It needs to be like this...
$body = <<<EOF
/*
<a href="http://www.*****.org/forum/fpage.php?page/contactus/">Contact Us</a><br>
<a href="http://www.*****.org/forum/fpage.php?page/About/">About *****.org</a><br>
*/
EOF;
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Ruben strikes again
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
I gotta mess with his keyboard so he cant beat us
|
|
|
|
Joined: Jun 2006
Posts: 33
newbie
|
newbie
Joined: Jun 2006
Posts: 33 |
It needs to be like this...
$body = <<<EOF
/*
<a href="http://www.*****.org/forum/fpage.php?page/contactus/">Contact Us</a><br>
<a href="http://www.*****.org/forum/fpage.php?page/About/">About *****.org</a><br>
*/
EOF;
This one worked Rubens didn't, still got a parse error. Thanks again guys
|
|
|
|
Joined: Dec 2003
Posts: 6,567 Likes: 78
|
Joined: Dec 2003
Posts: 6,567 Likes: 78 |
Okay I assumed the */ was because your replaced some of the default comments in the island. Meaning such as "/* BODY HERE */" Since you did not post the entire island code in the post.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 33
newbie
|
newbie
Joined: Jun 2006
Posts: 33 |
Okay I assumed the */ was because your replaced some of the default comments in the island. Meaning such as "/* BODY HERE */" Since you did not post the entire island code in the post. I did, that was the entire code I was posting, albeit incorrectly
|
|
|
|
Joined: Jan 2008
Posts: 514
addict
|
addict
Joined: Jan 2008
Posts: 514 |
LOL I actually saw him on and said nope Ruben is faster than I am Dunny
|
|
|
|
Joined: Dec 2003
Posts: 6,567 Likes: 78
|
Joined: Dec 2003
Posts: 6,567 Likes: 78 |
Okay I see someone visited this post and it started to bug me. The default code that would be in a custom Island is: /* PHP CODE HERE */
/* BODY HERE */
$body = <<<EOF
EOF; If you wanted to add some html only it would be something like: /* PHP CODE HERE */
/* BODY HERE */
$body = <<<EOF
<a href="http://www.mindraven.com/hosting/aff.php?aff=002"><img src="http://www.mindraven.com/banners/mindraven_125_125.gif" width="200" height="125" border="5"></a>
EOF; I don't have a clue how the the other stuff got included from other posts here such as /* or */ but that just don't work.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Test
by Phun - 05/28/2024 7:31 PM
|
|
0 members (),
441
guests, and
174
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|