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)

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?


All times are GMT. The time now is 12:53 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.01131 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete