View Full Version : Christmas Sound For Your Forum
blackpheonix
10-31-2005, 10:00 PM
Its nearly christmas i know you may not be wanting to here this but it is :p
so i have realeased this again its same as the one i released for 3.0
first download the zip file and unzip it and upload it to main forum directory then
goto admincp -> styles & templates -> edit templates -> find header then click edit to edit the header now follow these simple instructions.
at the very top of the header template add
For a unlimited loop use this code:
<!-- Christmas Sound by Blackpheonix -->
<EMBED src="/forum/sound/jingle.mid" autostart=true loop=true volume=100 hidden=true><NOEMBED><BGSOUND src="/forum/sound/jingle.mid"></NOEMBED>
<!-- /Christmas Sound by Blackpheonix -->
for it to play the song once use this code:
<!-- Christmas Sound by Blackpheonix -->
<EMBED src="/forum/sound/jingle.mid" autostart=true loop=false volume=100 hidden=true><NOEMBED><BGSOUND src="/forum/sound/jingle.mid"></NOEMBED>
<!-- /Christmas Sound by Blackpheonix -->
hope u enjoy!
goes great with this mod https://vborg.vbsupport.ru/showthread.php?t=99991
Snake
11-01-2005, 04:25 PM
Great little hack! :D
Yorixz
11-01-2005, 04:39 PM
Isn't that a bit early? ;) Still a nice hack :)
Paul M
11-01-2005, 04:42 PM
goes great with this mod https://vborg.vbsupport.ru/showthread.php?t=810044This link is invalid.
spudor
11-01-2005, 04:45 PM
Very nice thank you. Thats getting into the spirit
Kane Hart
11-01-2005, 05:01 PM
so if user clicks another link on the forums does it still play?
SnowBot
11-01-2005, 06:58 PM
where did the snowflakes go? ? ? :(
blackpheonix
11-03-2005, 12:17 PM
so if user clicks another link on the forums does it still play?
yes as its in the header template wenever the forum shows the header it will play however it may restart the song again.
link updated
memoriess
11-07-2005, 01:38 AM
Can we have a embedded player function, and let user to choose whether to play the song etc?
Rickie3
11-07-2005, 08:00 AM
cool will install this next month,thankyou
mp3dreaming
11-08-2005, 11:27 PM
Is there a fix for this for Firefox yet ??
Rickie3
11-09-2005, 03:33 AM
Is there a fix for this for Firefox yet ??got it working fine on my forum using firefox,just need to install the plug-in all good now, https://addons.mozilla.org/extensions/moreinfo.php?id=446
i also had to install quicktime
blackpheonix
11-09-2005, 12:33 PM
Can we have a embedded player function, and let user to choose whether to play the song etc?
i would if i knew how im pretty much a noob at this :)
funinthesun
11-09-2005, 08:45 PM
This is cool, will install in December. Thanks :)
JsnakeJ
11-28-2005, 11:04 PM
Only thing needed is a little stop/start button and its good.
Startinfresh
12-01-2005, 06:41 PM
I can't get it to work :(
funinthesun
12-01-2005, 06:50 PM
Have you uploaded the file? Also, you might need to edit the template code if your forum root isn't in /forum/
funinthesun
12-01-2005, 07:52 PM
OK, this is the first time I've ever posted something like this but I guess we all have to start somewhere! :p
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:
<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
<if condition="$bbuserinfo[fieldX] != 'No'"> and </if> 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.
Feckie (Roger)
12-01-2005, 08:16 PM
Excellent ...Installs
Startinfresh
12-01-2005, 10:38 PM
Have you uploaded the file? Also, you might need to edit the template code if your forum root isn't in /forum/
Ya I got it. It took me a minute to realize mine was forums and not forum.
Thanks. I LOVE IT!!
Startinfresh
12-01-2005, 10:43 PM
OK, this is the first time I've ever posted something like this but I guess we all have to start somewhere! :p
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:
<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
<if condition="$bbuserinfo[fieldX] != 'No'"> and </if> 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.
I tried this and it still plays the music.
**Edited to add that I figured it out**
funinthesun
12-02-2005, 07:03 AM
Yay! I'm glad my tiny bit of code worked :p
jarod1981?
12-04-2005, 02:20 PM
How can I song a sing just one time?
Because I don't like to hear always!
Thanks all!
jarod1981?
12-07-2005, 07:48 PM
Help me, please :surprised:
funinthesun
12-07-2005, 07:54 PM
Scroll up ;)
jarod1981?
12-07-2005, 08:13 PM
Pardon, Thanks Funin :rolleyes:
funinthesun
12-07-2005, 08:40 PM
Your welcome ;)
Borgs8472
12-07-2005, 09:38 PM
My users would lynch me (again) if I installed this. However I have had a happy few minutes listening to the attached midi :)
funinthesun
12-07-2005, 10:04 PM
Why not set the default to no and then your members who do want to play it can?
lairnoc
12-26-2005, 09:13 AM
i love it!!!!
ahmed-samara
12-26-2005, 11:37 AM
Great little hack
xhybrid
12-30-2005, 09:11 PM
Is it possible to play a MP3?
clearchannel
12-12-2006, 12:22 AM
This works very nicely in vB 3.6.4 as well. Thank you, my member love it!
clearchannel
12-06-2008, 02:09 PM
I found a problem so I removed my orginial post.
Sorry
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.