The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Put - Embed Google AdSense inside - beside - in first post [Just template edit] Details »» | |||||||||||||||||||||||||||
Put - Embed Google AdSense inside - beside - in first post [Just template edit]
Developer Last Online: Sep 2019
This template edit will make any adsense code or even any advertisement code run beside and embedded in the first post of showthread
as seen on : http://www.nmisr.com/vb/ - e.g : http://www.nmisr.com/vb/showthread.php?t=34327 screen shot : Value : 1- Markedly increases CTR 2- better look than other places 3- Any code can be implemented 4- Other Ad networks also can be used, you can put any thing beside every first post Steps : Find template : postbit Find : Code:
<!-- message --> Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))"> <div class="postbit_adcode"> <span style="float: right; width: 340px; height: 285px;"> Your Code Goes Here </span> </div> </if> float : right or left ... as you like width : ad width in pixels (usually give some extra 3 or 5 pixles for better look) height : ad height in pixels (usually give some extra 3 or 5 pixles for better look) Show Your Support
|
Comments |
#22
|
||||
|
||||
add those codes to postbit_legacy instead of postbit
|
#23
|
||||
|
||||
anyway this is a great mod but it would be greater if it could add adsense to first post of each page instead of first post of each thread
|
#24
|
|||
|
|||
I cannot seem to do this do i just copy paste into the bit under message i know how to do it but not what to put in can you help thank you.
|
#25
|
|||
|
|||
I can do it but it just blanks out all posts can you help a stressed person lol
been trying for hours |
#26
|
|||
|
|||
How can I edit this so the ad shows on the 2nd or 3rd post?
Thanks. |
#27
|
|||
|
|||
I've added this code when you've stated - but can't get anything to show at all, it just doesn't seem to affect my site at all. can you please help me?
Code:
<!-- message --> <if condition="(($post[postcount] % $vboptions[maxposts] == 1))"> <div class="postbit_adcode"> <span style="float: right; width: 478px; height: 70px;"> <!--/* OpenX Javascript Tag v2.8.1 */--> <script type='text/javascript'><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://mummybrain.com/openx/www/delivery/ajs.php':'http://mummybrain.com/openx/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=1&target=_blank"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //]]>--></script><noscript><a href='http://mummybrain.com/openx/www/delivery/ck.php?n=a63c7b09&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://mummybrain.com/openx/www/delivery/avw.php?zoneid=1&cb=INSERT_RANDOM_NUMBER_HERE&n=a63c7b09' border='0' alt='' /></a></noscript> </span> </div> </if> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> |
#28
|
|||
|
|||
i'm looking to install this, but display ads in the middle of the post.
check attached image please Any way of doing this? |
#29
|
||||
|
||||
تسلم يا غالى
|
#30
|
|||
|
|||
This is an awesome placement for an ad, but it will get screwed up on my fixed width forum is someone puts a large picture in the first post. Is there anyway a conditional could scan to see if an image is present in the post and to not display the ad if there is an image?
|
#31
|
|||
|
|||
When the first post contains a quote answer, ads show above the quote block. Is it possible to display beside the quote block?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|