Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2007
Posts: 26
A
journeyman
journeyman
A Offline
Joined: Mar 2007
Posts: 26
I am trying to add some static HTML to a Custom Portal Island and I keep getting parse errors. When I open the editor, I see this:
Code
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */

$body = <<<EOF

EOF;
/* DO NOT CHANGE THE LINE ABOVE */;

Where should I put the HTML snippet? When I add it to the $body, I get parsing errors, even when I surround it with quotes. I am a PHP dork, so please bear with me.

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
Example:

Quote
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */

$body = <<<EOF

<a href="/link1.php">Link 1</a><br>
<a href="/link2.php">Link 2</a><br>


EOF;
/* DO NOT CHANGE THE LINE ABOVE */

smile

Joined: Mar 2007
Posts: 26
A
journeyman
journeyman
A Offline
Joined: Mar 2007
Posts: 26
Thanks!

*grumble* The only permutation that I didn't try. *grumble*

Last edited by ajwharton; 03/05/2007 2:58 PM.

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 298 guests, and 124 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)