The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
For some reason this works fine on in ad_showthread_firstpost but doesn't seem to work on ad_showthread_beforeqr or if you do something like
Code:
<if condition="THIS_SCRIPT == 'showthread' and $post[postcount] == 1>hello</if> It only seems to work as vb is producing the posts not in templates calls after. In 3.8 anyway. Sorry yes I'm using 3.8 but the conditionals are almost exactly the same so I didn't think anyone would mind:erm: |
#12
|
||||
|
||||
Possibly this.
Code:
<vb:if condition="THIS_SCRIPT == 'showthread' and $GLOBALS[postcount] == 1>hello</vb:if> |
#13
|
|||
|
|||
Nope. Doesn't seem to know the postcount outside of the postbit template itself. Not a big deal anyway. Thanks for your help.
|
#14
|
|||
|
|||
To display Ad after the 5th post ONLY if the thread has 10 posts, I used the below conditional -
Code:
<vb:if condition="($post['postcount'] % $vboptions['maxposts'] == 5) AND ($post['postcount'] > 9)"> Please help me with the workable conditional. Thanks. |
#15
|
|||
|
|||
Hello All,
Hope this might be useful to some one, To display Ad after the 5th post ONLY if the thread has minimum 6 posts the below conditional works - Code:
<vb:if condition="($post['postcount'] % $vboptions['maxposts'] == 5) AND ($GLOBALS[threadinfo][replycount] % $vboptions['maxposts'] <> 4)"> |
Благодарность от: | ||
tbworld |
#16
|
|||
|
|||
hi all, this is useful, not sure if it what im looking for but it might be, i need to put an ad underneath the first post just for 2 usergroups and only in one forum.
could this do that for me, if so, in what template and where within the template where would i need to put the conditionals. i was thinking something like this: Code:
<vb:if condition="$post['postcount'] % $vboptions['maxposts'] == 1"> <vb:if condition="is_member_of($bbuserinfo, 1,2,3)"> <vb:if condition="$GLOBALS['forumid'] == X"> SHOW AD </vb:if> </vb:if> </vb:if> Craig |
#17
|
|||
|
|||
thank you it works very well
can i ask you what number should i place inside that code if i want to display additional banners like this after post 12 if thread has at least 18 posts after post 24 if thread has at least 30 posts or something like that. i.e. i will be placing many banners on 1 page, since we have max post number at 40 so there is a lot of space scrolling down. we put many ngo ads and need the extra space, and since they are not paid ads but ngo messages, we dont mind showing them to our readers . thank you in advance to whoever will help !! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|