Songs On Profiles

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

24 replies · 2,572 views · started 18 years ago · 1 min read

TL;DR · summary of 24 replies
  • subzero provided a code that will pass validation.
  • muzza345 gave instructions on how to use BBcode for uploading and displaying MIDI files in profiles.
  • Guest expressed concerns about bandwidth usage and compatibility with mobile devices.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

14 participants
Guest #1

Hi everyone. Im wondering is there a code out there that will play music on members profiles. When a member goes to view a profile it plays a song in the background. Im kinda stuck on this any help wud be great. Thank you

jsyguy23 Developer · 134 posts #2

yeah you can play a tune 2 secs ill have a look in my files i got it some where

Guest #3

Thanks. Im guessin u can only hear the music on opera tho.

jsyguy23 Developer · 134 posts #4

i cant find it sorry m8 im sure there is a topic on here about them

GumSlone Administrator Principal · 1,690 posts #5

try this code:

<embed src="yourmusicfile.mid" autostart="true" loop="true"
width="2" height="0">
</embed>
<noembed>
<bgsound src="yourmusicfile.mid" loop="infinite">
</noembed>

or this one

<bgsound src="yourmusicfile.mid" loop="infinite">

or

<embed src="bgsound.mp3" autostart="true" loop="true" hidden="true">

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Guest #6

Ok thank you il try them cheers

nclemale36 Lead · 537 posts #7

put this in ya BBcode part of core.php

$text=preg_replace("/\[midi\](.*?)\[\/midi\]/i","<bgsound src=\"\\1\"/>", $text);

usage ::

upload a midi file to werever in ya site lets say downloads.

[midi]http://yoursite.com/uploads/nameoffile.mid[/midi]

you know wer i am if ya get stuck .

ori Lead · 512 posts #9

why not do it this way?

$text=preg_replace("/\[midi\=(.*?)\]/i","<bgsound src=\"\\1\"/>", $text);
subzero Super moderator Fellow · 3,954 posts #11

i can make user pick a mid to use for sounds and ppl will hear it fine in profiles

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #12

That sounds gud. Can mp3s be used or is it just midi

subzero Super moderator Fellow · 3,954 posts #13

yeah its upto phone really it will play it for all but some may have errors

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #14

ok mate cheers. so do any of them codes work for this

subzero Super moderator Fellow · 3,954 posts #15

mine is a code will pass vaild

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

wap2k Developer · 168 posts #18

I know the script subzero is talking about if the phone supports the MP3 and the browser is Compatible with background sound then yes should work midi usually works on a lot of phones i hadn't tried with mp3 but see no reason why not its basic HTML knowledge.

There are many ways to play in a WebPage. But for use with mobile phones i would make a educated guess that you would use the following method:

<bgsound src="yourmusicfile.ext" loop="infinite"> 

Where yourmusicfile.ext is the file you want to play.

The code subzero might share will more than likely use that method but has been tested a lot more.

Sorry didn't see the first page of replies

WhiteWarrior Principal · 1,419 posts #19

LoL hes not going to upload the coding.... use the code ori sent... it will work fine.

Guest #20

Be realistic here. It might seem 'cool' but who the hell wants this? Waste of bandwidth. How many websites do you see with music playing in the backround? Next to none.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close