![]() |
Change table color
Hi, I've setted a new profile field which ask for your gender. Now I would like to change a table color (in my postbit_legacy) depending by this choice.
I've tried to use this code: Code:
<if condition="$userinfo['field20'] == '2'">class="tgender_female"<else /> class="thead"</if> Code:
.tgender_female { Male Female Set Default: None. It doesn't work. Is there something wrong? Can you help me? |
There are two things wrong with your conditional.
1) Since you're using it inside a post, you need $post instead of $userinfo. 2) You need to use the title of the option for the menu. So your code should look like this: Code:
<if condition="$post['field20'] == 'Female'">class="tgender_female"<else /> class="thead"</if> |
Thank you, Gray Matter! :)
|
All times are GMT. The time now is 02:01 PM. |
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:
|