The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Turning a feature on/off with radio button
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
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|