PDA

View Full Version : Mini Mods - adsense unit on 2nd post and 1st profile on every thread page


Mr.samy
04-04-2008, 10:00 PM
Hello dears ,

this modification from Adsense Inside the Post (https://vborg.vbsupport.ru/showthread.php?t=140664) ..

in postbit_legacy template find


<div id="post_message_$post[postid]">$post[message]</div>


and add before that


<if condition="(($post[postcount] % $vboptions[maxposts] == 2)) and ($show['guest'])">
<span style="margin: 2px; float: right; width: 201px; height: 91px;">
ADSENSE unit CODE HERE
</span>
</if>


Note : $vboptions[maxposts] == 2 >>>>> this control of the the ads which appear on post number ... :)
Demo 1 in attachment

Now :

after member profile in 1st post
in postbit_legacy template find

$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]


after that add

<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])">
<center>

adsense unit code here

</center>
</if>


Note : Ad is shown to guests Only remove "and ($show['guest'])" to show to all .

Demo 2 in attachment

Jasem
04-06-2008, 10:53 AM
Wow!, Thank you very much :)