Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,899 Members
165,082 Posts
50 Users Online

Please welcome our newest member, jevs!

Affiliates
Go Back AdminFusion » Getting Started » Software » phpBB » Adsense ads posted in PHPBB forum
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 03-03-2007, 01:39 AM   #1

Title: Lurker

Points: 874, Level: 7Points: 874, Level: 7Points: 874, Level: 7
Level up: 8%, 76 Points neededLevel up: 8%, 76 Points neededLevel up: 8%, 76 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Feb 2007

Posts: 12

dmoore is on a distinguished road
 
 
Adsense ads posted in PHPBB forum

I am looking for a way to post adsense ads in my phpbb forum. I have seen on other forums where a account is designated for posting ads and does so at random intervals. Does anyone know how I could get this working and automated?

Derek
__________________
Are you Canadian? Come to our Ask Canadians Forum.
Reply With Quote
Old 03-03-2007, 04:09 PM   #2

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
Try this
__________________
...some super-sweet signature
Reply With Quote
Old 04-19-2007, 02:41 AM   #3

Title: Rookie

Points: 767, Level: 7Points: 767, Level: 7Points: 767, Level: 7
Level up: 8%, 183 Points neededLevel up: 8%, 183 Points neededLevel up: 8%, 183 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Apr 2007

Posts: 23

clookid is on a distinguished road
 
 
Inline Banner Ads will do it for you! It is an easy modification to install too!
__________________
Paid Forum Posting - www.forumelves.com
Keyboard Junkies - www.keyboardjunkies.com
Reply With Quote
Old 04-19-2007, 03:53 AM   #4

Thomas's Avatar

Title: Forum Addict

Points: 8,414, Level: 27Points: 8,414, Level: 27Points: 8,414, Level: 27
Level up: 28%, 336 Points neededLevel up: 28%, 336 Points neededLevel up: 28%, 336 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Jun 2006

Posts: 1,320

Location: East Coast, USA

Thomas is a splendid one to beholdThomas is a splendid one to beholdThomas is a splendid one to beholdThomas is a splendid one to beholdThomas is a splendid one to beholdThomas is a splendid one to beholdThomas is a splendid one to behold
Send a message via AIM to Thomas Send a message via MSN to Thomas Send a message via Yahoo to Thomas Send a message via Skype™ to Thomas  
 
Or you can place them in your forums header. I think the file is called something_header under your templates file.
Reply With Quote
Old 04-19-2007, 08:06 AM   #5

Captain Tycoon's Avatar

Title: Apprentice

Points: 2,540, Level: 14Points: 2,540, Level: 14Points: 2,540, Level: 14
Level up: 15%, 210 Points neededLevel up: 15%, 210 Points neededLevel up: 15%, 210 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Dec 2006

Posts: 275

Location: United Kingdom

Captain Tycoon is just really niceCaptain Tycoon is just really niceCaptain Tycoon is just really niceCaptain Tycoon is just really nice
Send a message via MSN to Captain Tycoon  
 
Quote:
Originally Posted by Thomas View Post
Or you can place them in your forums header. I think the file is called something_header under your templates file.
I think its called overall_header.tpl
__________________
Reply With Quote
Old 04-22-2007, 06:08 PM   #6

Title: Lurker

Points: 849, Level: 7Points: 849, Level: 7Points: 849, Level: 7
Level up: 8%, 101 Points neededLevel up: 8%, 101 Points neededLevel up: 8%, 101 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Mar 2007

Posts: 7

newguy78 will become famous soon enough
 
 
Quote:
Originally Posted by Thomas View Post
Or you can place them in your forums header. I think the file is called something_header under your templates file.
You don't want to drop the code in the overall_header only because the adsense will appear on low to non content pages which could get your account suspended. However it appears to be a rule Google doesn't really care much about.

For a better alternative I would suggest doing these code changes. This way you can place the Ad in the header but display them on the pages you want instead of those low content pages like the search and the memberlist. Just remember to place your adsense code in the place where it says +++your adsense code+++

Code:
#
#-----[ OPEN ]------------------------------------------
#

includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#

define('HEADER_INC', TRUE);

#
#-----[ AFTER, ADD ]------------------------------------------
#

//Visible for everyone

if ($googlead=="1") {
$google_ad = '<table class="forumline" width="95%" cellspacing="1" cellpadding="3" border="0">
         <tr>
            <td class="row1" height="100%" valign="top">
<div align="center">
++++++YOUR ADSENSE CODE HERE+++++++
</div>
</td>
  </tr>
</table>';
}

#
#-----[ FIND ]------------------------------------------
#

'SITENAME' => $board_config['sitename'],

#
#-----[ BEFORE, ADD ]------------------------------------------
#

'GOOGLE_AD' => $google_ad,
Code:
#
#-----[ OPEN ]------------------------------------------
#

/templates/yourtemplate/overall_header.tpl


 

</table></td>
         </tr>
      </table>

#
#-----[ AFTER, ADD ]------------------------------------------
#

{GOOGLE_AD}
Code:
#
#-----[ FIND ]------------------------------------------
#

define('IN_PHPBB', true);

#
#-----[ BEFORE, ADD ]------------------------------------------
#

$googlead="1";
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unwritten Rules of Forums Ryan Handling Problem Members 3 08-17-2008 03:17 AM
Jericho TV forum for sale - $2/day Lpspider Buy and Sell 3 01-18-2007 12:31 AM
phpBB Resource List gprime phpBB 1 06-16-2006 05:54 AM
Introduction to Forum Promotion htmlmaster Creating Interest 3 06-12-2006 05:53 PM
How to add Adsense in PhpBB? Jien Revenue and Advertising 2 04-06-2006 12:10 AM

AdminFusion

All times are GMT +1. The time now is 07:44 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72