View Full Version : Show Thread Enhancements - Put - Embed Google AdSense inside - beside - in first post [Just template edit]
abdobasha2004
09-02-2009, 10:00 PM
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 :
http://img338.imageshack.us/img338/364/adso.jpg
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 :
<!-- message -->
After it put :
<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>
you should notice that you can edit values in Green to suit your ad.
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)
elzarie
09-03-2009, 06:19 PM
Thanks abdo
جامد اوي المودفيكشن دا
avsunforum
09-03-2009, 08:20 PM
thanks :)
bakry3d
09-03-2009, 09:03 PM
شكرا الك يا مان
m2006
09-04-2009, 04:05 AM
thank you good
saso2.com
09-04-2009, 06:36 AM
thank you
جامد يا عبده يعطيك الف عافيه
Sureshkumar
10-03-2009, 03:43 AM
Cool Dude. it worked great
imported_silkroad
10-03-2009, 05:47 AM
Nice and simple, thanks abdobasha2004.
OBTW, abdobasha2004,
What was your actual increase in CTR?
imported_silkroad
10-03-2009, 06:05 AM
PS: One issue with this template mod is that the Quote button inside the post no longer appears at the bottom of the page when the size (height) of the text in the post is less than the height of the placement.
maxie
10-08-2009, 03:33 AM
not work for me...
i want to put here
http://img44.imageshack.us/img44/3381/snap288.png
but not visible
here is my code
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
<div class="postbit_adcode">
<span style="float: right; width: 250px; height: 250px;">
<script type="text/javascript"><!--
google_ad_client = "pub-2822467022212632";
/* 250x250, created 10/7/09 gsm-phone */
google_ad_slot = "2149853735";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</span>
</div>
</if>
any idea please
maxie
10-08-2009, 03:45 AM
works only in ( (Vertical) Postbit Template )
any idea how to works in postbit Template not in ( (Vertical) Postbit Template)
imported_silkroad
10-08-2009, 07:38 AM
any idea please
Try making your div tag height and width larger than your ad-unit size.
abdobasha2004
10-08-2009, 08:25 AM
One issue with this template mod is that the Quote button inside the post no longer appears at the bottom of the page when the size (height) of the text in the post is less than the height of the placement.
this easy
first i recommend using small ads like 200X200
OR
find : ____________
this is put before signature in post bit
then before it add some lines, just click Enter, make some lines
this will make space for ads
works only in ( (Vertical) Postbit Template )
I use it on horizontal as you can see in my image above !
not work for me...
i want to put here
http://img44.imageshack.us/img44/3381/snap288.png
but not visible
here is my code
try in postbit and in postbit_legacy
maxie
10-08-2009, 08:41 AM
can you guide us sir ? and in which line we put that code...
maxie
10-08-2009, 09:46 AM
i got it sir thanks for the hint
v12kid
10-10-2009, 12:06 PM
is this ok with TOS for google?
Looks like a great mod :)
suraja
10-11-2009, 09:47 PM
I think it's ok with adsense TOS
abdobasha2004
10-12-2009, 12:04 AM
of course it is OK with Google TOS
munnakv
10-13-2009, 04:08 PM
Thanks. installed.
Is possible double conditional for usergroup?:)
isatice
11-22-2009, 08:57 PM
works only in ( (Vertical) Postbit Template )
any idea how to works in postbit Template not in ( (Vertical) Postbit Template)
add those codes to postbit_legacy instead of postbit
isatice
11-22-2009, 08:59 PM
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
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.
I can do it but it just blanks out all posts can you help a stressed person lol
been trying for hours:eek::confused:
AshMagic
12-05-2009, 04:04 PM
How can I edit this so the ad shows on the 2nd or 3rd post?
Thanks.
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?
<!-- 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=a6 3c7b09' border='0' alt='' /></a></noscript>
</span>
</div>
</if>
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
i'm looking to install this, but display ads in the middle of the post.
check attached image please
Any way of doing this?
ahmedeldeep
12-08-2009, 11:16 PM
تسلم يا غالى
wacnstac
03-04-2010, 05:05 PM
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?
Levi75
03-27-2010, 08:20 PM
When the first post contains a quote answer, ads show above the quote block. Is it possible to display beside the quote block?
naturalparent
05-06-2010, 10:38 AM
hmm... i have no comments in my forum anymore for some reason... what's the lin of code it goes before as opposed to after?
Silmarillion
06-02-2010, 12:56 PM
How to combine the following conditions?
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
$post[islastshown]
AlgeriaToday
05-15-2011, 11:30 AM
Sehr Gut !:cool:
goldoff
12-14-2011, 10:30 PM
And still installing!
Working perfectly
Thank you!
Midohash
02-20-2012, 11:14 PM
Great Mod, post count is flexible, I applied it to appear in post number 6 on each page, Installed, Many thanks.
lordi
03-06-2012, 05:15 PM
Dear Mr...how can I stop this adsense code in some sections ??
I used to have this code
<if condition="$post[postcount] == 1">
<if condition="($thread['forumid'] != '56') AND ($thread['forumid'] != '27') AND ($thread['forumid'] != '11')">
<center>
ADSENSE CODE HERE <center/>
</if></if>
How can use ur code = adsense inside thread + hide it from some sections ???
matrex722
09-01-2012, 06:57 PM
great
رائع جدا يسلموو
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.