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 above quickreply - 2 layout versions Details »»
Adsense above quickreply - 2 layout versions
Version: 1.00, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 06-10-2007 Last Update: 07-21-2007 Installs: 35
Template Edits
 
No support by the author.

Hi

To continue publishing my adsense modifications for vBulletin I have decided to release this mod as well.

What this hack does:

This hack places a google adsense leaderboard above the quick reply box in every thread.
I have two layout versions for this hack.
The first one is a in a box with a dotted border catching the attention and the second one is a simple box perfectly blending into the site.


How to install:
  • The dotted boarder Version:
in the template "SHOWTHREAD" find:



Code:
<if condition="$show['multiquote_global']">
<script type="text/javascript" src="clientscript/vbulletin_multi_quote.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
var mqlimit = $vboptions[mqlimit];
</script>
</if>
and add below:


Code:
<!-- 728x90 Leaderboard below Thread above Quick Reply -->
<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>
<!-- Google Adsense Leaderboard above Quick Reply start -->
<script type="text/javascript"><!--
google_ad_client = "YOUR PUB ID HERE";
google_alternate_color = "F5F5FF";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_color_border = "F5F5FF";
google_color_bg = "F5F5FF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- Google Adsense Leaderboard above Quick Reply end -->
      </center>
</div><br />
<!-- 728x90 Leaderboard below Thread above Quick Reply -->
See Screenshot 1


To alter the colors of the dotted box you need to find the RGB color numbers for the color you want to use.
The first 3 numbers "rgb(11, 25, 140)" are for the border color and the second three numbers "rgb(245, 245, 255)" are for the background color.
Normaly any kind of paint program (photoshop, paint shop pro, etc) should give you the RGB numbers.
Alternatively if you are using Firefox you can install a nice plugin called: ColorZilla
  • The blended in Version:
in the template "SHOWTHREAD" find:


Code:
<if condition="$show['multiquote_global']">
<script type="text/javascript" src="clientscript/vbulletin_multi_quote.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
var mqlimit = $vboptions[mqlimit];
</script>
</if>
and add below:


Code:
<!-- 728x90 Leaderboard below Thread above Quick Reply -->
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody><tr>
    <td class="thead"  align="center">
   <div class="normal">
        &nbsp;
     </div>
    </td>
</tr>
<tr>
 <td class="alt1" align="center">
    <div>
   <center> 
    <!-- Google Adsense Leaderboard above Quick Reply start -->
    <script type="text/javascript"><!--
    google_ad_client = "YOUR PUB ID HERE";
    google_alternate_color = "F5F5FF";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "text";
    google_color_border = "F5F5FF";
    google_color_bg = "F5F5FF";
    google_color_link = "000000";
    google_color_text = "000000";
    google_color_url = "000000";
    //-->
    </script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <!-- Google Adsense Leaderboard above Quick Reply end -->
   </center>
  </div>
 </td>
</tr>
</tbody>
</table>
<br />
<!-- 728x90 Leaderboard below Thread above Quick Reply -->
See Screenshot 2



You now just need to customize the adsense code marked with:

<!-- Google Adsense Leaderboard above Quick Reply start -->

replace "YOUR PUB ID HERE" with your pub-ID
and fit the colors of adsense to your color scheme



DEMO: Elternfragen.net - Das Forum f?r Eltern mit (medizinischen) Fragen
Just view any thread


Changelog:
v1.00 - 2007/07/22: NO CHANGES, just removed my Pub-ID from the hack!


I hope you like it and if you do, don't forget to mark as installed

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.

My other Adsense modifications:

Adsense as second post. 2 Sizes - Big for guests, small for members

Adsense as second post. 2 Sizes - Big for guests, small for members - Legacy Version

Adsense Link Unit in Navbar

Show Your Support

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

Comments
  #2  
Old 06-15-2007, 04:06 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feedback would be realy welcome if you installed this hack
Reply With Quote
  #3  
Old 06-16-2007, 05:58 PM
CMGU CMGU is offline
 
Join Date: Mar 2007
Location: Central America
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellente hack
Reply With Quote
  #4  
Old 06-17-2007, 08:33 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do not forget to change "google_ad_client" to your adsense id otherwise the coder get the earnings for this and that's probably not what you want :erm:
Reply With Quote
  #5  
Old 06-18-2007, 03:21 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's basic
Reply With Quote
  #6  
Old 06-20-2007, 12:59 PM
kennethsia kennethsia is offline
 
Join Date: Apr 2007
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi View Post
do not forget to change "google_ad_client" to your adsense id otherwise the coder get the earnings for this and that's probably not what you want :erm:
good point very sneaky
Reply With Quote
  #7  
Old 08-18-2007, 11:09 PM
applyimage applyimage is offline
 
Join Date: Aug 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice.
Reply With Quote
  #8  
Old 08-20-2007, 06:13 PM
applyimage applyimage is offline
 
Join Date: Aug 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*installed* although my arn't showing up, this may be because ive only just set up adsense rather than a problem with the mod.
Reply With Quote
  #9  
Old 08-27-2007, 05:18 AM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are new to adsense this could be the case.
Adsense takes a while till it has all your pages spidered.

Also the relevancy will increase over time.
Reply With Quote
  #10  
Old 09-14-2007, 09:26 AM
adiboy.net adiboy.net is offline
 
Join Date: Nov 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice!
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 01:37 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.05869 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
  • (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
  • (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