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)

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


All times are GMT. The time now is 09:49 AM.

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.00978 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete