Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2004
Posts: 4
H
stranger
stranger
H Offline
Joined: Jan 2004
Posts: 4
Hi there... I've just signed up with google ads, and I'd like to place the ads in the intro section of each forum and in the forum introduction area on the main page.

When I copy and paste the provided google code in there, the ads do not show up. Nothing shows up.

However, when I paste the code in the Header HTML in the HTML Inserts section, the ads show up ok.. but I don't really like the placement of the ads.

My site is here: http://www.ehmac.ca/

Any ideas? Thanks for you help. I hope to earn money with the ads, to move to the Eve platform. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
The trick is slightly altering the ad code in two ways.

First - all the Javascript needs to go on one line. This is because the Forum Intro field is treated like a post, and HTML will be inserted at every new line.

Second - the HTML comments at the beginning and end of the script tags need to be removed.

For example, you'd turn this...

Code
<script>
< !--
var this = that;
var etc = etc;
// -->
</script>
<script src="ads.google.com..."></script>
... into this...

Code
<script>var this = that; var etc = etc; </script>
<script src="ads.google.com..."></script>
Of course, the real thing will look a little different.

One major problem with this, however, is that Forum Intro text only shows up when browsing the list of topics, not when inside the topics themselves. This will really limit the pageviews you get.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jan 2004
Posts: 4
H
stranger
stranger
H Offline
Joined: Jan 2004
Posts: 4
Thanks Charles... huge help as always!

I'll probably keep the ads in the Header HTML, so that they show up in forum topics as well.

Thanks again.

Anonymous
Unregistered
Anonymous
Unregistered
Hey Charles,

Just starting to learn, had someone else install our board way back when. Have an older version of the bboard 6.2.1.2 .

Would also like to install the google Ads in the Header HTML. What would the page be listed under,
Cant seem to find it in any of the folders?

Thank you for taking the time.

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
It's the same procedure, just the Styles are in a different location - choose the "Style Templates" entry from the "Primary Settings" dropdown. It's at the very bottom of the dropdown... you may need to scroll it.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]

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 (Havenofsobriety), 176 guests, and 163 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)