vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Show a banner after first post? (https://vborg.vbsupport.ru/showthread.php?t=319525)

gobears20 07-18-2015 01:29 AM

Show a banner after first post?
 
1 Attachment(s)
Hi I was wondering if there is any where I could look to add this after the first post? Is this under the postbit template? Also is there some places I could go look to get information about this?

Elixar 07-18-2015 03:38 AM

You should be able to do it within the Ad section in the Admin CP?

gobears20 07-18-2015 10:18 AM

Yeah, I found a way to do this by adding this code to the postbit.
But I am wanting to add the sponsored link and table part to the around the information to make it blend in wwith my site.

PHP Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '4')">
  <
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" 

HEIGHT=90></a>
      </
div>
</
div>
</
vb:if> 


gobears20 07-18-2015 10:28 AM

1 Attachment(s)
Mine looks like this but I would like to add the table part around it and add sponsored links like in the print screen in my first post. Anybody have any ideas? :)

gobears20 07-19-2015 11:48 PM

1 Attachment(s)
I ended up getting this working. Not sure if this will help anybody but this link really helps with the conditions: http://www.vbulletin.com/forum/forum...hread?t=198875

What I ended up doing was creating this to show an ad after every first post on every page, in certain forums, for specific user groups.

PHP Code:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 AND in_array

(
$GLOBALS[forumid], array(6,7,18)) and is_member_of($bbuserinfo,6)">
<
div class="postbit">
<
h3 class="posthead">&nbsp; &nbsp;TSET2</h3>
<
div class="postbody">--TEST--</div>
</
div>
<
br />
</
vb:if> 


Here is what it looks like...


All times are GMT. The time now is 02:34 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.01866 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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