View Full Version : how can i add banner in postbit very page of the thread?
Seleno
01-26-2011, 10:34 AM
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/showthread.php?t=223911&highlight=remainder
https://vborg.vbsupport.ru/showthread.php?t=257332&highlight=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
<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:
<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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.