The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Anyone?
I have set:
PHP Code:
I need it so that if: 0 Referrals = That message Above 1+ Referrals = Shows their number (as shown in else statement) 20+ = Shows in blue. How would I do that? I need an If condition x2, but not sure how to do it. |
#2
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=188930" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=188930</a>
Also font codes are bad coding use CSS |
#3
|
|||
|
|||
Im not sure how this would help me use and / or conditions.
If they have 0 referrals, it will say 0 referrals in red. If they have 1-19 it will say it in default If they have 20+ it will say it in blue. This is what I can't work out the code for. |
#4
|
||||
|
||||
The number of users that have be referred by a certain user is not stored in the database, it requires an additional query to count.
|
#5
|
|||
|
|||
$referrals does work. It comes up with XX referrals. I am using a referral mod to show this.
But what I am asking is how to specify how to use the command If 0 = red font and 1 - 19 = normal or 20+ = blue font Thus using IF AND OR commands.. How would I do this? |
#6
|
||||
|
||||
HTML Code:
<if condition="$referrals == 0"> <span style="color:red;"> Referrals: 0</span> <else /> <if condition="$referrals <= 19"> Referrals: $referrals <else /> <span style="color:blue;"> Referrals: $referrals</span> </if> </if> |
#7
|
|||
|
|||
Perfect, Thats what I was asking!!
Thanks Lynne. I was using <if condition"$referrals == <20"> Which was what was giving me the error. |
#8
|
||||
|
||||
Ah OK, did not know that .
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|