vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   vBulletin Blog - Adsense below Recent Comments List on Blog Home (https://vborg.vbsupport.ru/showthread.php?t=157490)

StarBuG 09-09-2007 10:00 PM

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

PoetJA-1975 10-12-2007 07:01 AM

Great - Thanx again for the sharing ;)

JAcquii.

yoyoyoyo 10-12-2007 10:37 AM

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

StarBuG 10-12-2007 04:51 PM

it is on the blogs homepage not the comments of one specific entry.
Maybe my description is a little imprecise

yoyoyoyo 10-12-2007 05:00 PM

ok - then it works perfectly ;) I was a bit confused by the description...

induslady 10-26-2007 12:42 AM

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.

StarBuG 10-26-2007 07:22 AM

Quote:

Originally Posted by induslady (Post 1368764)
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 (Post 1368764)
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

SVTCobraLTD 10-26-2007 04:01 PM

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

yoyoyoyo 10-26-2007 04:48 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1369179)
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 $

SVTCobraLTD 10-27-2007 09:42 PM

Quote:

Originally Posted by yoyoyoyo (Post 1369202)
to make $

How does that work?

SVT


All times are GMT. The time now is 12:44 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.01834 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete