Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.219
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Play a single sound on entry to website
Play a single sound on entry to website

7 Replies / 2760 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » How To's

View previous topic :: View next topic


DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 9:38 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Play a single sound on entry to website Posted: Sun Dec 23, 2007 10:01 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Hey All,

I got a really small .mp3 file I want to play when someone enters my site I found this code:

Code:
<Embed src = your_file.mid Autostart=true Width=100 Height=50 Loop=1>


Can I use this in a file to make it play?

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

Ped
Reputation: 93.4 Add RepSubtract Rep
votes: 37
Local time: 10:38 PM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 24 May 2012
Posts: 3670
Points: 191811 

Post Play a single sound on entry to website Posted: Mon Dec 24, 2007 8:17 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

I always find that sounds on sites are good for a hour or so, but then they get right on your tits ! lol

you can use this

Code:
<EMBED src="YOURSOUND.MP3" autostart="true" hidden="true" loop="false">


set the loop to true if you want the sound to repeat over and over.

This code needs to sit inside your header.php in the <head></head> tags, so same place as the snow script.

if you want to use the tags
 

 
View user's profileSend private messageSend e-mail Reply with quote

DoC
Reputation: 89.6 Add RepSubtract Rep
votes: 5
Local time: 9:38 PM
Location: UK
uk.gif



0.20 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 394
Points: 4451 

Post Play a single sound on entry to website Posted: Mon Dec 24, 2007 9:31 am

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

So on one line I put:

Code:
<head><EMBED src="welcome.mp3" autostart="true" hidden="true" loop="false"></head>


I have tried it a line above where the snow script is and also a line below the snow script and each edit stopped the site working completly LMAO

Code:


<!--
function wimpyPopPlayer(theFile,id,stuff) {
  window.open(theFile,id,stuff);
}
//-->


echo "<=\"javascript\" src=\"themes/PDi/scripts/snowstorm.js\">;
echo""
  . "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">"

  . "<div align=\"center\">"
  . "<table width=\"980\" height=\"272\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
   . "<tr>"


Thats the begining of my header.php - please remember I had to take out any reference to script and also the php start marker etc...

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote


Tinker
Reputation: 490 Add RepSubtract Rep
Local time: 4:38 PM

usa.gif

Spawn Killer
Spawn Killer

0.02 posts per day
Medals: 0

Joined: Aug 21, 2007
Last Visit: 16 Nov 2009
Posts: 38
Points: 7907 

Post Play a single sound on entry to website Posted: Thu Apr 10, 2008 8:32 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Multi-T3 Multi Gaming Theme · WOW Wrath Of The Lich King Theme · Clan Roster 2.0

Quick Question on this where do you put the mp3 file ??
 

 
View user's profileSend private message Reply with quote

Drak
Reputation: 474.6 Add RepSubtract Rep
Local time: 4:38 PM

usa.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 11, 2007
Last Visit: 20 May 2010
Posts: 17
Points: 170 

Post Play a single sound on entry to website Posted: Mon Jul 28, 2008 7:39 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module ·  · Clan Roster 2.0 · Multi Gaming (Warrior) Red Style Theme

I would assume the mp3 does in the root of your website.
 

 
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 4:38 PM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.37 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

Post Re: Play a single sound on entry to website Posted: Mon Jul 28, 2008 8:03 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

You can actually put it anywhere you like, just edit the

EMBED src="YOURSOUND.MP3"

to the location of the mp3 file. I am one that likes to keep things somewhat orginized, so you can create a folder on your site and name it " MP3 " and in side there put the mp3 sound file.

and if you do that it would look more like

EMBED src="MP3/YOURSOUND.MP3"

But again, like PeD said, and trunks agreed, it will get annoying. Just like the page transactions I discussed in another part of this site.
 

 
View user's profileSend private messageVisit poster's website Reply with quote


davidpenny
Reputation: 478 Add RepSubtract Rep
Local time: 4:38 PM


Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Aug 02, 2007
Last Visit: 26 Jan 2009
Posts: 24
Points: 15 

Post Re: Play a single sound on entry to website Posted: Sun Jan 25, 2009 7:11 pm

DoC wrote:
Hey All,

I got a really small .mp3 file I want to play when someone enters my site I found this code:

Code:
<Embed src = your_file.mid Autostart=true Width=100 Height=50 Loop=1>


Can I use this in a file to make it play?

DoC

What i would do is import the sound file into flash on the first frame. Then on the second frame, i would add the actionscript stop() to stop the sound repeating. U could then add the .swf file in the footer via the admin panel.
 

 
View user's profileSend private message Reply with quote

_KIKE_
Reputation: 0.7 Add RepSubtract Rep
Local time: 3:38 PM
Location: Des Moines, Iowa
usa.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Mar 23, 2009
Last Visit: 24 Mar 2009
Posts: 7
Points: 17 

Post Play a single sound on entry to website Posted: Tue Mar 24, 2009 12:48 pm

should be like this... ~note that this is an ex. probly not right spelling so dont copy n paste.

<header>
<EMBED src="YOURSOUND.MP3" autostart="true" hidden="true" loop="false">
</header>

i use sounds sometime but only play em once as a welcome type thing.
codes best when u make a folder on ur ftp or cPanel called Sounds
so the source would then be changed to /Sounds/filename.mp3
but if u want the best band. out of it id say use .wav format just cuz if it has a copyright
then ud get in trouble but wif .wav there is less of an issue cuz most noobs can find it but r too dumb to play it or convert
 

 
View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » How To's


 
7 Replies / 2760 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum