vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Music? Homepage? (https://vborg.vbsupport.ru/showthread.php?t=78483)

kisersose 03-21-2005 04:39 AM

Music? Homepage?
 
Does anyone Know how to add music on the homepage for instant somethin like..... www.yoursite.com and when visitors are there.. ders a backround music....? anyone know how to do dat? :ermm:

Borimikan 04-27-2005 08:04 PM

I need something like that too, ayone can help? Please!!

ADomoWorld 04-13-2007 04:07 PM

I Found Myself using basic html on certain pages but im not sure if its right i recommend Wimpy Player or something like that if your server is strong enough but im not sure.

dj_melayu 04-13-2007 06:02 PM

Just use this codes. Change the RED to suit your need. Then put it on your header or forumhome templates. It depends on what u need. If you want them to listen on forumhome only, place the code on FORUMHOME template but if you want they listen on every page, place the codes on header templates. :)

PHP Code:

<EMBED src="/mp3/ANYSONGS.mp3" autostart=true loop=true volume=100 hidden=true><NOEMBED><BGSOUND src="/mp3/ANYSONGS.mp3"></NOEMBED


imported_dfmafia 04-18-2008 01:42 AM

Quote:

Originally Posted by kisersose (Post 628565)
Does anyone Know how to add music on the homepage for instant somethin like..... www.yoursite.com and when visitors are there.. ders a backround music....? anyone know how to do dat? :ermm:

this is what i use on my root site page (its a 12 second redirect to the site main page)
this code will randomly play the tracks listed (dirArray{} = 'track.wav') and auto play apon page load and it will also play .wav or .mp3 files

on my site i have over 600 5 second to over 2min long tracks that will randomly play

PHP Code:

<?php
$dirArray 
= array();

$dirArray[] = 'track1.WAV';
$dirArray[] = 'track2.mp3';
$dirArray[] = 'track3.wav';


$cnt count($dirArray);

$rand rand(0,$cnt);

$dirFile $dirArray[array_rand($dirArray)];
echo 
"<embed src=\"http://www.YOUSITE.com/LINK_TO_YOURMUSIC_DIRECTORY/$dirFile\" hidden=\"true\" autostart=\"true\">";
?>

dj_melayu/s code will only play one track...the one that is linked in the code

Music Test Page <-- this page is a test page i used to test the coding out a long time ago - keep refreshing and im sure you wont hear the same track more than twice

view in action at http://dfmafia.net

JackRock 02-01-2009 01:04 AM

Is there a way to have music play on the forumhome, but maybe only once per login session?


All times are GMT. The time now is 03:25 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.01233 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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