vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How can i embed mp3 music to index.php? (https://vborg.vbsupport.ru/showthread.php?t=208548)

AnotherJacob 03-16-2009 06:23 PM

How can i embed mp3 music to index.php?
 
Is there a way to make the forum main page (index.php) play a mp3 file just like on a html file?

I did try and search for it but came up empty.

Lynne 03-16-2009 06:34 PM

I'm sure you can google it and find out what to add to your FORUMHOME template, but I would strongly suggest you don't do this. It's annoying. Whenever I go to a site that plays an mp3 when I go there, I close the window and don't go back.

UKBusinessLive 03-16-2009 06:47 PM

Quote:

Originally Posted by Lynne (Post 1769863)
I'm sure you can google it and find out what to add to your FORUMHOME template, but I would strongly suggest you don't do this. It's annoying. Whenever I go to a site that plays an mp3 when I go there, I close the window and don't go back.

I'll vouch for that, theres nothing worst especially if its a song you hate :) remember you can't please everyone ;)

AnotherJacob 03-16-2009 06:54 PM

yes i have googled it, i just thought maybe a vBulletin version of something like this was made : http://googlesystem.blogspot.com/200...r-website.html

It's totaly optionaly to click play or not, it won't play automaticly. The thing is that i think vBulletin has a special design over it, and adding stuff from like the link here makes it look more amateurish (if that's a word? lol).

Lynne 03-16-2009 07:13 PM

The player at that link looks fine... to me at least. I think there may be a mod to play mp3s on the profile page (or am I thinking of video?). Try looking in the Profile Enhancements area of the mods. See what that player looks like, and if you like it, use it on your page.

UKBusinessLive 03-25-2009 01:30 AM

Quote:

Originally Posted by AnotherJacob (Post 1769885)
yes i have googled it, i just thought maybe a vBulletin version of something like this was made : http://googlesystem.blogspot.com/200...r-website.html

It's totaly optionaly to click play or not, it won't play automaticly. The thing is that i think vBulletin has a special design over it, and adding stuff from like the link here makes it look more amateurish (if that's a word? lol).

You can have it play everytime the page loads by adding this code to your header template

Code:

<SCRIPT LANGUAGE="JavaScript">
<!--
if(navigator.userAgent.indexOf("MSIE") != -1)
document.writeln ('');
else
document.writeln ('<EMBED SRC="Mysong.mp3" AUTOSTART="true" HIDDEN="true" VOLUME="80%">');
//-->
</SCRIPT>
<BGSOUND SRC="Mysong.mp3">

;)

TigerC10 03-25-2009 01:56 AM

Quote:

Originally Posted by UKBusinessLive (Post 1776338)
You can have it play everytime the page loads by adding this code to your header template

;)

Except that method is RIDICULOUSLY annoying. Most websites that do that are instantly navigated away from.

Lynne 03-25-2009 03:02 AM

Quote:

Originally Posted by TigerC10 (Post 1776352)
Except that method is RIDICULOUSLY annoying. Most websites that do that are instantly navigated away from.

I already brought that issue up. :cool:

TigerC10 03-25-2009 03:58 AM

Quote:

Originally Posted by Lynne (Post 1776386)
I already brought that issue up. :cool:

I know, but note the code sample provided in the post before mine :p

Lynne 03-25-2009 02:10 PM

*snicker* I don't think I'm going to go there to see how well this works out.

I once had this guy need help on his site and it played music when I went to it. I told him I wasn't willing to go help him if he didn't turn that off. He got all huffy at me and wouldn't turn it off. No one else posted in his thread to help out.

AnotherJacob 03-25-2009 05:54 PM

well, i wanted a player the is optional, but the code exanple added are also cool. Remember peoples personal websites are their own to create, The majority may find it annoying, but some people might find auto playable music usefull and nice, so thx for sharing.

If a person ask you for your personal help with his personal website, then please respect his personal opinions and decline helping for whatever reason you might have, but respect his opinion and do not try to put your opinion into other individuals minds. If all websites where the same, created upon the same structures and believes .... well ... then the internet would be pretty much boring.

I asked for help in this topic, and i got all the help i needed, so thank you very much for that :)

UKBusinessLive 03-25-2009 07:58 PM

Glad you got it sorted, i for one hate music on forums, they always play the stuff you hate :D

However i have a friend that logs onto a childbirth type of forum and they play relaxation music, her little girl is only 2 months but when she logs on and hears the "Womb" Music she's quite restfull and the mum can carry on her moment on the forum.

Funny thing was when i asked her what does "Womb" music sound like, she says like whales singing :confused::confused:

Not that i've heard any whales singing lately, but good news all round i say :up:

Good luck with your site :)

ctimes 05-07-2009 04:18 AM

I had someone ask for this today. I knew it would be super cheesy but just wanted to show them I could do it.

If there was a way to put a button to turn it off easily viewable it may be a possibility but I still just can't quick thinking of cheap 90's crappy geocities sites :)

Biker_GA 05-07-2009 04:58 AM

Yuck.. How.. Geocities! **barf**


All times are GMT. The time now is 10:09 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.01160 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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