vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Adding backround music.. (https://vborg.vbsupport.ru/showthread.php?t=65807)

RichieBoy67 06-03-2004 02:01 AM

Adding backround music..
 
I was thinking about adding some backround music to one of my pages.. I figured out that the html code for this will not work with php.. is it easy to do with php???

RichieBoy67 06-04-2004 01:19 AM

I want to add music to one page on my site but I have no clue how to do it with php.. HTML is no problem but with this I need help..

Is there a simple piece of code that I can use to trigger an mp3 to start playing when a certain page is opened? I have done this before on sites with html using <embed etc... and it is very easy.....

Thanks!!

Serge 06-04-2004 03:06 AM

Do it the same way either by closing off the " ?>" php tag and using the html code you already know or you can echo it out into the page though

PHP Code:

echo "<embed etc... "

make sure you escape everything correctly and it should work.

Zachery 06-04-2004 03:42 AM

Quote:

Originally Posted by Serge
Do it the same way either by closing off the " ?>" php tag and using the html code you already know or you can echo it out into the page though

PHP Code:

echo "<embed etc... "

make sure you escape everything correctly and it should work.

Depending on where... with vBulletin 3 you just need to edit the template.

RichieBoy67 06-04-2004 07:37 PM

Basically I want the music to start when people enter the vbgarage I added...

Wich template do I need to edit for this? Will this code work??

Thanks for the replies! You guys are really helpful..

<embed src="melody.mid" width=200 height=55 autostart=true loop=true>

assassingod 06-04-2004 07:38 PM

Use the header template if you want it to appear on all pages.:)

RichieBoy67 06-04-2004 07:41 PM

I only want it on the one page.....Thanks

Fluous 06-04-2004 07:44 PM

This would be a nice VB3 Ushop arcade hack, like lesane used to have.

assassingod 06-04-2004 07:47 PM

What page do you want it on?

RichieBoy67 06-04-2004 07:54 PM

I want it in my vbgarage.... when people go to view the pictures inside...


All times are GMT. The time now is 12:21 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.01092 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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