Previous Thread
Next Thread
Print Thread
Hop To
#233158 01/03/2010 3:01 PM
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:

Code
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,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Ruben, always beating me to it, lol.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
Thanks guys!

Joined: Jun 2006
Posts: 33
newbie
newbie
Joined: Jun 2006
Posts: 33
I spoke to soon blush

Ok, this is what I'm entering into my custom portal island:



Code
/*
<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,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
wrong:
Quote
/*
<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:
Quote
/* 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
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
It needs to be like this... smile

Code


$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
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Ruben strikes again wink

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I gotta mess with his keyboard so he cant beat us tongue

Joined: Jun 2006
Posts: 33
newbie
newbie
Joined: Jun 2006
Posts: 33
Originally Posted by driv
It needs to be like this... smile

Code


$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 smile Rubens didn't, still got a parse error.

Thanks again guys smile

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
Originally Posted by Ruben
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 smile

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 tongue


Dunny

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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:
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
EOF;

If you wanted to add some html only it would be something like:
Code
/* 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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)