Previous Thread
Next Thread
Print Thread
Hop To
Joined: Nov 2004
Posts: 198
L
Member
Member
L Offline
Joined: Nov 2004
Posts: 198
I'm running: UBB.classic™ 6.7.3

I would like to add Google AdSense to the Forum Introduction, but get errors.
Any idea what UBB doesn't like?

Here's the code:

Code
<script type="text/javascript"><!--
google_ad_client = "pub-7565496474848949";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Member since November 2004
Gold Member since Feb 2008
Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
what kinda errors? Got a link to them?


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2004
Posts: 198
L
Member
Member
L Offline
Joined: Nov 2004
Posts: 198
There is no complaint from UBB when I insert the HTML, and none from UBB when I view the page.
The result is:
1. It's simply blank where the ads should be
2. IE status bar shows "Done, but errors on page"

When you double click the IE error Icon, you get a popup desctibing the error.
Please try it and tell me what you think:

http://www.game-master.net/cgi-bin/ultimatebb.cgi


Member since November 2004
Gold Member since Feb 2008
Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
hmm...

I don't get an error, I do see <br /> tags within the javascript tags, you may remove all that and keep it on one line. The forum intro box is probably adding the br's, so you may need to try it all on one line.

If you are adding it to your forum intro box, that box may not work with javascript, you might consider adding it to the bottom of your header include.


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2004
Posts: 198
L
Member
Member
L Offline
Joined: Nov 2004
Posts: 198
Hi Allen,

Well I see this thread over at UBBDev to which you replied to:
https://www.ubbdev.com/forums/ubbthreads.php/ubb/showflat/Number/311367/Main/39017

So I’m guessing it’s always been a problem and this is the workaround.
Now, my questions is: how do I do what’s in the article with UBB.classic™ 6.7.3?

I don’t seem to have Custom Islands, or it wasn’t clear form the explanation.
Under Content Islands, I have “Add a new Content Island”, and under that I have:
Select New Island Type:
  • New posts in one or all forums
  • New topics in one or all forums
  • Recent visitors for the board or all forums
  • Latest registered and approved users


Could you help by walking me through this process please?


Member since November 2004
Gold Member since Feb 2008
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
This is for UBB.Threads 7.0 only, not UBB.Classic.

As for the ads, I don't know why they woudln't work "out of the box" on your ubb.classic install, on my site (see signature, UBB.Classic 6.7.2) I used to just have my google adsense in both my header and footer (see style options)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2004
Posts: 198
L
Member
Member
L Offline
Joined: Nov 2004
Posts: 198
Well we're getting closer. Adding it to the Style Set seems to work, it's just adding it to the forum introductions chokes.
Unfortunatly the Forum Intro is the perfect place.


Member since November 2004
Gold Member since Feb 2008
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
I hacked it in that area on my forums through editing templates :/


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2004
Posts: 198
L
Member
Member
L Offline
Joined: Nov 2004
Posts: 198
[]I hacked it in that area on my forums through editing templates :/ [/]

Well that's wonderful!! Tell me how please <img src="https://www.ubbcentral.com/boards/images/graemlins/laugh.gif" alt="" />
What file do I hack.


Member since November 2004
Gold Member since Feb 2008
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
file(S), and open up your templates directory (noncgi/templates) and start editing files lol... Youc an tell what templates to edit by looking at the URL of that page (for example, ultimatebb.cgi?ubb=get_daily is public_daily_topics.pl).

You could also hire a developer (myself included) to do the modifications for you.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2004
Posts: 198
L
Member
Member
L Offline
Joined: Nov 2004
Posts: 198
Thanks Gizmo. I got some help and haxored it <img src="https://www.ubbcentral.com/boards/images/graemlins/laugh.gif" alt="" />
Seems to work just fine, now I'm just tweaking for looks.


Member since November 2004
Gold Member since Feb 2008
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Not a problem, gimme a hollar should you need anything hehe


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

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
0 members (), 166 guests, and 137 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)