Back to vBulletin 3.5 Template Modifications

Adsense after first post ONLY if there are more than X posts in the thread
Mod Version: 1.00, by Moparx

This modification is in the archives.
vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 27
Released: 29 Jan 2006 Last Update: Never Downloads: 1
Not Supported Template Edits  

Many forums use three ad units in their threads.. at the top, within the content, and then at the bottom. This mod was made with this kind of set up in mind.
The problem is the thread pages can tend to look horrible and overrun with ads if there is not enough content (say only a couple one line posts) between the ad units.

This isnt for everyone as some people prefer to keep all their ads showing no matter what.. but for those interested, this template modification only displays adsense after first post if there are over X amount of posts in the thread.

If you want everyone to see the ads you can remove the is_member_of AND line. Otherwise, you can add the user groups who you want to see the ads to it. (Don't forget to replace 'X' with a numerical value of your choice)

Place the following at the very end of the postbit template:
PHP Code:
<if condition="is_member_of($bbuserinfo, 1,2) AND !$GLOBALS['FIRSTPOSTID'] AND $GLOBALS[threadinfo][replycount] >= X">
$spacer_open

<div class="page" style="width:100%; text-align:left">
    <
div style="padding:0px 0px 6px 0px">    

        <
table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
        <
tr>
            <
td class="alt1">
            
                <
div align="center">
                 <!-- 
adsense goes here -->
                </
div>
            
            </
td>
        </
tr>
        </
table>

    </
div>    
</
div>

$spacer_close 
</if> 

Download

No files for download.

Similar Mods

Mini Mods adsense unit on 2nd post and 1st profile on every thread page vBulletin 3.6 Template Modifications
Prevent Post More Than 1 post in thread before X posts vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024