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.

How do you add AdSense to a PHPBB3 board?

Discussion in 'phpBB' started by MPG, Mar 23, 2008.

  1. #1
    I have searched high and low and only found mods that do not seem to be supported or coded well.

    In phpbb2 you simply edited .tpl files and went on your way.
    SEMrush
    In phpbb3 I have found multiple sources quoted as saying to simply edit overall_footer or overall_header files but this does not work.

    I am looking to find out how to simply add phpbb3 adsense banners to my forum.

    Does anyone know how to do this? I do not want to use a mod.
     
    MPG, Mar 23, 2008 IP
    SEMrush
  2. Vishal_Lad

    Vishal_Lad Peon

    Messages:
    110
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    edit overall_header and overall_footer in the template
    then go to ur ACP and purge cache. :)
    hope that helps
     
    Vishal_Lad, Mar 24, 2008 IP
  3. munnakv

    munnakv Active Member

    Messages:
    293
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I am a new webmaster and recently started my forum with PHPBB3 - subsilver2 style.
    I do not know coding.
    Did some searching and tried to combine a few things here and there.
    This is what I did to have 2 rows of text advertisments after the first post.
    Now my ads look ok (atleast to me, I use firefox :p ). You can have a look at here.

    http://www.indianjobtalks.com/forum/index.php

    In the viewtopic_body.html template of subsilver2 (which is set as default style and other styles are deacticvated) above the line "<!-- END postrow -->" I pasted the following code:



    --------------------------Code begins-------------------------
    <!-- IF postrow.S_FIRST_ROW -->

    <table class="tablebg" width="100%" cellspacing="1">
    <tr class="row2">

    <td align="center" valign="middle">
    <b class="postauthor" style="color:#1845ad;"> G<span style="color:#ad1400;"> o</span> <span style="color:#c69e00;"> o</span> g<span style="color:#31b639;"> l</span> <span style="color:#ad1400;"> e</span> </b>
    </td>
    <td width="100%" height="25">
    <table width="100%" cellspacing="0">
    <tr>
    <td class="gensmall" width="100%"> &nbsp;</td>
    </tr>
    </table>
    </td>
    </tr>

    <tr class="row1">

    <td valign="top" class="profile">
    <table cellspacing="4" align="center" width="150">
    <tr>
    <td align="center"> </td>
    </tr>
    </table>

    </td>
    <td valign="top">
    <table width="100%" cellspacing="5">
    <tr>
    <td>

    <div class="postbody">

    <--Google adsense code here-->
    <--Google adsense code here-->


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

    <tr>
    <td bgcolor="#D1D7DC" colspan="2" height="1"> </td>
    </tr>
    </table>

    <!-- ENDIF -->

    --------------------------Code Ends-------------------------

    Do not forget to purge cache from ACP.

    I suggest you try this. It may work.
    Hey, I do not know coding, so don't ask me anything technically. :D


    Regards,

    munnakv
     
    munnakv, Apr 18, 2008 IP
  4. unclestink

    unclestink Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To install Google Adsense to your phpBB3, go to unclestinkstradingpost.com/phpbb3index.html for full instructions.
     
    unclestink, May 24, 2008 IP
  5. mikb

    mikb Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you for posting that. Its good for posting adds in the body.

    Here's something I tried for the sidebar.
    www.adobe-masters.com/dreamweaver/how-to-insert-adsense-into-phpbb3-theme-dreamweaver-assist
     
    mikb, Aug 14, 2008 IP
  6. remember123

    remember123 Peon

    Messages:
    620
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks u rof info
     
    remember123, Aug 16, 2008 IP
  7. greenghost

    greenghost Well-Known Member

    Messages:
    816
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #7
    does it work?
     
    greenghost, Aug 17, 2008 IP
  8. mark1993

    mark1993 Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hey thanks alot but how do i pass the template at sub silver i cant find how to go to page header or footer zzz....
     
    mark1993, Sep 15, 2008 IP
  9. Mobile-Monster

    Mobile-Monster Well-Known Member

    Messages:
    862
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    105
    #9
    In your case, go to styles/subsilver2/template/overall_header.html and overall_footer.html

    Cheers,
    MM
     
    Mobile-Monster, Sep 15, 2008 IP
  10. forwardmover

    forwardmover Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    This is a commercial solicitation. When you follow the link, this guy requires $10.
     
    forwardmover, Jan 15, 2009 IP