Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (daudvegas, Dunny, Pilgrim), 41 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/09/07
Posts: 193
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
capnbob 7
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#129852 - 08/30/06 04:09 PM Adding Google AdSense to UBB.classic
luket Offline
member
Registered: 11/09/04
Posts: 191
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
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#129853 - 08/30/06 11:52 PM Re: Adding Google AdSense to UBB.classic
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
what kinda errors? Got a link to them?
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#129854 - 08/31/06 03:39 PM Re: Adding Google AdSense to UBB.classic
luket Offline
member
Registered: 11/09/04
Posts: 191
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
Top
#129855 - 09/01/06 10:46 AM Re: Adding Google AdSense to UBB.classic
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
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
Top
#129856 - 09/01/06 07:56 PM Re: Adding Google AdSense to UBB.classic
luket Offline
member
Registered: 11/09/04
Posts: 191
Hi Allen,

Well I see this thread over at UBBDev to which you replied to:
http://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
Top
#129857 - 09/01/06 08:50 PM Re: Adding Google AdSense to UBB.classic
Gizmo Offline

Registered: 06/05/06
Posts: 14993
Loc: Portland, OR; USA
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)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#129858 - 09/01/06 11:05 PM Re: Adding Google AdSense to UBB.classic
luket Offline
member
Registered: 11/09/04
Posts: 191
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
Top
#129859 - 09/02/06 02:38 AM Re: Adding Google AdSense to UBB.classic
Gizmo Offline

Registered: 06/05/06
Posts: 14993
Loc: Portland, OR; USA
I hacked it in that area on my forums through editing templates :/
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#129860 - 09/03/06 01:12 PM Re: Adding Google AdSense to UBB.classic
luket Offline
member
Registered: 11/09/04
Posts: 191
Quote:

I hacked it in that area on my forums through editing templates :/




Well that's wonderful!! Tell me how please
What file do I hack.
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#129861 - 09/03/06 06:28 PM Re: Adding Google AdSense to UBB.classic
Gizmo Offline

Registered: 06/05/06
Posts: 14993
Loc: Portland, OR; USA
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.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#129862 - 09/04/06 03:46 PM Re: Adding Google AdSense to UBB.classic
luket Offline
member
Registered: 11/09/04
Posts: 191
Thanks Gizmo. I got some help and haxored it
Seems to work just fine, now I'm just tweaking for looks.
_________________________
Member since November 2004
Gold Member since Feb 2008
Top
#129863 - 09/04/06 09:54 PM Re: Adding Google AdSense to UBB.classic
Gizmo Offline

Registered: 06/05/06
Posts: 14993
Loc: Portland, OR; USA
Not a problem, gimme a hollar should you need anything hehe
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Island Permissions
by ThreadsUser
Yesterday at 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Running ads
by Jeffdag
05/17/12 01:47 PM
Forum Stats
10484 Members
36 Forums
33834 Topics
181678 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image