Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2004
Posts: 193
S
sb
Offline
member
member
S Offline
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
R
Former Developer
Former Developer
R Offline
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
S
sb
Offline
member
member
S Offline
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you do your custom PHP code above the $body == <<<EOF line wink

example:

PHP Code
/* PHP CODE HERE */
$sd = 'Sirdude';
$hi = 'hi '.$sd;

/* BODY HERE */
$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
SD Offline
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 wink

i guess you're 'speshul' and would enjoy happy 1234567890 day then laugh

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.


- Allen
- ThreadsDev | PraiseCafe
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,124 guests, and 219 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 20240501)