1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Serving Adsense from phpbb2

Discussion in 'Placement / Reviews / Examples' started by MattBeard, Dec 31, 2005.

  1. #1
    I have a site that uses phpbb2 and would like Adsense served on it.

    I have currently hacked the code myself to get them displayed, but I assume that there is a neat way to get this done automatically.

    Any site owners got experience of this?
     
    MattBeard, Dec 31, 2005 IP
  2. devin

    devin Guest

    Messages:
    4,461
    Likes Received:
    449
    Best Answers:
    0
    Trophy Points:
    0
    #2
    take off the hacked code before you lose your account, while waiting for an answer here. :) i can't help, im sorry.
     
    devin, Dec 31, 2005 IP
  3. MattBeard

    MattBeard Peon

    Messages:
    259
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I mean that I hacked the php code

    I think that the code served is normal AdSense code...
     
    MattBeard, Dec 31, 2005 IP
  4. devin

    devin Guest

    Messages:
    4,461
    Likes Received:
    449
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh...sorry, my bad. :D
     
    devin, Dec 31, 2005 IP
  5. Nasruddin

    Nasruddin Peon

    Messages:
    175
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    handle that code with care:)
     
    Nasruddin, Dec 31, 2005 IP
  6. pwaring

    pwaring Well-Known Member

    Messages:
    846
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    135
    #6
    If you search the modficiations database on the phpBB web site, you'll find a couple of ways to change your forums to display Adsense. The adsense revenue sharing mod seems to do something simliar to what happens on Digital Point, with regards to displaying Adsense and crediting users for starting threads.
     
    pwaring, Dec 31, 2005 IP
  7. MattBeard

    MattBeard Peon

    Messages:
    259
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    OK... I have made my own mod as follows:

    In page_tail.php I examine the name of the body template file that has just been used. If this is index_body, viewforum_body or viewtopic_body then I include() the ad text.

    This means that ads appear at the foot of the main index page, the forum index page and the page displaying a thread. No other pages carry ads.
     
    MattBeard, Dec 31, 2005 IP
  8. Bliss

    Bliss Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You could also use phpAdsNew to handle ad delivery. It gives you more flexibility.
     
    Bliss, Jan 2, 2006 IP
  9. pdave

    pdave Guest

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Matt,

    I run an phpbb board. Have been running it for a year now. I have made mods to overrall.header.php and overall_footer. Just added the code as is. No problems so far.
     
    pdave, Jan 2, 2006 IP
  10. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I run a an ad management mod to insert adsense after the first post. Can't remember where I found it, probably phpbbhacks.com.
     
    mdvaldosta, Jan 2, 2006 IP