rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: pehden on April 27, 2007, 07:54:35 PM

Title: Mp3 Player on your site code for IE users
Post by: pehden on April 27, 2007, 07:54:35 PM
Add this code to your template and then go to your site, Your mp3 file's will load then who ever is looking at your site can listen to music without downloading it on there own.
WARNING
 firefox
 may not load it
[file]
<tr>
   <td class=rw>%new% <br><a href="%item-url%">&nbsp;<img align=top src="%item-url%" alt="" width="25px" height="25px">  %item-name%</a>%comment%</td>
   <td class=rw align=center>%item-size%</td>
   <td class=rw align=center>%item-modified%</td>
   <td class=rw align=center>%item-dl-count%</td>
</tr>



[file.jpg = file.jpeg =file.png = file.gif = file.bmp]
<tr>
   <td class=rw>%new% <br><br><a href="%item-url%" target="_blank" onClick="viewPic(this.href); return false">
<img src="%item-url%" width="205" height="180" alt="%item-name%">
</a>  </a>%comment%<br><textarea cols="23" rows="3" name="URL for this file.">http://%host%%encoded-folder%%item-url%</textarea><br></td>
   <td class=rw align=center>%item-size%</td>
   <td class=rw align=center>%item-modified%</td>
   <td class=rw align=center>%item-dl-count%</td>
</tr>



[file.mp3 = file.wav = file.wma = file.mid]
<tr>
   <td class=rw>%new% <a href="">&nbsp;<img align=top src="/~img_file" alt=""> %item-name%<br></a><textarea cols="50" rows="1" name="URL for this file.">http://%host%%encoded-folder%%item-url%</textarea><br>
<textarea cols="50" rows="8" name="Player Code">
<object type="application/x-mplayer2" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="285" height="150">
  <param name="fileName" value="http://%host%%encoded-folder%%item-url%" />
  <param name="URL" value="http://%host%%encoded-folder%%item-url%" />
  <param name="src" value="http://%host%%encoded-folder%%item-url%" />
  <param name="showcontrols" value="1" />
  <param name="showstatusbar" value="1" />
  <param name="showdisplay" value="1" />
  <param name="autostart" value="0" />
  <param name="autosize" value="1" />
</object>
<br> provided by <a href="http://%HOST%">%HOST%</a>
</div>
</textarea><br>
%comment%
   <td class=rw align=center>%item-size%</td>
   <td class=rw align=center>%item-modified%</td>
   <td class=rw align=center width=175>%item-dl-count%<br><div id="%item-name%">
<div>
<object type="application/x-mplayer2" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="285" height="145">
  <param name="fileName" value="http://%host%%encoded-folder%%item-url%" />
  <param name="URL" value="http://%host%%encoded-folder%%item-url%" />
  <param name="src" value="http://%host%%encoded-folder%%item-url%" />
  <param name="showcontrols" value="1" />
  <param name="showstatusbar" value="1" />
  <param name="showdisplay" value="1" />
  <param name="autostart" value="0" />
</object><a href="http://%HOST%%ENCODED-FOLDER%%item-url%">Download</a>
</div>
</td>
</tr>
Title: Re: Mp3 Player on your site code
Post by: TSG on April 28, 2007, 02:48:57 AM
If that loads for every mp3 on a page, it is going to put a lot of stress on the host PC, also, that is a lot of spammy code for something that can be so simple, when that code repeats for every mp3 its not going to be pretty on page load times at all.

Checkout my template, or the Terayon template for examples of a better method to do this.

Also people are not going to like the advertising within the code haha.

i win
Title: Re: Mp3 Player on your site code
Post by: Giant Eagle on April 29, 2007, 07:55:03 PM
Huge code that doesnt even work =/.. it just shows a big text area box with the html code inside it and several links to your homepage.

By looking at your homepage, i see you like advertisements xD

Another thing i want to point out:

Code: [Select]
onClick="viewPic(this.href); return false"

That function does not exist, or atleast you havent included that function with your post.
Title: Re: Mp3 Player on your site code
Post by: chrno on April 30, 2007, 06:04:22 AM
hey guys the player works but it uses windows media player, and if you're not using internet explorer it will not work. Firefox users should try to download wmp lite codecs but this something annoying to do.
pehden: try to put put this indication in the first post: Only for Internet Explorer with Windows Media Player Codecs.
cya
Title: Re: Mp3 Player on your site code
Post by: pehden on June 14, 2007, 08:45:27 AM
The code only works only on IE, And yes there are some problems, I put the text boxes to show the code because you can put it on myspace....I will updat the code I have on the forum when I am am done fixing it.
Title: Re: Mp3 Player on your site code for IE users
Post by: TSG on June 16, 2007, 12:48:33 PM
Why bother with a player that only works in Internet Explorer  :-X.... use a flash or javascript player that runs in ALL browsers. Just a suggestion lol. I don't even use windows media player i find it a terrible media player, i prefer alternatives like VLC and WINAMP to be the better choice. Just use flash or any other more viable option, your leaving out at least 20-30% of potential users, the number of idiots using Internet Explorer are reducing greatly, hell even my parents use Firefox haha. Sorry to put a downer on your work here cause i love the enthusiasm, but its just not a nice player for HFS.