The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Reputation Ranks
Let's just say that I want to display rep images instead of those ol' school boring pips.
I tried to do this: <if condition="$post[reputation] == 100"><img src="rank100.jpg" alt="100"></if> It does show, but only if you have exactly 100 rep points. Then I tried this: <if condition="$post[reputation]>100"><img src="rank100.jpg" alt="100"></if> That works as well... But how can I show multiple conditionals? If user has xx or more points: 0 points = I'm too shy 60 points = Lurker 120 points = Camper etc... Thanks! |
#2
|
|||
|
|||
You could do this:
HTML Code:
<if condition="$post[reputation] >= 120"> <img src="rank120.jpg" alt="120"> <else /> <if condition="$post[reputation] >= 60"> <img src="rank60.jpg" alt="60"> <else /> <img src="rank0.jpg" alt="0"> </if> </if> of course you have to check in descending order. |
#3
|
|||
|
|||
Here's an example:
PHP Code:
Rep: 60 Even though I have over 300 points... |
#4
|
|||
|
|||
You need to check them in the opposite order - check for the largest value first.
|
#5
|
|||
|
|||
Working code:
PHP Code:
P.S. Whoever feels like this is better than pips, he can feel free to use it on his forum.. :P |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|