vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Christmas Sound For Your Forum (https://vborg.vbsupport.ru/showthread.php?t=99844)

blackpheonix 10-31-2005 10:00 PM

Christmas Sound For Your Forum
 
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:

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:

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

Quote:

goes great with this mod https://vborg.vbsupport.ru/showthread.php?t=810044
This 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

Quote:

Originally Posted by Kane Hart
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

Quote:

Originally Posted by mp3dreaming
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/extension...nfo.php?id=446
i also had to install quicktime

blackpheonix 11-09-2005 12:33 PM

Quote:

Originally Posted by memoriess
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:

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
Code:

</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

Quote:

Originally Posted by funinthesun
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

Quote:

Originally Posted by funinthesun
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:

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
Code:

</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


All times are GMT. The time now is 04:50 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
  • Page Generation 0.01316 seconds
  • Memory Usage 1,781KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete