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)
-   -   Miscellaneous Hacks - Google Adsense In High Activity Area (https://vborg.vbsupport.ru/showthread.php?t=161631)

pspmaster93 10-31-2007 10:00 PM

Google Adsense In High Activity Area
 
This modification is based on MARKETPROFIT's: Adsense In High User Activity Area Part 1 And 2.
But I had some problems with his modification and i found out a way easier way to do it so I decided I would post this.

What this modification does:
Adds a google advertisement directly above the NEW THREAD and POST REPLY button.
SEE IMAGES

Install:
In the FORUMDISPLAY template search for:

Quote:

<!-- controls above thread list -->
Add directly below:

Quote:

<script type="text/javascript"><!--
google_ad_client = "pub-********";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_color_border = "0067D1";
google_color_bg = "e0eeff";
google_color_link = "000000";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
In the SHOWTHREAD template search for:

Quote:

<!-- controls above postbits -->
Add directly below:

Quote:

<script type="text/javascript"><!--
google_ad_client = "pub-********";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_color_border = "0067D1";
google_color_bg = "e0eeff";
google_color_link = "000000";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
And your done.

Make sure you change pub-******** to your google PUB ID when posting the adsense codes.

There will now be an ad directly above your top POST REPLY and NEW THREAD buttons when viewing a post or forum.

This will also earn you more revenue because people always click those buttons (area is high traffic) and they might even accidentally click the ad earning you $$$

tei727 11-02-2007 02:18 PM

thanks!

iogames 11-02-2007 05:32 PM

Wow! Thanks!

Edit: Question? my Adsense's Account start with; 'ca-pub-xxxxxxxxx' do I put the 'ca or do I star with 'pub'? :(

pspmaster93 11-02-2007 11:00 PM

Quote:

Originally Posted by iogames (Post 1374326)
Wow! Thanks!

Edit: Question? my Adsense's Account start with; 'ca-pub-xxxxxxxxx' do I put the 'ca or do I star with 'pub'? :(

it should look like this:
pub-**************** just get rid of the ca-

PoetJA-1975 11-03-2007 12:11 AM

Quote:

Originally Posted by pspmaster93 (Post 1374481)
it should look like this:
pub-**************** just get rid of the ca-

HUH!?!?!? Are you completely sure about this, as my adsense codes begin with ca- too

JAcquii.

Meghwar 11-03-2007 05:05 AM

I follow what you noted above it didnt work for me :)

pspmaster93 11-03-2007 02:27 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1374520)
HUH!?!?!? Are you completely sure about this, as my adsense codes begin with ca- too

JAcquii.

ok...well i never heard of that but if when you are setting up adsense and it gives you the code to paste on your site just copy whatever it says under google_ad_client

Meghwar 11-03-2007 02:49 PM

hi

is this hack work with:

Leagcy vbportal
- Style
-- Child of style

i add the mods on the child

PoetJA-1975 11-03-2007 05:39 PM

Quote:

Originally Posted by pspmaster93 (Post 1374843)
ok...well i never heard of that but if when you are setting up adsense and it gives you the code to paste on your site just copy whatever it says under google_ad_client

OK - I just visited Google Adsense forums - Apparently both work :)
Thanx again for the sharing...

Jacquii.

snakeair 11-03-2007 06:36 PM

I just installed this on my forum and works like a charm. Thanks for sharing.


All times are GMT. The time now is 03:39 PM.

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.04166 seconds
  • Memory Usage 1,736KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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