Previous Thread
Next Thread
Print Thread
Hop To
#216650 08/29/2008 2:28 AM
Joined: Aug 2008
Posts: 4
S
stranger
stranger
S Offline
Joined: Aug 2008
Posts: 4
Hey-- I'm new to this stuff, and I need to insert a custom island to my forums with Google AdSense. I've created a Custom Island (I used Island 3), changed the title to "Site Sponsor", and inserted this text into the box:


/* BODY HERE */

$body = <<<EOF

<script type="text/javascript"><!--
google_ad_client = "pub-0599284166073617";
/* Forum Right */
google_ad_slot = "5971298024";
google_ad_width = 125;
google_ad_height = 125;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

EOF;


The ads aren't appearing, and the island title still says "Portal Box 3"

What am I doing wrong? Should there be some php code in there? Truthfully, I"m not even sure what it would be. I'm a total noob.

Joined: Aug 2008
Posts: 4
S
stranger
stranger
S Offline
Joined: Aug 2008
Posts: 4
Also, why do I get "Error reading RSS data." when i tell it to update the Custom Island?

Huge thanks for any help!

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Hmm, the main thing is to make sure there are no spaces after the <<<EOF and EOF; lines. I'd check on that first.

As for the Error you are getting. This sounds like maybe one of your other custom islands. Do you have another one that has anything to do with RSS stuff?

Rick #216661 08/29/2008 6:18 PM
Joined: Aug 2008
Posts: 4
S
stranger
stranger
S Offline
Joined: Aug 2008
Posts: 4
nope, no spaces. I get that error anytime I try to update the Island after inserting the above code. Do I need to have some sort of PHP code?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Well, it could all be related to this error: Error reading RSS data. That's not part of the default code, so I'm assuming that's coming from one of your other portal boxes. I'd try and get that one resolved first.

For the adsense one you don't need any php code, just what you posted.

Rick #216716 09/02/2008 3:02 AM
Joined: Aug 2008
Posts: 4
S
stranger
stranger
S Offline
Joined: Aug 2008
Posts: 4
I found out what RSS feed was causing the issues and I killed it. Thanks for your help everybody!



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
0 members (), 396 guests, and 110 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)