Results 1 to 8 of 8

Best Adsense configuration within posts

This is a discussion on Best Adsense configuration within posts within the Ad Networks forums, part of the Monetizing category; I have found that the 336 x 280 rectangle at the bottom of the first post (within the post, not ...

  1. #1
    Junior Member
    Real Name
    plasticonly
    Join Date
    Jan 2008
    Posts
    13
    Liked
    0 times

    Best Adsense configuration within posts

    I have found that the 336 x 280 rectangle at the bottom of the first post (within the post, not below) converts great... in fact, it's by far my best. But adding that in is easy since you can do so within the Ad Location Templates. So my question is, how can one configure it so this same Adsense configuration is replicated within X number of posts.... i.e. within the 1st and 10th post, or every 3 posts, etc.

    Ideally, what I would like to do right now is try it out within the first post and the last post, but only if there are, say, 3 or more posts within the thread. Because otherwise it would be ad after ad if there were only 2 posts.

    Any Adsense/vB gurus out there know how to do this? I'm running 3.7.5 on this particular forum I'm working on. I did try the search on here but wasn't able to find code for this particular arranagement... so if you know it, you are a genius

    thank you!

  2. #2
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    The Forum Hosting - Forum Hosting from the Forum Experts

  3. #3
    Junior Member
    Real Name
    plasticonly
    Join Date
    Jan 2008
    Posts
    13
    Liked
    0 times
    Thanks Michael. But do you know where I can post this code if I want the ad to show up within the signature instead of below the entire post?

    <if condition="$post['islastshown']">

  4. #4
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    5 times
    Does that if work in your ad template?
    The Forum Hosting - Forum Hosting from the Forum Experts

  5. #5
    Junior Member
    Real Name
    plasticonly
    Join Date
    Jan 2008
    Posts
    13
    Liked
    0 times
    Unfortunately not.

    Here's what the code looks like to display it at the bottom of the first post (this works and this is what I currently am using):

    $template_hook[postbit_signature_start]
    $ad_location[ad_showthread_firstpost_sig]

    <if condition="$post['signature']">
    <!-- sig -->
    <div>
    __________________<br />
    $post[signature]
    </div>
    <!-- / sig -->
    </if>

    $template_hook[postbit_signature_end]
    Do you know what I do to modify it so it also shows the ad after the last post too if there are 2 or more replies. Would it be something like this?

    $template_hook[postbit_signature_start]
    $ad_location[ad_showthread_firstpost_sig]

    <if condition="$post['signature']">
    <if condition="$post['islastshown'] AND $GLOBALS[threadinfo][replycount] >= 3">
    <!-- sig -->
    <div>
    __________________<br />
    $post[signature]
    </div>
    <!-- / sig -->
    </if>

    $template_hook[postbit_signature_end]
    Because this is what I tried and it doesn't work. I think I'm not doing the "if's" correctly?

  6. #6
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    You will need to end the "if" code

    HTML Code:
     </if>
    it will be
    HTML Code:
    $template_hook[postbit_signature_start]
            $ad_location[ad_showthread_firstpost_sig]
     
            <if condition="$post['signature']">
            <if condition="$post['islastshown'] AND $GLOBALS[threadinfo][replycount] >= 3">
            <!-- sig -->
                <div>
                    __________________<br />
                    $post[signature]
                </div>
            <!-- / sig -->
            </if>
     </if>
            $template_hook[postbit_signature_end]

  7. #7
    Junior Member
    Real Name
    plasticonly
    Join Date
    Jan 2008
    Posts
    13
    Liked
    0 times
    Marco,

    Thanks so much for your help - I really appreciate it.

    So I got it working - I'll see how it performs. I just plugged Adsense into this forum and I'll see how it performs now with the two ads. Thanks again.

  8. #8
    Senior Member
    Real Name
    Marco Mamdouh
    Join Date
    May 2008
    Location
    Egypt
    Posts
    2,627
    Liked
    3 times
    Blog Entries
    1
    Great!
    You are welcome

Similar Threads

  1. standard configuration
    By barbaro in forum General Discussion
    Replies: 3
    Last Post: 03-13-2009, 01:46 PM
  2. personal configuration
    By svanderclock in forum Pre-Sales Questions
    Replies: 1
    Last Post: 01-30-2008, 05:50 PM
  3. Variable for Show Adsense after X posts
    By jarod1981® in forum Ad Networks
    Replies: 1
    Last Post: 01-10-2008, 06:44 PM
  4. A look on my Sitemap-Configuration
    By symptome in forum General Discussion
    Replies: 1
    Last Post: 09-07-2007, 04:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •