![]() |
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! |
You could do this:
HTML Code:
<if condition="$post[reputation] >= 120"> of course you have to check in descending order. |
Here's an example:
PHP Code:
Rep: 60 Even though I have over 300 points... :( |
You need to check them in the opposite order - check for the largest value first.
|
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 |
All times are GMT. The time now is 09:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|