So, I’m a sellout and need to cover my costs. Sue me! I have been a huge opponent of advertising on blogs. To me blogs are personal and if people are trying to make money on their personal blogs, I have had a major issue with that. However it is their blog and they can do whatever they want. I haven’t vocalized the opposition very often.
However, I decided that trying to bring in enough to cover some of my hosting charges and get a little cash flow for contests, etc isn’t that evil… especially in small doses. You, as my faithful readers, should be aware of that…
So you may notice that I’ve incorporated Google Adsense into posts 14 days or older. I could have swore there was a plugin for this but I couldn’t find it. So I wrote a plugin for myself. If you were curious to see the code, here it is. It’s not really very glamorous but gets the job done. If you decide to use it, then make sure you put your own Adsense code in there  that is, of course, unless you want to donate all your proceeds to me. :)
[php]
‘;
}
else
return;
}
} ?>[/php]
Usage is real easy:
[php][/php]

{ 8 comments }
Vinnie Garcia 05.16.05 at 9:28 pm
If you’re putting adsense on entries older than 14 days you probably shouldn’t have the last two months worth of posts on the front page ;)
Aaron Brazell 05.16.05 at 9:48 pm
Thanks Vinnie, but they are on the single post pages… not the main page. ;)
Vinnie Garcia 05.16.05 at 10:28 pm
If you’re putting adsense on entries older than 14 days you probably shouldn’t have the last two months worth of posts on the front page ;)
Aaron Brazell 05.16.05 at 10:48 pm
Thanks Vinnie, but they are on the single post pages… not the main page. ;)
Vinnie Garcia 05.17.05 at 8:23 am
Yeah, but since you don’t do excerpts on the front page there’s little incentive to go into the single post view unless leaving a comment or something. Even then, clicking the “comments” link takes you right to the comment list/form, somewhat bypassing the ads ;)
Aaron Brazell 05.17.05 at 8:37 am
Good call. I was going to modify my layout just a little anyway since this template is really just a modified Green Track template so maybe I’ll do excerpts when I make those changes.
Vinnie Garcia 05.17.05 at 9:23 am
Yeah, but since you don’t do excerpts on the front page there’s little incentive to go into the single post view unless leaving a comment or something. Even then, clicking the “comments” link takes you right to the comment list/form, somewhat bypassing the ads ;)
Aaron Brazell 05.17.05 at 9:37 am
Good call. I was going to modify my layout just a little anyway since this template is really just a modified Green Track template so maybe I’ll do excerpts when I make those changes.
Comments on this entry are closed.