The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Conditionnal number to posts
Hey
I search a conditionnal for limit to acces (show) with the number to posts please |
#2
|
|||
|
|||
In what context?
|
#3
|
||||
|
||||
in the template, for hide to text for example if the member don't have x posts
|
#4
|
|||
|
|||
Check the hide hacks out. I know that one of them has a post count requirement, so it is possible that some of the others do too.
|
#5
|
|||
|
|||
There is no need to use a hack for this if you wish to add it directly to the template, simply doing the following will work:
<if condition="$vbulletin->userinfo['posts'] > 10"> Hidden text </if> Obviously change the number 10 with the minimum amount of posts required to view the text. If you want to do this inside a post, you will need to install a hide hack. Hope this helps |
#6
|
||||
|
||||
Don't work
i test with so <if condition="$vbulletin->userinfo['posts'] = 10"> idem, don't work |
#7
|
|||
|
|||
That's because you're setting their post count to 10 rather than comparing it. If you want to show it only when they have exactly 10 posts you need to use == like so:
<if condition="$vbulletin->userinfo['posts'] == 10"> However if you want to show only if they have more than 10 posts you need to use > like so: <if condition="$vbulletin->userinfo['posts'] > 10"> ..and to show only if they have less than 10 posts you use < like so: <if condition="$vbulletin->userinfo['posts'] < 10"> |
#8
|
||||
|
||||
For me, it doesn't work
I test with a member with 2 post, with this in the template postbit: Code:
<if condition="$vbulletin->userinfo['posts'] > 10"> Test more 10 posts </if> With me account (more 3000 posts), the text "Test more 10 posts" Doesn't appear so I don't understand why that don't work |
#9
|
||||
|
||||
Code:
<if condition="$bbuserinfo[posts] > 10"> Test more 10 posts </if> |
#10
|
||||
|
||||
? hummm
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|