OK, this is the first time I've ever posted something like this but I guess we all have to start somewhere!
If you want your members to be able to turn the christmas sound on and off you can do this:
Go to AdminCP => Profile Fields => Add new Profile field => Single Select Menu
Title: Play Christmas Tune
Description: Choose yes to play the christmas tune.
Options:
Yes
No
Set Default: Yes, but No First Blank Option
Editable By User: Yes
Display Page: Options: Other Options
Write down your field# . i.e field8
The code I am using is:
Code:
<if condition="$bbuserinfo[fieldX] != 'No'">
<!-- Christmas Sound by Blackpheonix -->
<EMBED src="/sound/jingle.mid" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="/sound/jingle.mid"></NOEMBED>
<!-- /Christmas Sound by Blackpheonix -->
</if>
All you have to do is add the tags
Code:
<if condition="$bbuserinfo[fieldX] != 'No'">
and
to wrap the code and you're done
I've tested this on my forum so I know that it works.
Remember to change fieldX to the field id. If your forum root is in /forum then you will have to change the code to /forum/sound/jingle.mid instead.