PDA

View Full Version : Miscellaneous Hacks - Google Adsense In High Activity Area


pspmaster93
10-31-2007, 10:00 PM
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:

<!-- controls above thread list -->

Add directly below:

<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:

<!-- controls above postbits -->

Add directly below:

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

SAT2M
11-05-2007, 12:02 PM
HOW can I create Adssense's Account?

snakeair
11-05-2007, 06:36 PM
HOW can I create Adssense's Account?


It's free to create an account. For more information about adsense, please go to this site.

https://www.google.com/adsense/login/en_US/

Please read about adsense before going ahead creating your free account.

FreshFroot
11-06-2007, 04:35 AM
smart addon, thanks mate!

kollam003
11-09-2007, 03:07 AM
clicks install thanks

kholland
11-12-2007, 04:12 PM
Hi,

I love this mod. My adsense code will show when I go to a particular forum but it wont show when I view a post.

Any ideas why?

Thanks!

Ba$im
12-13-2007, 01:35 PM
thanks

bijju
12-15-2007, 05:17 PM
Let me try this one

G-spot
12-26-2007, 05:08 PM
thanks, works great!

viper007
01-15-2008, 07:42 AM
where can i put the pub code .. can any hel p me ,plzz

Lombardo
01-15-2008, 10:16 PM
where can i put the pub code .. can any hel p me ,plzz

In the ******** in the code that is in the original post.

viper007
01-17-2008, 12:21 AM
thank u frd.. i got it

dethfire
01-19-2008, 02:15 PM
is this increasing profits for anyone?

rgvtruck
01-20-2008, 03:41 AM
Yup

gwerzal
03-05-2008, 10:45 PM
Exactly what i was looking for, thanks.

TaBaTaN
03-12-2008, 01:32 PM
this works with 3.7 beta6 ?

Thank you

karrerax
03-13-2008, 07:29 AM
installed, this plug is great

cyberdog
04-11-2008, 01:45 PM
Great mod! I just can't find where the ads are.

Deadly Assassin
04-12-2008, 01:47 AM
Nice one thanks.


:up:

I found the height of the advert was to small and only showed half of the google sign.

I made it 20 in height and the sign is now whole again.

:up: