Quote:
Originally Posted by dancue
For those of you interested in making the radio Yes/No Buttons do the following.
STEP ONE:
When making the auto play profile field follow these directions instead:
3:
Single-Selection Radio Buttons
Title: YouTube Auto-play?
Description: Select whether or not you would like the video to start automatically.
Options(each on a separate line): Yes
No
Private Field: Yes
Field Searchable on Members List: NO
Show on Members List: NO
Then Save..
Remember the Field number..
Say the field number is 11,,you will need to change the
a in $userinfo[fielda] to 11 like this,, $userinfo[field11]
STEP TWO:
After replacing the field values (fielda, fieldt, and so on) in template memberinfo_block_youtube you will need to replace $userinfo[fielda] (only one instance) with <if condition="$userinfo['fielda'] == 'Yes'">&autoplay=1</if>
That's it. You are done. Hopefully the author can add this and make it default.
|
For some reason your auto-play option did not work for me. The radial buttons appeared perfectly (great idea bty), the video plays but it would not auto-play. I double checked the template edit you require and all was done correctly. I ended up going back to the authors original auto-play method which is working for me ; )
This is an excellent hack though!