Back to vBulletin 3.6 Template Modifications

Adsense Inside the Post
Mod Version: 1.01, by unitedpunjab

This modification is in the archives.
vB Version: 3.6.8 Rating: (9 votes - 4.89 average) Installs: 171
Released: 28 Feb 2007 Last Update: 03 Mar 2007 Downloads: 837
Not Supported Template Edits  

This little template modification allows you to put an Ad inside the post with Text wrapped around the Ad.

See Screenshot.

In postbit template replace
Code:
 <!-- message -->
  <div id="post_message_$post[postid]">$post[message]</div>
   <!-- / message -->
With
Code:
        <!-- message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
        ADSENSE CODE HERE
</span>
</if>
    <div id="post_message_$post[postid]">$post[message]</div>
              <!-- / message -->
  • you will have to replace ADSENSE CODE HERE with the actual code.
  • The code is for 300 * 250 Medium Rectangle Format,Edit width & height parameters if you want to use any other format.
  • Ad is shown on the first and last post (modify if you want)
  • Ad is shown to guests Only ( remove "and ($show['guest'])" to show to all)
Version History:
v 1.0.1 :Ads displayed after the first post on every page (instead of just the first page)

Tip: To remove quote button for guests.
Replace
Code:
<if condition="$post['replylink']
with
Code:
<if condition="$post['replylink'] AND $show['member']">

Download

This modification is archived, downloads are still allowed.

File Type: %1$s AdsInPost.txt (630 Bytes, 868 downloads)

Screenshots

Click image for larger version
Name:	adsenseqv5.jpg
Views:	5124
Size:	57.1 KB
ID:	61136  

Similar Mods

Mini Mods Adsense Inside the Post vBulletin 3.7 Template Modifications

vblts.ru supports vBulletin®, 2022-2024