TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 413
  • Total: 413

Simple "Mp3" Player

Started by alan s, August 23, 2006, 08:44:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bbTURK

Quote from: Alan S on August 24, 2006, 02:54:31 PM
Quote from: rbh on August 24, 2006, 02:40:47 PM
on your demo i chose a song then the player loaded in the block and played the song, but then when it finished the list doesnt come back, it just remains on the player controls unless i hit refresh.
Came up with a solution for it, just add a bti of javascript that takes you back one page.

In a html/javascript box put in

<iframe width="150" height="110" src="http://yoursite.com/music.html"></iframe>
<center><a href="javascript: history.go(-1)">Back To MP3 Player</a></center>


Thats instead of the previous code i mentioned to go in a block i mentioned.

Quote from: Jpg on August 24, 2006, 01:17:31 AM
Nice but do they play? And can you play things other than mp3s?

Do you mean other types of music like .wma  and .wav or videos?


Demo on http://theteenzone.net/forum
if the users doesn''t click any song but click this link, they go to previous page. how is this link change when clicked opened music html in the iframe? (sorry about my english)

CaptnSolo

and if you want something a little bit more with music check it on my site www.jjfriends.com and i also have it on the forums in the blocks to. it opens up in a new window. if you would like it the sign on to my forums and ill be glad to give it to you

confuzed

#12
hello,

two questions

1. I have this working so long as the music folder is inside the forum   eg /forum/music - thanks - but I wondered if there was something I can do to restrict access as I only want certain forum member groups to have access, and this group access I have set up in the block which works, but there is nothing to stop someone from accessing the music.htm page directly if they get the address for the player?

I really don't want people giving out the address to people outside the groups.  Is this possible to restrict in some way?

2.  If I create a music folder in the root, and then change the info to reflect this path, I just get an internal server error.  I'm fine to keep it inside the forum directory so long as I can restrict access but I wondered why this isn't working when I link to the folder in the root.
thanks

IchBin

You'll have to use htaccess or something. A quick google will show you how you can do this.

This website is proudly hosted on Crocweb Cloud Website Hosting.