Adsense On Forums - phpbb

Discussion in 'Google' started by joecool6101, Jan 19, 2007.

  1. #1
    I have forums in phpbb and recently added a new look which took away my ads. I want to know what files and stuff i need to edit to put the ads back in. Also i want to have the ads in the middle of every thread. Help would be appreciated thanks.
     
    joecool6101, Jan 19, 2007 IP
  2. cldnails

    cldnails Well-Known Member

    Messages:
    1,529
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    120
    #2
    There are mods available that you can add to your forum. I'm not sure of any links right now, but there should be some available that are fairly easy to edit. Otherwise, you need to go directly into your template code yourself and cut'npaste away.
     
    cldnails, Jan 19, 2007 IP
  3. usmcpv

    usmcpv Peon

    Messages:
    283
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's easiest to just add them into the code yourself. Be careful to only put the ads on pages with content. Not registration forms and search pages. Google is strict about that.
     
    usmcpv, Jan 19, 2007 IP
  4. joecool6101

    joecool6101 Well-Known Member

    Messages:
    2,589
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    135
    #4
    ya.. but what file do i need to edit. where do i put the line of code to have the ad? i seen somewhere it was like viewforum.php but i have no clue where...
     
    joecool6101, Jan 19, 2007 IP
  5. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can edit the viewtopic_body.tpl files in the templates directories -- for instance templates/subSilver/viewtopic_body.tpl.

    If you let users change the template, you need to edit each one for each template.

    In my forum I placed it so that it would appear at the top of each topic when that was displayed. You might be able to play around with the location to get it to display between entries in a topic.
     
    clancey, Jan 19, 2007 IP