Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adsense Banner below Blog Entry and above Comments Details »»
Adsense Banner below Blog Entry and above Comments
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: 29
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 a Blog Entry and above the Comments.

Install:

In Template blog_show_entry search for:

Code:
<else />
                <a href="blog_subscription.php?$session[sessionurl]do=subscribe&amp;b=$bloginfo[blogid]"><img src="$stylevar[imgdir_misc]/blog/newspaper_add.gif" border="0" class="inlineimg" alt="$vbphrase[subscribe_to_blog_entry]" /></a>
            </if>
        </if>
    </div>
</div>
and add below:

Code:
<br />
<!-- 468x60 Banner after Blog Entry -->
<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>
<!-- 468x60 Banner after Blog Entry -->
Now you just need to customize the adsense code marked with:

<!-- 468x60 Banner after Blog Entry -->

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?b=2

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 04-07-2008, 11:55 PM
ZapFlash ZapFlash is offline
 
Join Date: Jan 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
nice, I already added an Ad on the main blog page, hadn't had time to search for the comment page
How do you do that? or could that be added to this mod too? (below the Featured Blog Entry and above the recent entries/comments) thanks
Reply With Quote
  #13  
Old 11-19-2008, 01:33 PM
ctfortner ctfortner is offline
 
Join Date: Nov 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, thanks
Reply With Quote
  #14  
Old 11-19-2008, 06:58 PM
tsptom tsptom is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great. I want to take it a step further as I do within my board, and allow the blooger to own the adsense ads. From another mod, in the postbit template I say:

script type="text/javascript"><!--
if('$post[field6]' == '')
{
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
google_ad_channel = "";
}
else
{
google_ad_client = "$post[field6]";
google_ad_channel = "$post[field7]";
}
....blah, blah....

...where $post[field#] gets the users google_ad info from his profile, otherwise it uses mine.

Any idea what the variable name I would use in the blog_show_entry, instead of $post? Or, will this have to be a plugin?

Thanks
Reply With Quote
Reply


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:55 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.04933 seconds
  • Memory Usage 2,236KB
  • Queries Executed 18 (?)
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)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
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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