The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
show some html if post > X
I would put a block of html on a page only when the number of posts showed on the current page is bigger then X; what is the condition?
Is there a reference somewhere to the variables I can test in Conditions? <if condition="$??? > 1"> ...my html... </if> Thank you! |
#2
|
|||
|
|||
any idea? it should not be hard for the vb experts
|
#3
|
|||
|
|||
I think its
HTML Code:
<if condition="$post['postcount']"> <!-- You HTML --> </if> |
#4
|
|||
|
|||
isn't $post['postcount'] the number of the post showed? I'm interested on checking the number of posts showed on the current page.
Eg. if a thread has 22 posts and I've 15 posts per page I would have 15 for the first page and 7 for the second one Thank you! |
#5
|
|||
|
|||
I thought you meant the the number of posts on a page.
I'm not a 100% sure but you can try Code:
<if condition="$thread['replycount'] > X"> <!-- You HTML --> </if> |
#6
|
|||
|
|||
it works for the first page, but not for the second
$thread['replycount'] give the total number of replies to a thread; I need the number of replies on the current page. I found this escamotage: <if condition="$thread['replycount'] - $pagenumber*$perpage + $perpage > 1"> it works! but this not: <if condition="$thread['replycount'] - ($pagenumber-1)*$perpage > 1"> Thank you very much! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|