Advertisement "poster" as second post on page -- mimics the post of a real user.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Keyser520
    Senior Member
    • Feb 2006
    • 122

    Advertisement "poster" as second post on page -- mimics the post of a real user.

    I have designed the adsense code to appear as the second post on every page AND to look very similar to a real poster. Please note that this code has NOT been tested on the postbit but ONLY on post bit legacy. It looks like a post looks in the legacy style, NOT the new style.

    You can change the name of the "poster", their stats, etc.

    I currently have mine set to display as "Advertisement" with the join date of "the beginning", location of "everywhere" and post count of "lots". You can easily change these values. You can also add an "avatar" for the advertisement if you desire to do so. I also have it set to that the hover over the online icon says "Google is online". You would want to change this if you are using this for something that isn't adsense.

    The post number that is normally displayed next to a post is shown as halfway between the previous post and next one. i.e. If the top of the page begins with post number 20, then the advert shows a post number of 20.5

    in your admin cp, go to..styles & templates > expand all > expand postbit templates > edit postbit legacy

    add the following code to the END
    PHP Code:
    <!-- Advertisement post code-->
    <if 
    condition="$post[postcount] % $vboptions[maxposts] == 1">
    $spacer_open
    <div style="padding:0px 0px $stylevar[cellpadding]px 0px">
     
    <
    table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
    <
    tr>
    <
    td class="thead" style="font-weight:normal" align="left"
    <!-- 
    status icon and date -->
    Sponsored Ads 
    </td>
    <
    td class="thead" style="font-weight:normal" align="right">
    &
    nbsp;
    #<a><strong>$post[postcount].5</strong></a>
    </td>
     
    </
    tr>
    <
    tr valign="top">
    <
    td class="alt2" width="175">
     
    <
    div>
    <
    class="bigusername" href="">Advertisement</a>
    </
    div>
     
    <
    div class="smallfont">Sponsored posting</div>
    <
    div class="smallfont">
    &
    nbsp;<br />
    <!-- 
    PUT ADD AVATAR IMAGE HERE -->
    </
    div>
     
    <
    div class="smallfont">
    &
    nbsp;<br />
    <if 
    condition="$post['joindate']"><div>$vbphrase[join_date]: the beginning</div></if>
    <if 
    condition="$post['field2']"><div>$vbphrase[location_perm]: everywhere</div></if>
    <if 
    condition="$post['age']"><div>$vbphrase[age]: really old</div></if>
    <
    div>
    $vbphrase[posts]: lots
    </div>
    </
    div
     
    </
    td>
    <
    td class="alt1">
     
    <!-- 
    icon and title -->
    <
    div class="smallfont">
    <if 
    condition="$post['title']"><strong>Sponsored...</strong></if>
    </
    div>
    <
    hr size="1" style="color:$stylevar[tborder_bgcolor]/>
    <!-- / 
    icon and title -->
     
    <!-- 
    message -->
    <
    div align="center">
    <!-- 
    PUT GOOGLE CODE HERE -->
    </
    div>
    <!-- / 
    message -->
     
     
    </
    td>
    </
    tr>
    <
    tr>
    <
    td class="alt2">
    <
    img class="inlineimg" src="images/statusiconrunes/user_online.gif" alt="Google is online" border="0" />
    &
    nbsp;
    </
    td>
    <
    td class="alt1" align="right">
     
    <!-- 
    controls -->
    <!-- / 
    controls -->
    </
    td
    </
    tr>
    </
    table>
    </
    div>
    $spacer_close
    </if>
    <!-- / 
    Advertisement Post Code --> 
    Last edited by Keyser520; Wed 22 Feb '06, 12:59pm.
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Pleaes be advised that we have been notified by other members that having ads displayed like this is against the Adsense TOs.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

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