How to add a a right sided block of google ads in phpBB

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

How to add a a right sided block of google ads in phpBB

Postby Sparrow » Wed Oct 24, 2007 5:12 am

Take a look at the screen shot of this forum :
Code: Select all
http://img152.imageshack.us/img152/9123/dfsfs8.png


In there you can see a block for displaying ads on the right side of the screen
Its visible on the index page,view forum page and view topic page
I would like to know how to make this possible :)
User avatar
Sparrow
 
Posts: 36
Joined: Wed Jan 03, 2007 4:18 am

Advertisement

Postby daddyo » Thu Oct 25, 2007 1:16 pm

Use a frame and have the forums' index.php in the 90% left frame and have the ads display in the 10% right frame.
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Postby Sparrow » Fri Oct 26, 2007 12:37 pm

Is there a way to do the same without using frames
Because the said site is moded that way (ie. without frames)
User avatar
Sparrow
 
Posts: 36
Joined: Wed Jan 03, 2007 4:18 am

Postby coyote » Fri Oct 26, 2007 2:01 pm

Yeah, you can do it with two table cells. Start at the overall_header and create a table to enclose the entire forum. If you don't have a portal using forum-wide blocks, place this at the very end of your overall_header.

Code: Select all
<table width="100%" cellpadding="0" border="0">
<tr>
<td valign="top">


Then place this at the very beginning of your overall_footer.

Code: Select all
</td>
<td width="160" valign="top">
[PLACE YOUR GOOGLE TOWER ADS WITHIN THIS TABLE CELL ON THE FOOTER]
</td>
</tr>
</table>


I chose 160 pixels because that is google's widest vertical ad, but you could also choose 120 pixels for the skinnier ad. You may have to experiement a bit.
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 257
Joined: Fri May 11, 2007 6:24 am

Postby Sparrow » Fri Oct 26, 2007 5:41 pm

Thanx Coyote :D
Worked like a charm !!
User avatar
Sparrow
 
Posts: 36
Joined: Wed Jan 03, 2007 4:18 am

left side

Postby drankur » Thu Feb 07, 2008 6:12 am

can u plz tell me how to add it to LEFT side
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby coyote » Thu Feb 07, 2008 7:17 am

The same way except by putting the <td> with the google ads on the overall header before the <td> with the forum.


This goes at the very end of the overall_header.tpl

Code: Select all
<table width="100%" cellpadding="0" border="0">
<tr>
<td width="160" valign="top">
[PLACE YOUR GOOGLE TOWER ADS WITHIN THIS TABLE CELL ON THE HEADER]
</td>
<td valign="top">



And this at the very beginning of the overall_footer.tpl

Code: Select all
</td>
</tr>
</table>


:)
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 257
Joined: Fri May 11, 2007 6:24 am

thanks

Postby drankur » Thu Feb 07, 2008 8:04 am

many many thanks, working very beautifully.

just one more help needed, can u tell me how to increase the WIDTH of this style http://demo.phpbb3styles.net/sucu_cocuk ( as i want to place google leader board also, but after puttin vertical banner it is streching the style)

thank u
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby coyote » Thu Feb 07, 2008 8:17 am

This is a lot harder to do with a fixed width template such as the one you showed me in your link.

I'm not at all familiar with phpBB3, but from what I can tell from looking at the source code, the width is controlled by that template's .css file, and you may have to edit the background graphics a bit to make it work.
coyote
phpBB SEO Team
phpBB SEO Team
 
Posts: 257
Joined: Fri May 11, 2007 6:24 am

thanks

Postby drankur » Thu Feb 07, 2008 8:42 am

ok, no problem , thanks for all the help
drankur
 
Posts: 36
Joined: Mon Feb 04, 2008 3:26 pm

Postby HB » Fri Feb 08, 2008 3:32 am

Get the Firefox Web Developer add-on. Then select View > Toolbars > Web Developer Toolbar. The CSS > View CSS and View > CSS Style Information menu choices makes it a lot easier to navigate a page. In this case, there's a bunch of width tags sprinkled in the CSS, e.g.:

http://demo.phpbb3styles.net/styles/suc ... esheet.css

Code: Select all
#header {
   position: relative;
   background: #fff url(./images/header-bg.jpg) repeat-y center top;
   height: 35px;
   width:910px;   
   padding: 0;   
   color: #fff;   
}
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1211
Joined: Mon Oct 16, 2006 2:25 am

Re: How to add a a right sided block of google ads in phpBB

Postby TomKroscavage » Wed Apr 29, 2009 2:49 pm

Thanks coyote I did this as well @ http://www.tekindoor.com/ketchikan/index.php

How can I add a Google ad between posts like on this web site? I click on SEO ads every time I'm here :wink:
TomKroscavage
 
Posts: 10
Joined: Thu Apr 23, 2009 4:10 pm

Re: How to add a a right sided block of google ads in phpBB

Postby SeO » Tue May 12, 2009 8:47 am

TomKroscavage wrote:I click on SEO ads every time I'm here :wink:

Please do not abuse ;)
The right usage of adds is to follow the one that you're actually interested into, nothing more.

For AdSense with phpBB2, read this : Google adsense in PHPBB

;)
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests