Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Adsense below Recent Comments List on Blog Home Details »»
Adsense below Recent Comments List on Blog Home
Version: 1.00, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.6.8 Rating:
Released: 09-09-2007 Last Update: 09-09-2007 Installs: 16
Template Edits
 
No support by the author.

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>
    </tr>
    </table>
</div>
and add below:

Code:
<br />
<!-- 468x60 Banner after Recent Comments List on Blog Home -->
<div style="border: 2px dashed rgb(11, 25, 140); padding: 8px; background: rgb(245, 245, 255) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; text-align: left; font-size: 80%;">
      <center>
<script type="text/javascript"><!--
google_ad_client = "YOUR PUB ID HERE";
google_alternate_color = "E5EAEB";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "22229c";
google_color_text = "22229c";
google_color_url = "22229c2";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
      </center>
</div><br />
<!-- 468x60 Banner after Recent Comments List on Blog Home -->
Now you just need to customize the adsense code marked with:

<!-- 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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-30-2007, 03:09 AM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 10-30-2007, 03:13 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no clue what you mean.
Reply With Quote
  #14  
Old 10-31-2007, 06:02 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #15  
Old 10-31-2007, 06:54 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 10-31-2007, 07:47 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 11-06-2007, 04:10 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no tweak, it is a browser problem of yours.
Reply With Quote
  #18  
Old 04-13-2008, 06:19 PM
ZapFlash ZapFlash is offline
 
Join Date: Jan 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 06-26-2011, 12:30 AM
DNN DNN is offline
 
Join Date: Mar 2011
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08772 seconds
  • Memory Usage 2,279KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete