Announcement

Collapse
No announcement yet.

Adsense after 1st post and last post?

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

  • Adsense after 1st post and last post?

    I can get adsense to work with the 1st or the last post..but how do I have it show up for both 1st and last post? I used the code below..anyone have any advice?


    Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you are using)

    Add the blue code to the very bottom of the template:

    Code:
    </div>
    <!-- / post $post[postid] popup menu -->

    <if condition="$show['spacer']">
    </div>
    $spacer_close
    </if>
    <!-- / post #$post[postid] -->

    <if condition="$post[postcount] == 1">

    $spacer_open
    <div style="padding:0px 0px $stylevar[cellpadding]px 0px">

    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
    <td class="thead" align="left">Sponsored Links</td>
    </tr>
    <tr>
    <td class="alt1" align="center">
    BANNER CODE HERE
    </td>
    </tr>
    </table>

    </div>
    $spacer_close

    </if>
    \

  • #2
    Try changing this...
    Code:
    <if condition="$post[postcount] == 1">
    to...
    Code:
    <if condition="$post[postcount] == 1 OR $post['islastshown']">
    Lats...

    Comment


    • #3
      Well to be more specific I would like to have adsense on first post and then some links on the last post...so the code would be different.
      \

      Comment


      • #4
        Yes, and the answer would be different too

        Replace the first condition with this and repeat your code...
        Code:
        <if condition="$post['islastshown']">
        Lats...

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X