Results from the most recent live auction are here .
20 members in the live chat room. Join Chat !
05-30-2006, 09:53 PM
· #1 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
Adsense on PHPBB?
How do you put Adsense up on PHPbb? Is it possible?
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
05-30-2006, 10:15 PM
· #2 www.prosportsnow.com
Join Date: May 2006
Posts: 1,084
NP$: 3.15 (
Donate )
If you want it in your header edit the overall_header.tpl or overall_footer.tpl files and add the javascript code.
Also, if thats no help talk to my good friend Mr. Google
__________________
Baseball Trade Rumors - Coming Soon! | Any passionate baseball fans out there, send me a PM. Looking for some real baseball fans to be apart of this new community.
05-30-2006, 10:18 PM
· #3 while ($awake){ code(); }
Name: Eric
Location: Kentucky
Join Date: Mar 2005
Posts: 4,268
NP$: 1152.00 (
Donate )
Depends on where you want it. Give me a location, I'll find you the template
-Eric
05-30-2006, 10:33 PM
· #4 Eating Pie
Name: Steve
Location: Canada
Join Date: Nov 2004
Posts: 2,284
NP$: 91.30 (
Donate )
05-30-2006, 10:36 PM
· #5 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
Thanks all - I actually installed a template from phpbbhacks already. Maybe I need to look at another one. I'd like to put a landscape adsense banner just below the main header. This is the first time messing with a forum.
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
05-30-2006, 10:43 PM
· #6 while ($awake){ code(); }
Name: Eric
Location: Kentucky
Join Date: Mar 2005
Posts: 4,268
NP$: 1152.00 (
Donate )
Open, overall_header.tpl and find the following (bottom of file):
Add below:
PHP Code:
< table width = "100%" cellspacing = "0" cellpadding = "0" border = "0" align = "center" >
< tr >
< td align = "center" valign = "middle" > your adsense code </ td >
</ tr >
</ table >
< br />
05-30-2006, 10:45 PM
· #7 Online Broadcaster
Join Date: Feb 2006
Posts: 511
NP$: 192.55 (
Donate )
In that case its the overall_header.tpl file, located within whichever template folder you're using for your forums theme (subsilver is default)
Basically you want to look towards the end of that file for where the header content ends, and then pop in your adsense code, providing you don't break any tables or screw up the alignment etc.
Also - are you using the inline adsense code hack from phpbbhacks? (the one that puts the adsense ad after either each post or every first post. I have that installed on one of my developing forums which doesn't have a great deal of visitors, so curious about the sort of feedback on usage of that (more intrusive) adsense placement
Edit: Darn, beaten to it :P
05-31-2006, 01:16 AM
· #8 NamePros Staff
Name: Peter
Location: Scotland
Join Date: Nov 2003
Posts: 4,337
NP$: 2039.40 (
Donate )
Just a note, ensure you do not have adsense ads on pages such as login pages etc (non content pages) as it is a violation of their tos.
05-31-2006, 01:04 PM
· #9 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
Attached is the template I'm using. I looked at phpbbhacks and found an adsense mod but wasn't sure which file to alter b/c it refers to the default subsilver.
This is the code for the overall_header.tpl
PHP Code:
<?xml version = "1.0" encoding = "{S_CONTENT_ENCODING}" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/fisubgreen/{T_HEAD_STYLESHEET}" type="text/css" />
<!-- BEGIN switch_enable_pm_popup -->
<script type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>
<a name="top" id="top"></a>
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/fisubgreen/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="240" height="110" /></a></td>
<td align="center" width="100%"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center" class="topnav"> <a href="{U_FAQ}">{L_FAQ}</a> • <a href="{U_SEARCH}">{L_SEARCH}</a>
• <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a> •
<a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
• <a href="{U_REGISTER}">{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
• <a href="{U_PROFILE}">{L_PROFILE}</a> • <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
• <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
Maybe I'm blind - I don't see the <br /> you mentioned Second.
Thanks for continued help!
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
05-31-2006, 07:15 PM
· #10 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
anybody?
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
05-31-2006, 08:49 PM
· #11 NamePros Regular
Name: David
Location: United States
Join Date: Jul 2005
Posts: 532
NP$: 566.72 (
Donate )
The following is directly below your header:
Code:
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/fisubgreen/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="240" height="110" /></a></td>
<td align="center" width="100%"> </td>
</tr>
</table>
Try putting the ad directly below this. If this doesn't work, or if you want the ad to go below the text links, which I assume is at the top, put the ad directly below this:
Code:
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center" class="topnav"> <a href="{U_FAQ}">{L_FAQ}</a> • <a href="{U_SEARCH}">{L_SEARCH}</a>
• <a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a> •
<a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
• <a href="{U_REGISTER}">{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
• <a href="{U_PROFILE}">{L_PROFILE}</a> • <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
• <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>
I've done a lot of phpBB template modifications, etc... in the past. If I actaully saw the template it would help. But try those two places, and if you don't like the way it looks, post back with a link to the template. Then I could probably tell you for sure.
Good luck,
David
05-31-2006, 10:29 PM
· #12 NamePros Member
Join Date: May 2006
Posts: 187
NP$: 62.65 (
Donate )
06-01-2006, 05:52 AM
· #13 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
Originally Posted by Rudy I've done a lot of phpBB template modifications, etc... in the past. If I actaully saw the template it would help. But try those two places, and if you don't like the way it looks, post back with a link to the template. Then I could probably tell you for sure.
Good luck,
David
Hey David, I attached the template in my last post. Thanks.
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
06-01-2006, 01:46 PM
· #14 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
Thanks all - got it working!
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
06-01-2006, 03:43 PM
· #15 while ($awake){ code(); }
Name: Eric
Location: Kentucky
Join Date: Mar 2005
Posts: 4,268
NP$: 1152.00 (
Donate )
Good to see you got it working.
06-02-2006, 03:32 PM
· #16 Senior Member
Name: The cake is a lie...
Join Date: Feb 2006
Posts: 1,774
NP$: 211.35 (
Donate )
Originally Posted by filth@flexiwebhost Just a note, ensure you do not have adsense ads on pages such as login pages etc (non content pages) as it is a violation of their tos.
Oops. I noticed this has happened. How do I correct?
__________________
Web-Page.info -
A FREE browser tool that searches Domain Names as you type!
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off