|
|
Joined: Jan 2004
Posts: 193
member
|
member
Joined: Jan 2004
Posts: 193 |
We are trying to input this code into an island: <a target="_blank" href="http://www.shareasale.com/r.cfm?b=159983&u=226681&m=20509&urllink=&afftrack="> <img src="http://www.shareasale.com/image/120x90_storelight.jpg" alt="American Vision" border="0"></a>
but we keep getting errors similar to: Parse error: syntax error, unexpected '<' in /homepages/26/d222149051/htdocs/sites/christians-in-recovery.org/www/members/forums/cache_builders/custom/portal_box_9.php on line 6
How can we get UBB to accept our code?
Thank you.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Make sure you are putting that in between the echo <<<EOF and EOF; lines. If it's above or below those, then you'll get an error.
|
|
|
|
Joined: Jan 2004
Posts: 193
member
|
member
Joined: Jan 2004
Posts: 193 |
Thanks Rick ! That fixed it.
|
|
|
|
Joined: Feb 2007
Posts: 1,294 Likes: 2
Veteran
|
Veteran
Joined: Feb 2007
Posts: 1,294 Likes: 2 |
On the same note I have never got PHP code to work in a custom island or box. When ever I place any type PHP code in it gives me an error similar to his.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
you do your custom PHP code above the $body == <<<EOF line example: $sd = 'Sirdude';
$hi = 'hi '.$sd;
$body = <<<EOF
<center>
$hi
</center>
EOF;
|
|
|
|
Joined: Feb 2007
Posts: 1,294 Likes: 2
Veteran
|
Veteran
Joined: Feb 2007
Posts: 1,294 Likes: 2 |
Ummm, Yeah, I can read, and actually write functioning programs, However they will not work in the UBB.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
'the UBB' -- ooooookay.. well i can say for all UBBs i use, it works i guess you're 'speshul' and would enjoy happy 1234567890 day then
|
|
|
|
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
|
Pooh-Bah
Joined: Dec 2003
Posts: 1,796 |
It works in the ubb's I've been around.
|
|
|
|
Joined: Dec 2003
Posts: 6,566 Likes: 78
|
Joined: Dec 2003
Posts: 6,566 Likes: 78 |
Maybe when ver8 evolves there will be a island builder dialog. For php and html.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
2 members (Ruben, ahmed047),
776
guests, and
161
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|