The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have a feature I want users to be able to choose whether they want music played or not. I created a Cutom User profile field and made it a on or off radio button and I used this code:
Code:
<vb:if condition="$post['field20'] == 'on'"> Code...... </vb:if>
|
|
#2
|
||||
|
||||
|
Since you are probably aiming this towards the person viewing the page (and not who's post you are looking at), you probably want to use $bbuserinfo['filed20'] instead
|
|
#3
|
|||
|
|||
|
ah I didn't know $bbuserinfo was included with vB4.0. Thanks Lynee, your always a great help
|
![]() |
|
|