![]() |
Adsense below Recent Comments List on Blog Home
Hi
To continue my Adsense modification series I decided to make my blog placements public. What this hack does: This hack adds a standard 468x60px Adsense Banner below the Recent Comments List on the Blog start page. Install: In template blog_home find: Code:
<td class="alt2 smallfont" align="$stylevar[right]"><a href="blog.php?$session[sessionurl]do=comments">$vbphrase[find_more]</a></td> Code:
<br /> <!-- 468x60 Banner after Recent Comments List on Blog Home --> replace "YOUR PUB ID HERE" with your pub-ID and change the colors to fit your forum colors If you have the "Template Modification System" (TMS) installed, I have attached a TMS XML for you. Remember to do the changes! DEMO: http://www.patientenfragen.net/blog.php Please click install and leave feedback, if you use this mod. THX StarBuG If you did not register for an Adsense account yet but you plan to, feel free to contact me. If you register via my referral I am willing to help you get the most out of your adsense placement by assisting you during the setup process and implementing the best adsense modifications. Just write me a Private message. |
Great - Thanx again for the sharing ;)
JAcquii. |
hmm - thanks for sharing, but I did the manual edits indicated in blog_home and instead of coming out under the comments it is below the "recent entries" box on /forum/blog.php. When I go to /forum/blog.php?b=1#comment2 I don't see any adsense code listed
|
it is on the blogs homepage not the comments of one specific entry.
Maybe my description is a little imprecise |
ok - then it works perfectly ;) I was a bit confused by the description...
|
Hello StarBug,
Thanks for this hack as well as the other hacks in blog navigation and blog show entry. They seem to be really good. I have tried them in my test forums and yet to implement in live for want of some help. My forum style color is a little purplish. I am attaching screenshots of my blog pages with your hacks installed. The hacks display Google ads in blue color that doesn't go very well with my style color. Is it possible for you to help me with the following tweaking: 1. How do I change the dotted lines around Google ads box into normal black line? 2. How do I change the background color, surrounding color of the ads to merge with the color of my style? I am attaching screenshots of my test site showing the ads displayed by your hacks. I am not very good in programming and need help. Thank you. |
Quote:
This would be one possibility: Code:
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%"> Quote:
or replace the color part with this: Code:
google_color_border = "705C99"; StarBuG |
Just curious on what the purpose would be to add Adsense to your forum? Is there a benefit to it. This really has nothing to do with the templete file but was curious why it would be done.
SVT |
Quote:
|
Quote:
SVT |
Hello StarBug,
Thank you for the tweaks you suggested. The tborder and color settings for the Google ads are now perfect and goes well with the style I use in my site. I need one more help...if I may ask! The ads showing up in between the blog entry and the comments (using the code in blog_show_entry) is either getting wrapped or the ad link is missing. I tried this in Firefox - the ad link (URL) is not showing up. I also tried in IE - the ad is getting wrapped and is incomplete. I am attaching screenshots below. Please help! Many thanks in advance. |
I have no clue what you mean.
|
Please visit this link http://www.indusladies.com/forums/blog.php
using Internet explorer & Firefox browsers. Please refere the Google ads below recent entries and recent comments section at the end of the page. You will see that the Google ads (when viewed in IE) are displaying one after the other and the 2nd ad is cut off. The height of the ad box isn't enough to fit. If you see the same set of ads (when viewed in Firefox), the ads are displaying side by side within the box, but still the URL is cut off in the ads because of the height of the box. Please can you help in this regards. Many Thanks! |
The box has no height.
It is defined by the ad inside. It looks ok to me. Some ads don't display URLs if the ad text uses 2 lines. It is a standard 468x60px banner. |
StarBug,
I too don't see the issue with all the ads. The wrapping or cut-off of the ads happen only at certain instances. If you do a refresh repeatedly, you will notice one such instance for the ad showing up. I know this might not be a problem with your hack, but jsut want to know if any tweaking in the code can fix the issue. I have also written to Google. Many thanks. |
There is no tweak, it is a browser problem of yours.
|
i knew it was a waste not having a banner in the blogs home and you solved that, thank you very much, i'm gonna check your adsense series :)
|
It was assumed that one could automatically add AdSense in the CMS blog section in admincp. Is there a plugin that is needed additionally? Please advise.
|
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|