Announcement

Collapse
No announcement yet.

Adsense Inside Posts

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adsense Inside Posts

    This will enable you to put Adsense code inside your posts at the top. You can exclude certain forum ids, that you don't want the Adsense to appear in (IE: private hidden staff forums). The Adsense will only appear in the first post also.

    Quoting the first post will not display the Adsense to the second post etc.

    In both "postbit" and "postbit_legacy" templates (or just add this to the template style you use instead of both): Search for this code!

    Code:
    <!-- message -->
    below that add this code:

    Code:
    <!-- adsense -->
    <if condition="!in_array($forum[forumid], array(1,2,3))">
    <if condition="$post[postcount] % $vboptions[maxposts] == 1">
    ADSENCE GOES HERE
    <br />
    <br />
    </if>
    </if>
    <!-- / adsense -->
    [1] You exclude forums id's in this code you don't want the Adsense to appear in: Just change the 1,2,3.
    Code:
    <if condition="!in_array($forum[forumid], array(1,2,3))">

    This does NOT exclude certain usergroups from seeing the Adsense code in posts (because the idea is to make money). But you can quite easy edit the code with a conditional to only show to guests. or hide from admin etc.

    I have not used the <div align="center">ADSENCE</div> "or" <center>ADSENCE</center> code to align the banners, because they are both depreciated now for WC3. But you can use it if you choose. The banner is better aligned to the left anyway, which is the default for text in posts.

    If you want some ideas of a good adsense banner to use: Use the "link" only banner, and use these colours below. Which is what the image attached uses.

    Adsense Add Type: Links Only
    Border Colour: #F5F5FF
    Background Colour: #F5F5FF
    Link Colour: #22229C
    DEMO PICTURE BELOW
    Last edited by MRGTB; Sun 22nd Jul '07, 3:49pm.
Working...
X