UBB.Dev
Posted By: Dalantech Google Add Sense add on for Threads 6.5 - 10/19/2004 8:21 PM
What is it? It's a template and hack instructions to add Google Adsense advertising to your web site. This hack also allows you to control what forums ads are displayed in from the control panel. Hope you like it

Edit 27 Oct 04: I changed the installation instructions a little. Instead of editing the language files for the showflat and showthreaded pages it makes more sense to ad the language string for the sponsor text to the generic.php file. I added Google Adsense ads to the transition pages on my site and realized that I could just put the sponsor text string in the generic.php language file, so that no matter where I put the Adsense script the language string would automatically be there. I also updated the instructions so you can put Adsense adds on your transition pages

Edited 15 Dec 05: Fixed a typo in the instructions for the showflat and showthreaded template.

Attached File
121655-AddSense.zip  (139 downloads)
Posted By: DrChaos Re: Google Add Sense add on for Threads 6.5 - 10/19/2004 8:33 PM
You are a GOD!.

I swear I was just going to post about what to do. Since my 6.5 upgradeage, It just does not display... Im going to add on the IIP page again tonight. Thats where I had it displayed. I was up to something like 65.00 already
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 10/19/2004 8:34 PM
I was hoping that I wasn't the only one in need of that hack -thanks for the props!

I just uploaded a new version -check to see if you have a "Facelift" directory under /templates/default -if you do then you have the latest version.
Nice one again, thanks for all the hard work
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 10/20/2004 10:16 PM
Anytime

I have one more mod to release, but I'm taking a little break. I'll probably have it online this weekend
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 10/27/2004 3:20 PM
Updated to add support for the transition pages that pop up after a post
Your site is looking great
FYI your signature URL is pointing to an invalid page
Thanks for the hack
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 10/27/2004 7:23 PM
-and I just asked Josh to change the link in the logo here and I didn't change it in my own signature! Thanks for letting me know (fixed) and thanks for the props!
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 10/27/2004 7:25 PM
[]ChAoS said:
Your site is looking great[/]

I like the color scheme that you use on the Emerald Forest!
Thankyou,you made me some table wrappers (where is that in the mod index?) at one time but on the server I was using it made the pages slow and now they are a bit too neon for what I am using now but I really like the look of your page.
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 10/27/2004 9:01 PM
Odd that it would slow down your page load times -those graphics are pretty small...
Posted By: flumpydog Re: Google Add Sense add on for Threads 6.5 - 12/13/2004 9:45 PM
Hi,

Great job on the mod! I just installed it and thought I would give you a headsup on aa few typos. I also have a couple questions.

In the instructions, you have a couple spots listed as $addsense instead of $adsense for modifying showflat.tmpl and showthreaded.tmpl.

For modifying gen_display.tmpl, you have ADDSENSE_1 and ADDSENSE_2 instead of ADSENSE_1 and ADDSENSE_2

Now to the tough stuff

How exactly do you use this mod and control the placement of the goodle ads? I have a vertical skyscraper as well as some horizontal ads, just not sure about placement?

What can be done to make the ads appear on the "Entrance" page for IIP in one of the customboxes?

Best Wishes,
Chuck
Posted By: AKD96 Re: Google Add Sense add on for Threads 6.5 - 12/14/2004 5:26 PM
I have attached the customboxpal file I use for my install of IIP. You can modify the details to match yours, or keep them the same and serve ads for my account - no skin off my back!

Attached File
123868-custombox2pal.txt  (208 downloads)
Posted By: flumpydog Re: Google Add Sense add on for Threads 6.5 - 12/14/2004 7:02 PM
Thanks for the code, tried it and unfortunately we still cannot see the google ads
url for the site is http://www.corvettes.com/ , this is driving us nuts as to why it is not working.
Best Wishes,
Chuck
Posted By: flumpydog Re: Google Add Sense add on for Threads 6.5 - 12/14/2004 8:32 PM
well go figure, the google ads now appear to be working. Sure has us puzzled, maybe a problem on google's end.
Anyhoo, thanks bunches for the supplied code!

On the topic of this mod, how exactly does one control placement of the ads?

Best Wishes,
Chuck
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 12/15/2004 10:44 AM
Thanks for the feedback! -I'll fix those typos soon...

You would have to generate a separate variable for each add type, then just call those variables on the templates where you want them displayed, so you wold want to make an adsense1.tmpl, adsense2.tmpl, etc. that generate an $adsense1 and $adsense2 variable. Then place the variables on the pages where you want the ad displayed.

Since Adsense "reads" the page to serve up ads that are relevant to your content you don't want to put ads on every page of your site -unless you like serving community service ads
Posted By: AKD96 Re: Google Add Sense add on for Threads 6.5 - 12/15/2004 2:59 PM
If you're referring to my use of it in a palbox.... Hehe.

But seriously, I have no problem with displaying ads on (nearly) all of my pages. I rarely come across a community service ad. Even when viewing my calendar ( http://www.drumlines.org/threads/calendar.php ), the ads seem to know enough to display the ads that are pertinent to my community. Maybe it looks at your Meta tags as well.
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 12/16/2004 9:46 AM
Posted By: dparvin Re: Google Add Sense add on for Threads 6.5 - 01/23/2005 12:42 PM
I installed this before the two updates and they displayed all ok.

After a couple of months of them not showing adverts that would be of intrest to my members I e-mailed Google to ask them what I was doing wrong and this is the reply I got

[]Thank you for your email.

When reviewing your site I found that your web pages may not contain enough text-based content for our system to identify and display relevant Google ads. Please note that our crawlers are unable to derive meaning from images and dynamic media such as Macromedia Flash and JavaScript.

I recommend that you include more text-based content on your pages that reflect the type of ads that you want to see. This will help to assist our crawlers in gathering information about your pages and determining relevant ads to display. Complete sentences and paragraphs are helpful to our crawlers in determining the content of a page. Unfortunately, we cannot guarantee the results of any changes you make to your pages. If you make changes to a page, it may take up to 1 or 2 weeks before the changes are reflected in our index.
[/]

Does anyone know how to get round this?
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 01/25/2005 9:03 AM
No way around it that I know of: Google's crawler "reads" your pages looking for content that is relevant to the adds that they can serve. If you don't have enough text for the crawler, like Google's tech support people have said, then there won't be any adds to serve up for those pages...
Posted By: dparvin Re: Google Add Sense add on for Threads 6.5 - 01/25/2005 10:32 AM
Thats what I thought someone would say

Although, is there anyway of tricking them into reading my meta tags on every page they visit?
Just started to install this and got to:

In showthreaded.php look for:

// finish out the page

Well my showthreaded.php does not have this text anywhere in it??????
Posted By: Anno Re: Google Add Sense add on for Threads 6.5 - 02/04/2005 11:59 AM
Then search for

if (!$debug) {
should I put it right above that?
Posted By: Anno Re: Google Add Sense add on for Threads 6.5 - 02/05/2005 2:58 AM
I don't know what the directions say.

This:
// finish out the page

is at the same place as this:
if (!$debug) {

So, do whatever the directions say to do.
Posted By: Cro Re: Google Add Sense add on for Threads 6.5 - 02/10/2005 2:39 AM
hi guys. i have a question....

do u guys just put the adsense script into a pal and then just display that pal? cause i did that, but after a few days im still getting only PSA ads... do i need to include the code for "frames"? any suggestions? thanks
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 02/12/2005 12:25 PM
It depends on what's on the page -if there is nothing to key off of then all you'll get are public service ads...
Posted By: monkeyra Re: Google Add Sense add on for Threads 6.5 - 03/31/2005 7:01 PM
Can this hack be made "group dependent"?
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 04/01/2005 10:40 AM
How so? Do you mean that the ads only display for certain groups?
Posted By: monkeyra Re: Google Add Sense add on for Threads 6.5 - 04/01/2005 10:51 AM
yeah, so say my standard members are forced to view adverts, but my paying members arent.

so basically, they only show for one group.

It would be another way to encourage people to pay for membership, the fact that it will remove the adverts for them.
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 04/01/2005 1:31 PM
It could be done, but I'm busy on other projects. I'll add this to my "to do" list -but no promises on when I'll get to it...
Posted By: monkeyra Re: Google Add Sense add on for Threads 6.5 - 04/01/2005 2:31 PM
Ok, no worries
Posted By: kermit Re: Google Add Sense add on for Threads 6.5 - 04/23/2005 5:59 PM
thanks for this mod:)
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 04/24/2005 10:05 PM
Anytime
Posted By: smoknz28 Re: Google Add Sense add on for Threads 6.5 - 05/18/2005 7:36 AM
[]Dalantech said:
It depends on what's on the page -if there is nothing to key off of then all you'll get are public service ads... [/]

Yea, v6.5.1.1 doesn't have the below text in showthreaded.php:

// finish out the page

Has anyone figured this one out yet with v6.5.1.1?
Posted By: smoknz28 Re: Google Add Sense add on for Threads 6.5 - 05/20/2005 7:40 AM
Mmm, added the hack in working around some of the changes in Threads v6.5.1.1, but I don't get the ads displaying.

I currently have the adsense code from Google being displayed in my footer file as a work-around for now until I can get this hack to function correctly.

Dalantech, any ideas on this one?
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 05/20/2005 1:41 PM
Give me a link that shows an example of the problem that you are having...
Posted By: smoknz28 Re: Google Add Sense add on for Threads 6.5 - 05/20/2005 2:37 PM
No use in providing a link.....because the adsense link isn't even showing where it's suppose to per the hack. No errors, etc. However, my forums is located at: http://www.f-bodyhideout.com/ubbthreads The adsense banner you see is because I added that to the custom footer.

Maybe someone who has installed this hack in v6.5.1.1 can chime in here with what they had to do. I thought I could figure it out, but with no luck.
Posted By: Dalantech Re: Google Add Sense add on for Threads 6.5 - 05/23/2005 9:59 AM
Go over the instructions one more time -I think you may have missed a step...
Posted By: StanCA Re: Google Add Sense add on for Threads 6.5 - 02/08/2006 4:03 PM
[]Dalantech said:
Go over the instructions one more time -I think you may have missed a step... [/]

Am having the same problems rechecked several times.
© UBB.Developers