BioRunUp

Adding AdSense Code to your PHPBB3 Forum

Recommended Posts

OK, I found a link, but they add their own junk, so here is my edited version, the post below is for your View_Topic page, but use the instructions from this link to add to search results and other areas of your page:

 

You can see the example on my forum at http://www.BioRunUp.com/forum/ (once it goes live)

 

http://www.adsense4phpbb3.com/1.htm

 

1. Go to your Administration Control Panel. Click on STYLES, then on Themes and then click on Edit, near the

your template. On bottom paste:

 

a body {

max-width: 1024px;

margin: 0px auto;

}

ul.forums1 {

background-color: #cddeee;

}

li.row1 {

border-top: 1px solid #FFFFFF;

}

dd.mali span {

display: block;

padding-left: 10px;

}

dd.veliki span {

display: block;

padding-left: 10px;

}

 

2. Choose viewtopic_body.html Template file.

 

3. In template editor find

 

4.1. Before insert code:

 

google_ad_client = "pub-xxx";

google_ad_width = 728;

google_ad_height = 90;

google_ad_format = "728x90_as";

google_ad_type = "text_image";

google_ad_channel = "";

google_color_border = "cddeee";

google_color_bg = "cddeee";

google_color_link = "10508b";

google_color_text = "4a5d73";

google_color_url = "ac0000";

//-->

 

4.2. If you want to add Adsense Ads on bottom paste the same code after

 

REMEMBER TO CHANGE THE GOOGLE ADSENSE ID (google_ad_client) TO YOUR OWN ID FROM 'pub-xxx'

Share this post


Link to post
Share on other sites

My users might hate me.... but I went ahead and added the code here and it looks ok I think.

 

The only change I made was to the CSS:

 

dd.veliki span {

display:block;

padding-left:50px;

 

This way the adsense ads are centered.

Share this post


Link to post
Share on other sites

Well.... no one likes Ads BUT, I can imagine with your level of traffic, it was just a matter of time before you needed to put up some ads here in the forum.

 

For what it's worth, I think they look pretty good. Not that annoying. Why don't you setup a DONATE button here or there?

Share this post


Link to post
Share on other sites

gotta pay the bills I guess. :) :)

 

BTW - that's old adsense code. You should upgrade with the new adsense code.

 

I like the CSS tho. Cool borders.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Who's Online   0 Members, 0 Anonymous, 63 Guests (See full list)

    There are no registered users currently online