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 it displayed or not. I created a Cutom User profile field and made it a on or off radio button and I used this code:
Code:
<if condition="$bbuserinfo['field6'] == On"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script>jqcc=jQuery.noConflict(true);</script> </if> |
#2
|
|||
|
|||
Use single quotes around the value you're testing for:
Quote:
|
#3
|
|||
|
|||
Okay, I wasn't sure if they were supposed to be there or not, I didn't know how well php handled double quotes. (' and " next to each other.)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|