| :: |
| Author |
Message |
Sparrow

Joined: 03 Jan 2007 Posts: 36
|
Posted: Wed Oct 24, 2007 5:12 am Post subject: How to add a a right sided block of google ads in phpBB |
|
|
Take a look at the screen shot of this forum :
| Code: | | 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  |
|
|
| Back to top |
|
 |
|
 |
daddyo
Joined: 12 Sep 2007 Posts: 38
|
Posted: Thu Oct 25, 2007 1:16 pm Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
| Use a frame and have the forums' index.php in the 90% left frame and have the ads display in the 10% right frame. |
|
|
| Back to top |
|
 |
Sparrow

Joined: 03 Jan 2007 Posts: 36
|
Posted: Fri Oct 26, 2007 12:37 pm Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
Is there a way to do the same without using frames
Because the said site is moded that way (ie. without frames) |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Fri Oct 26, 2007 2:01 pm Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
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: | <table width="100%" cellpadding="0" border="0">
<tr>
<td valign="top"> |
Then place this at the very beginning of your overall_footer.
| Code: | </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. |
|
|
| Back to top |
|
 |
Sparrow

Joined: 03 Jan 2007 Posts: 36
|
Posted: Fri Oct 26, 2007 5:41 pm Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
Thanx Coyote
Worked like a charm !! |
|
|
| Back to top |
|
 |
drankur
Joined: 04 Feb 2008 Posts: 16
|
Posted: Thu Feb 07, 2008 6:12 am Post subject: left side |
|
|
| can u plz tell me how to add it to LEFT side |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Thu Feb 07, 2008 7:17 am Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
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: | <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: | </td>
</tr>
</table>
|
 |
|
|
| Back to top |
|
 |
drankur
Joined: 04 Feb 2008 Posts: 16
|
Posted: Thu Feb 07, 2008 8:04 am Post subject: thanks |
|
|
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 |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Thu Feb 07, 2008 8:17 am Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
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. |
|
|
| Back to top |
|
 |
drankur
Joined: 04 Feb 2008 Posts: 16
|
Posted: Thu Feb 07, 2008 8:42 am Post subject: thanks |
|
|
| ok, no problem , thanks for all the help |
|
|
| Back to top |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 794
|
Posted: Fri Feb 08, 2008 3:32 am Post subject: Re: How to add a a right sided block of google ads in phpBB |
|
|
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/sucu_cocuk/theme/stylesheet.css
| Code: | #header {
position: relative;
background: #fff url(./images/header-bg.jpg) repeat-y center top;
height: 35px;
width:910px;
padding: 0;
color: #fff;
} |
|
_________________ Dan Kehn |
|
| Back to top |
|
 |
|
|