Kamex
Sun 13th Jun '04, 2:31am
I am trying to use conditionals to make it so you can see how many more posts you need for the next title on your post count. For example, if you have 990 posts, and the next title requires 1000 posts, you would see this:
Posts: 990/1000
Here is the conditional code I am using to do this. This goes right after the post count:
<if condition="$post[posts] == 0">/1</if>
<if condition="$post[posts] >= 1 && $post[posts] < 100">/100</if>
<if condition="$post[posts] >= 100 && $post[posts] < 200">/200</if>
<if condition="$post[posts] >= 200 && $post[posts] < 400">/400</if>
<if condition="$post[posts] >= 400 && $post[posts] < 600">/600</if>
<if condition="$post[posts] >= 600 && $post[posts] < 1000">/1000</if>
For some reason, this is making it so that it always shows that they need 100 more posts to obtain the next rank. Our previous example comes up like this:
Posts: 990/100
What is wrong with my code. Am I not using the && operator properly? Please help! :(
Posts: 990/1000
Here is the conditional code I am using to do this. This goes right after the post count:
<if condition="$post[posts] == 0">/1</if>
<if condition="$post[posts] >= 1 && $post[posts] < 100">/100</if>
<if condition="$post[posts] >= 100 && $post[posts] < 200">/200</if>
<if condition="$post[posts] >= 200 && $post[posts] < 400">/400</if>
<if condition="$post[posts] >= 400 && $post[posts] < 600">/600</if>
<if condition="$post[posts] >= 600 && $post[posts] < 1000">/1000</if>
For some reason, this is making it so that it always shows that they need 100 more posts to obtain the next rank. Our previous example comes up like this:
Posts: 990/100
What is wrong with my code. Am I not using the && operator properly? Please help! :(