![]() |
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'"> |
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
|
ah I didn't know $bbuserinfo was included with vB4.0. Thanks Lynee, your always a great help :)
|
All times are GMT. The time now is 11:25 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:
|