vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Put - Embed Google AdSense inside - beside - in first post [Just template edit] (https://vborg.vbsupport.ru/showthread.php?t=222389)

abdobasha2004 09-02-2009 10:00 PM

Put - Embed Google AdSense inside - beside - in first post [Just template edit]
 
1 Attachment(s)
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 :
Code:

<!-- message -->
After it put :
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>

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

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

Quote:

Originally Posted by maxie (Post 1896430)
any idea please

Try making your div tag height and width larger than your ad-unit size.

abdobasha2004 10-08-2009 08:25 AM

Quote:

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


Quote:

works only in ( (Vertical) Postbit Template )
I use it on horizontal as you can see in my image above !

Quote:

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.

xony 10-21-2009 08:12 AM

Is possible double conditional for usergroup?:)

isatice 11-22-2009 08:57 PM

Quote:

Originally Posted by maxie (Post 1896431)
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

4ums 11-28-2009 10:42 PM

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.

4ums 11-29-2009 12:03 AM

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.

Mum 12-08-2009 07:53 PM

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&amp;target=_blank");
  document.write ('&amp;cb=' + m3_r);
  if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
  document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
  document.write ("&amp;loc=" + escape(window.location));
  if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
  if (document.context) document.write ("&context=" + escape(document.context));
  if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
  document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://mummybrain.com/openx/www/delivery/ck.php?n=a63c7b09&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://mummybrain.com/openx/www/delivery/avw.php?zoneid=1&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a63c7b09' border='0' alt='' /></a></noscript>

</span>
</div>
</if>
        <div id="post_message_$post[postid]">$post[message]</div>
        <!-- / message -->


GTX2 12-08-2009 09:11 PM

1 Attachment(s)
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?

Code:

<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
Code:

$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
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
رائع جدا يسلموو


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01285 seconds
  • Memory Usage 1,806KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete