vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how can i add banner in postbit very page of the thread? (https://vborg.vbsupport.ru/showthread.php?t=257851)

Seleno 01-26-2011 10:34 AM

how can i add banner in postbit very page of the thread?
 
Hi There
i have banner in the postbit, it show in the first post in any thread

i want to add this banner in every first post of evert page
so users and guests can see the banner in every page for the thread
how can i do this plz?

waiting your help
thanx

Lynne 01-26-2011 03:34 PM

I think I told you over on vb.com that the keyword to search on is "remainder" because that is the operator you will be wanting to use. See these:
https://vborg.vbsupport.ru/showthrea...ight=remainder
https://vborg.vbsupport.ru/showthrea...ight=remainder

Seleno 01-27-2011 03:18 PM

hi there
thanx for your help
but by this i will post much codes in postbit then

PHP Code:


<if condition="$post['postcount'] == 21">
an ad
<if>
<if 
condition="$post['postcount'] == 31">
an ad
<if>
<if 
condition="$post['postcount'] == 41">
an ad
<if>
<if 
condition="$post['postcount'] == 51">
an ad
<if> 

this will be much !!!
how can i do this for the last page then?

Lynne 01-27-2011 07:33 PM

Did you look at the threads I linked to? You didn't even use the remainder function that is being used in those threads.

Seleno 01-31-2011 04:23 PM

i dont know who to use the remainder

i saw the thread, but the php i dont use !!!

Lynne 01-31-2011 04:45 PM

This is an example of what works for every fourth post when you have 25 posts per page:
HTML Code:

<if condition="($post[postcount] -4) %25== 0">
</if>

So, adjust that for your own use. Change 4 to 1 for first post and 25 to whatever for the number of pages. I'd actually go look into finding that variable and use it instead, but that's just me.


All times are GMT. The time now is 01: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.01065 seconds
  • Memory Usage 1,724KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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