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.


All times are GMT. The time now is 07:11 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.01147 seconds
  • Memory Usage 1,738KB
  • 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)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