vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Google Adsense after first post (or other advertisements) (https://vborg.vbsupport.ru/showthread.php?t=231857)

meissenation 01-08-2010 02:01 PM

Quote:

Originally Posted by haluk (Post 1948166)
How Can I add an ad after second or third posts ?

Is there a way ?

Change:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">

to:
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '2')">
-or-
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '3')">

respectively.

albrens 01-08-2010 04:42 PM

Thank you

But there a blank speac :(

Have look

http://upload.traidnt.net/upfiles/Sg776678.png

atgv 01-08-2010 07:46 PM

reserved ;)

Gene Steinberg 01-10-2010 02:36 PM

How about a method to reduce the width to the normal maximum of 728pixels, and then center that object without the gray border? Or just eliminate the gray background?

How is that done?

Also is there a code to have it go after the 1st and 4th posts and perhaps the last post too?

Peace,
Gene

SpongeBob71 01-14-2010 04:46 PM

Does anyone else have the issue of NOT having a space between the end of the first thread and the mods grey box? Mine is stuck together and does not have the space.

I have 4.1.

-SB

cagbaazee 01-16-2010 03:33 AM

I donot find the code here... please discuss

justhackerz 01-16-2010 06:45 AM

I got alot of Error with this try to Fix it to work with AdBrite.:mad:

Cableguy69 01-16-2010 08:24 AM

Quote:

Originally Posted by Gene Steinberg (Post 1951984)
How about a method to reduce the width to the normal maximum of 728pixels, and then center that object without the gray border? Or just eliminate the gray background?

How is that done?

Also is there a code to have it go after the 1st and 4th posts and perhaps the last post too?

Peace,
Gene

Quote:

Originally Posted by SpongeBob71 (Post 1955712)
Does anyone else have the issue of NOT having a space between the end of the first thread and the mods grey box? Mine is stuck together and does not have the space.

I have 4.1.




-SB

Method 1

PHP Code:

<br \>
<
vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">
  <
div class="body">
        <
div style="width: 100%; text-align: center">
        <
a href="ink to ad"><img src="http://your-ad-image-link.com" width="728"></a>
      </
div>
</
div>
</
vb:if> 

Method 2

PHP Code:

  <br \>
         <
div class="body">
        <
div style="width: 100%; text-align: center"
        <
a href="ink to ad"><img src="http://your-ad-image-link.com" width="728"></a>       
        </
div>
  </
div



Both methods above will make a space get rid of the border and resize the images to 728px wide.

if you want to resize the height you should add height="X" (change x to your own value)

EG: <img src="http://your-ad-image-link.com" width="728" height="75">

The grey border is caused by <div class="attachments"> so in my examples I've changed it to <div class="body"> to make the border disappear.

barcena 01-16-2010 04:58 PM

I used the first option

Quote:

?In the "postbit" or "postbit_legacy", add to the end:
Where it says Enter Text i did enter the Ad HTML code... Is that right?

I can't see anything so far between posts or in any place at all, what I'm doing wrong please?

barcena 01-16-2010 05:29 PM

1 Attachment(s)
Id manage, my mistake, was entering the code after the very ending after the raw thing, sorry i'm not coder at all.

Now, if I can just get rid of those white areas will be a blessing.


All times are GMT. The time now is 04:18 PM.

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.01129 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_php_printable
  • (4)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