How to play a sound whensomeone enters?

Go down

sound file - How to play a sound whensomeone enters? Empty How to play a sound whensomeone enters?

Post by GeorgeCusterd on August 4th 2009, 3:10 pm

I'm try to play a sound on my website like when someone enters it, they hear a certain sound.

The sound? If any of you play Battlefield 2, well you know what I'm talking about. The sound when you go to the login screen after the trailer video and there's a woman that says, "Welcome to duty."

So, first of all, how to get this sound like download it or whatever? Next, how do I put it on my site?

Thank you so much Smile
avatar
GeorgeCusterd
Forumember

Male Posts : 48
Reputation : 1
Language : English

http://www.13thmeu.forumn.org

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by TE Xifex on August 4th 2009, 5:12 pm

@GeorgeCusterd wrote:I'm try to play a sound on my website like when someone enters it, they hear a certain sound.

The sound? If any of you play Battlefield 2, well you know what I'm talking about. The sound when you go to the login screen after the trailer video and there's a woman that says, "Welcome to duty."

So, first of all, how to get this sound like download it or whatever? Next, how do I put it on my site?

Thank you so much Smile

To play a song or sound byte is must be done like this.

<EMBED SRC="xfiles.mid" VOLUME="50" HEIGHT="60" WIDTH="144">

http://www.webreference.com/js/column20/embed.html

Volume sets volume height for height and width for width. Also since forumotion is not going to be your FTP site or host site to play the sound you must find a host on the net that could stream the audio for you so it plays when someone visits your site.


TO do that you'd replace xfiles.mid with the URL filepath of where your chosen aduio file is stored. Ex <EMBED SRC="www.bobdole.net/bobdoleaudio/bobdole.mp3" volume="80" Height="50" width="50">
TE Xifex
TE Xifex
New Member

Posts : 24
Reputation : 0
Language : English

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by RoNo on August 4th 2009, 7:00 pm

This will show as a small dot & can be placed in a widget (existing or new)
or you can place it in your homepage message box. It's flash/triggered and
needs to be placed in plain sight (upper part of the screen/viewing area).

"Welcome to duty"
Code:
<embed src="http://www.youtube.com/v/FhJhjA744iA&hl=en&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="1" height="1"></embed>
Long live BF2
sound file - How to play a sound whensomeone enters? Getsum
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by kirk on August 4th 2009, 8:49 pm

@RoNo wrote:This will show as a small dot & can be placed in a widget (existing or new)
or you can place it in your homepage message box. It's flash/triggered and
needs to be placed in plain sight (upper part of the screen/viewing area).

"Welcome to duty"
Code:
<embed src="http://www.youtube.com/v/FhJhjA744iA&hl=en&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="1" height="1"></embed>
Long live BF2
sound file - How to play a sound whensomeone enters? Getsum

rono your awesome dude. man i have already learned a few things from you thanks man.
so what if i upload something to youtube. like a 3 sec sound effect or what ever i can just place link like you have in the code above and it will work?

thats awesome... lol thanks again
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by GeorgeCusterd on August 4th 2009, 9:12 pm

@RoNo wrote:This will show as a small dot & can be placed in a widget (existing or new)
or you can place it in your homepage message box. It's flash/triggered and
needs to be placed in plain sight (upper part of the screen/viewing area).

"Welcome to duty"
Code:
<embed src="http://www.youtube.com/v/FhJhjA744iA&hl=en&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="1" height="1"></embed>
Long live BF2
sound file - How to play a sound whensomeone enters? Getsum
long live bf2 and rono Razz

Uhmmm I have no experience in HTML coding but I put that code you gave me in the homepage message but no sound? Do I have to do something else?
avatar
GeorgeCusterd
Forumember

Male Posts : 48
Reputation : 1
Language : English

http://www.13thmeu.forumn.org

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by kirk on August 4th 2009, 9:26 pm

Spoiler:
@GeorgeCusterd wrote:
@RoNo wrote:This will show as a small dot & can be placed in a widget (existing or new)
or you can place it in your homepage message box. It's flash/triggered and
needs to be placed in plain sight (upper part of the screen/viewing area).

"Welcome to duty"
Code:
<embed src="http://www.youtube.com/v/FhJhjA744iA&hl=en&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="1" height="1"></embed>
Long live BF2
sound file - How to play a sound whensomeone enters? Getsum
long live bf2 and rono Razz

Uhmmm I have no experience in HTML coding but I put that code you gave me in the homepage message but no sound? Do I have to do something else?

do you have you html enabled for the forum?
i tried the code on my test board and it worked OK.
you will see the whole code come up if your html is not on for the forum.

if it's not on. then you can enable it here.

admin panel>general>Messages and Emails>configuration.

scroll down to allow html and hit save.
now go to your profile preferences and click always allow html and click save.

as far as the coding. if you upload your own sound effects then you would just replace this link https://www.youtube.com/v/FhJhjA744iA&hl=en&fs=1&rel=0&autoplay=1" with your new one.
but lets wait for rono to confirm that just to make sure.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by RoNo on August 4th 2009, 9:47 pm

That's right... as kirk pointed out: you need to enable Html.
For other sounds: replacing the link with another YouTube Url works
with parameters added to the end of the Url (autoplay=1 etc)

Very good
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by GeorgeCusterd on August 4th 2009, 11:32 pm

Well actually, my friend said he heard the sound. You see my portal page is my homepage. But my home (forum) is where the sound plays. But, it only plays if you go by a link or you go to the forum first. Does that make sense? See my website and see where I put the HTML coding please Razz

@ www.fox-games.forumn.org

long live bf2 and RoNo Very Happy
avatar
GeorgeCusterd
Forumember

Male Posts : 48
Reputation : 1
Language : English

http://www.13thmeu.forumn.org

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by kirk on August 5th 2009, 12:02 am

ware are you putting the code and what page to you want it on.
if your placing it in your portal it should just play in the portal.

now if you have it in your home page message then you should only hear it on the home page/index

i mean you could put it in a template or widget and have play on every page.
but that might get a lil annoying after a wile... lol meaning it will play for every post page/click... lol i don't think you want that?

so let us know where you want it and we should be able to help ya.

thanks
-----------------------------

OK scrap all of what i said above. you want it in your portal only.
take the code out of your home page message. and place it in the portal widget>Affiliates

then when you go to the portal you will here it every time.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by GeorgeCusterd on August 5th 2009, 4:18 am

Yes I only want it in the portal only. But, now it says the text but doesnt play anything. And, it widens the sidebar so it makes it look wierd. Please help. Thank you.

Long live bf2, RoNo, and kirk Razz

BTW now it plays on every page Sad
avatar
GeorgeCusterd
Forumember

Male Posts : 48
Reputation : 1
Language : English

http://www.13thmeu.forumn.org

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by kirk on August 5th 2009, 5:41 am

i noticed the text appearing when you had it on the homepage. but the sound was still playing? strange?

let me try something.

you may have to make a custom block for the portal and center it. but that dose not explain why the code is coming up as text.Plus you have your widget showing through the whole forum. but did not have the affiliates that way. so i have to test a few things. I'm sure it's just a minor problem. i hope.. lol

and your html has to be on because i heard it play when i was at your forum.

hang in there will get it worked out. héhé

---------------------------------------------------

ok are you sure you have the html enabled on the forum?
the code that rono provided works for me. and you will not have to create a custom block to have centered. when i post rono's code in my portal. it works fine and you do not see the text.

usually the only time you would see the text embed code is if you do not have the html on. but i know i seen the text/embed code on your homepage and that sound came through... so!!!! just try it again. put it in your affiliates or a custom block if you wish.

here's my test forums portal. i have it in a block called test on the bottom right.
as you can see there is no text code coming up and it's working.

so just try it again and let us know. well get dat sucker Mr. Green

here's my link refresh the page to hear it a few times. and i have it in my test block on the bottom right.
http://fmpreboard.forumotion.com/portal.htm
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by GeorgeCusterd on August 8th 2009, 4:47 am

I don't hear anything when I came to your site. Please still stay on this case afro
avatar
GeorgeCusterd
Forumember

Male Posts : 48
Reputation : 1
Language : English

http://www.13thmeu.forumn.org

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by kirk on August 8th 2009, 10:40 am

@GeorgeCusterd wrote:I don't hear anything when I came to your site. Please still stay on this case afro

try it again it's working for me. it says welcome to duty.
http://fmpreboard.forumotion.com/portal.htm
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by jake66 on August 8th 2009, 2:09 pm

It works for me
avatar
jake66
Forumember

Male Posts : 178
Reputation : 0
Language : English
Location : UK

http://www.computer-wizzy.com

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by GeorgeCusterd on August 11th 2009, 4:48 pm

I still don't hear anything Sad I think I need a direct link to the portal.
avatar
GeorgeCusterd
Forumember

Male Posts : 48
Reputation : 1
Language : English

http://www.13thmeu.forumn.org

Back to top Go down

sound file - How to play a sound whensomeone enters? Empty Re: How to play a sound whensomeone enters?

Post by John_D on September 10th 2009, 11:33 pm

Good thread, and very helpful. Had been wondering how to embed sound file, and the 'invisible' YouTube works well for me.
avatar
John_D
New Member

Posts : 4
Reputation : 0
Language : English

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum