Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2007
Posts: 15
S
stranger
stranger
S Offline
Joined: Sep 2007
Posts: 15
I am having problem adding the google code to a custom island in 7.2.2 i get the following error

---
Parse error: parse error, unexpected '<' in /var/www/vhosts/realitytvchatter.com/httpdocs/board/cache_builders/custom/portal_box_2.php on line 9
---

I have this in the custom box:

---
/* PHP CODE HERE, IF NECESSARY */

/* DO NOT CHANGE THE LINE BELOW */
$body = <<<EOF
EOF;
/* DO NOT CHANGE THE LINE ABOVE */

<script type="text/javascript"><!--
google_ad_client = "pub-4694387705191686";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "CCCC66";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
---

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
put your <script>...</script> BETWEEN the <<<EOF and the EOF; lines smile

Joined: Sep 2007
Posts: 15
S
stranger
stranger
S Offline
Joined: Sep 2007
Posts: 15
Thank you


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 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)