1
Diplomat
Play MP3 First Time Site is Visited
  • 2005/12/6 7:39

  • Diplomat

  • Just popping in

  • Posts: 19

  • Since: 2004/12/17


Is it possible to play an MP3 the first time someone visits my XOOPS website? If so, can someone supply some code to do so? I'm more of a user than a coder.

Regards

2
dunkin
Re: Play MP3 First Time Site is Visited
  • 2005/12/7 15:50

  • dunkin

  • Just popping in

  • Posts: 47

  • Since: 2005/3/15


now... I dunno how to set it so that it only plays once and never again. But.. I did setup a small block that appeared on my main page that was set 'accessible only to anonymous' users that would play a media file. This media file would play every time someone who wasn't logged in viewed my main page. Once someone logs in (registers and logs in) it wouldn't be visible to them cuz they would no longer be 'anonymous'

I just made a small block, weighted 100 side-left, named it like 'sound byte' and inserted this code

<EMBED ID="WindowsMediaPlayer1" SRC="http://www.mydomain.com/greet.mp3" BORDER=0>

be sure to change mydomain.com to your domain name and greet.mp3 to your file name, and just upload the mp3 file to your root (Main) directory where you've uploaded xoops.

Dunkin

P.S. Also be sure to set the block content type as 'HTML'
Dunkin
My Site -Http://www.hippyspace.com

3
Diplomat
Re: Play MP3 First Time Site is Visited
  • 2005/12/12 6:11

  • Diplomat

  • Just popping in

  • Posts: 19

  • Since: 2004/12/17


Thanks Dunkin. This is a start. Much appreciated.

Steve

Login

Who's Online

118 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 118


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits