The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$userinfo[posts] conditional does not work
Some members would not like to display the large number of posts they have. So what I would like to do is show something like "Total Posts: >1000" to those that have more then 1000 posts.
In the MEMBERINFO template I found the area that displays the Total Posts and proceeded to add this conditional in front of it. <if condition="$userinfo[posts] <= 1000"> but this does not work. Code:
<if condition="$userinfo[posts] <= 1000"> <tr> <td> $vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>) </td> </tr> </if> |
#2
|
|||
|
|||
try: $bbuserinfo[posts] or $bbuserinfo['posts']
|
#3
|
|||
|
|||
Hi Steve,
I tried both of those and it still does not work. |
#4
|
|||
|
|||
Trying moving your '=' like so
Code:
= < |
#5
|
|||
|
|||
That gives me this error message...
"The following error occurred when attempting to evaluate this template:" etc... |
#6
|
|||
|
|||
Andy, your conditional in post1 worked fine on my 3.5.3 board. Are you looking at the same style corresponding to the MEMBERINFO template you are editing?
|
#7
|
|||
|
|||
Thank you calorie, I appreciate you checking this for me.
I'm still running vBulletin Version 3.5.0 Release Candidate 2, perhaps that is the problem and I need to upgrade. |
#8
|
||||
|
||||
Deffinitely need to upgrade.
|
#9
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|