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 <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />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 <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Edited 15 Dec 05: Fixed a typo in the instructions for the showflat and showthreaded template.
#280939 - 10/19/0401:33 PMRe: Google Add Sense add on for Threads 6.5
[Re: jacksonm99]
DrChaos
Coder
Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
You are a GOD!.<br /><br />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 <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
I was hoping that I wasn't the only one in need of that hack -thanks for the props! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />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.
Anytime <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />I have one more mod to release, but I'm taking a little break. I'll probably have it online this weekend <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
#280944 - 10/27/0412:02 PMRe: Google Add Sense add on for Threads 6.5
[Re: jacksonm99]
ChAoS_dup1
Code Monkey
Registered: 11/15/02
Posts: 576
Loc: Great Northwest
Your site is looking great<br />FYI your signature URL is pointing to an invalid page <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br />Thanks for the hack
_________________________
ChAoS Emerald Forest Gaming Servers Official STFU Thread
<img src="http://www.ubbdev.com/forum/images/graemlins/doah.gif" alt="" /> -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! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
[]ChAoS said:<br />Your site is looking great[/]<br /><br />I like the color scheme that you use on the Emerald Forest! <img src="http://www.ubbdev.com/forum/images/graemlins/cool.gif" alt="" />
#280947 - 10/27/0412:37 PMRe: Google Add Sense add on for Threads 6.5
[Re: jacksonm99]
ChAoS_dup1
Code Monkey
Registered: 11/15/02
Posts: 576
Loc: Great Northwest
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.
Edited by ChAoS (10/27/0412:40 PM)
_________________________
ChAoS Emerald Forest Gaming Servers Official STFU Thread
Hi, <br /> <br />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. <br /> <br />In the instructions, you have a couple spots listed as $addsense instead of $adsense for modifying showflat.tmpl and showthreaded.tmpl. <br /> <br />For modifying gen_display.tmpl, you have ADDSENSE_1 and ADDSENSE_2 instead of ADSENSE_1 and ADDSENSE_2 <br /> <br />Now to the tough stuff <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />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? <br /> <br />What can be done to make the ads appear on the "Entrance" page for IIP in one of the customboxes? <br /> <br />Best Wishes, <br />Chuck
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! <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
Thanks for the code, tried it and unfortunately we still cannot see the google ads <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /><br />url for the site is http://www.corvettes.com/ , this is driving us nuts as to why it is not working.<br />Best Wishes,<br />Chuck
well go figure, the google ads now appear to be working. Sure has us puzzled, maybe a problem on google's end. <br />Anyhoo, thanks bunches for the supplied code!<br /><br />On the topic of this mod, how exactly does one control placement of the ads?<br /><br />Best Wishes,<br />Chuck
Thanks for the feedback! -I'll fix those typos soon...<br /><br />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.<br /><br />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 <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
If you're referring to my use of it in a palbox.... <img src="http://www.ubbdev.com/forum/images/graemlins/tongue.gif" alt="" /> Hehe. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />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.
#280956 - 01/23/0504:42 AMRe: Google Add Sense add on for Threads 6.5
[Re: jacksonm99]
dparvin
Member
Registered: 08/08/04
Posts: 184
Loc: UK
I installed this before the two updates and they displayed all ok.<br /><br />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<br /><br /> []Thank you for your email. <br /><br />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.<br /><br />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.<br /> [/] <br /><br />Does anyone know how to get round this?
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...