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
  #2  
Old 10-12-2007, 07:01 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great - Thanx again for the sharing

JAcquii.
Reply With Quote
  #3  
Old 10-12-2007, 10:37 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

it is on the blogs homepage not the comments of one specific entry.
Maybe my description is a little imprecise
Reply With Quote
  #5  
Old 10-12-2007, 05:00 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok - then it works perfectly I was a bit confused by the description...
Reply With Quote
  #6  
Old 10-26-2007, 12:42 AM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by induslady View Post
1. How do I change the dotted lines around Google ads box into normal black line?

This would be one possibility:
Code:
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%"> 
 <tbody> 
  <tr> 
   <td class="thead" align="center">&nbsp;</td> 
  </tr> 
  <tr> 
   <td class="alt1" colspan="2"> <span class="smallfont"> 
    <center> 
      Google Adsense here
    </center> 
   </td> 
  </tr> 
 </tbody> 
</table>
Quote:
Originally Posted by induslady View Post
2. How do I change the background color, surrounding color of the ads to merge with the color of my style?
You can go into your Adsense and create your own adsense banner (468x60px) with your own colors, channel, etc. and replace the one I put there.

or replace the color part with this:

Code:
google_color_border = "705C99";
google_color_bg = "F5F5FD";
google_color_link = "0C108B";
google_color_text = "2F251C";
google_color_url = "2F251C";
Or change the RGB Codes (#2F251C is one, for google adsense without the #) to your liking.

StarBuG
Reply With Quote
  #8  
Old 10-26-2007, 04:01 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 10-26-2007, 04:48 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SVTCobraLTD View Post
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
to make $
Reply With Quote
  #10  
Old 10-27-2007, 09:42 PM
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
Location: PA
Posts: 841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo View Post
to make $
How does that work?

SVT
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 06:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04882 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (4)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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