Back to vBulletin 3.7 Template Modifications

Adsense Inside the Post
Mod Version: 1.00, by unitedpunjab

This modification is in the archives.
vB Version: 3.7.0 Beta 6 Rating: (8 votes - 4.38 average) Installs: 41
Released: 05 Mar 2008 Last Update: Never Downloads: 10
Not Supported Template Edits Re-usable Code  

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

No files for download.

Screenshots

Click image for larger version
Name:	adsenseqv5.jpg
Views:	1833
Size:	57.1 KB
ID:	76792  

Similar Mods

Mini Mods Adsense Inside the Post vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024