Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Using a "play" button in HTML output.

  1. #1
    Guest Guest

    Default Using a "play" button in HTML output.

    Basically, i inserted the following command into the tracklist section of teh Advanced webpage look:

    <a href="file://e:/My Music/<!--[artist/]--> - (<!--[releasedate/]-->) <!--[title/]-->/<!--[tracknum/]--> - <!--[tracktitle/]-->.mp3">Play</a>

    This command inserts a Play link, which when clicked, opens the mp3 file and starts playing it. BUT, this won;t work for all files as OCD puts in "1" as tracknumber, while all my mp3's are named as "01".

    My mp3's are named like that so they maintain numerical order, so would it be possible that OCD also uses the double digits all the time? Either that, or if you could implement a way where i could have a placeholder like <---[mp3location]---> which links to where the mp3 is on my harddrive.



    Here is an extract of the code where i added in the extra line

    <!--[volume]-->
    <!--[if(volumename)]-->
    &amp;nbsp;<br><!--[volumename/]--> [<!--[volumetime/]-->]
    <!--[/if]-->
    <table border=0 cellpadding=0>
    <!--[track]-->
    <tr><td valign=top><!--[tracknum/]-->.&amp;nbsp;&amp;nbsp;</td>
    <!--[if($TRACKPAGES)]-->
    <!--[if(lyrics)]-->
    <td width="100%" valign=top><!--[tracklink]--><!--[tracktitle/]--><!--[/tracklink]--> &amp;nbsp;<!--[tracktime/]--></td></tr>
    <!--[else]-->
    <td width="100%" valign=top><!--[tracktitle/]--> &amp;nbsp;<i><small><!--[tracktime/]--> <a href="file://e:/My Music/<!--[artist/]--> - (<!--[releasedate/]-->) <!--[title/]-->/<!--[tracknum/]--> - <!--[tracktitle/]-->.mp3">Play</a> </small></i></td></tr>
    <!--[/if]-->
    <!--[else]-->
    <td width="100%" valign=top><!--[tracktitle/]--> &amp;nbsp;<i><small><!--[tracktime/]--></small></i></td></tr>
    <!--[/if]-->
    <!--[if(trackartist)]-->
    <tr><td></td><td valign=top><i><!--[trackartist/]--></i></td></tr>
    <!--[/if]-->
    <!--[/track]-->
    </table>
    <!--[/volume]-->

  2. #2
    Guest Guest

    Default Re: Using a "play" button in HTML output

    sorry, i forgot to say...

    That setup above works perfectly on all tracks with tracknumber 10 or higher.

  3. #3
    Guest Guest

    Default Re: Using a "play" button in HTML output

    that is a great idea...the info is clearly stored in the database anyway, so a simple tag would be nice to add this.

  4. #4
    Join Date
    Feb 2003
    Location
    LOUISVILLE KENTUCKY
    Posts
    185

    Default Re: Using a "play" button in HTML output

    What are you guys talking about? ???

  5. #5
    Guest Guest

    Default Re: Using a "play" button in HTML output

    basically, all i have done is added in a little HTML link after each song, which when pressed plays the song in your default mp3 player.

    After further thought on this, i realised that this setup will only work if you have theexact same folder structure for each Album. e.g. c:\My Mp3's\Artist - (Year) Album\Tracknumber - tracktitle.mp3.

    All my mp3's conform to that, and are in that folder, so i can get away with hardcoding in the c:\mp3's\ and then using the placeholders to set in the rest of the path to the mp3.

    BUT, if i wanted to play an mp3 in c:\Her Mp3's\... i couldnt, not without changing the coding etc.

    So what we really need is a tag like this <---[mp3path]---> and when inserted puts in the actual path to the mp3, e.g. c:\my mp3's\Abba\Greatest Hits\12 - Dancing Queen.mp3

    SO if that could be added it'd be great.

  6. #6
    Join Date
    Feb 2003
    Location
    LOUISVILLE KENTUCKY
    Posts
    185

    Default Re: Using a "play" button in HTML output

    I talked to Vivitron 15 about this last night.And now I know what you all are talking about.

    Like I told him.There is a Program out that does this for Websites.....its in Perl.I need to switch over to other Drive and grab the Website.

    Good job terminator on thinking of this for Orange.Would make it stick out over all other software.....well it already does. ;D

    I would need about 500GB for all mine though.But one day

  7. #7
    Join Date
    Feb 2009
    Posts
    1,549

    Default Re: Using a "play" button in HTML output

    I added the <!--[trackfilename/]--> tag. You will be able to combine it with <!--[path/]--> to produce the complete path:

    Code:
    <!--[path/]-->\<!--[trackfilename/]-->
    This change is not published yet, but it will be in final build 5.1.

  8. #8
    Guest Guest

    Default Re: Using a "play" button in HTML output

    Thanks a lot, this is a really handy feature, as its faster to navigate a webpage than to search through my folders. (never run winxp on a 700mhz cpu, with 128mb ram).

    Also, for parties etc, now theres no risk of my music being deleted, as happened before. People can now customise the playlist etc etc.

    Thanks again.

  9. #9
    Join Date
    Feb 2003
    Location
    LOUISVILLE KENTUCKY
    Posts
    185

    Default Re: Using a "play" button in HTML output

    Can this be done yet?I am trying that Code with the CMI Style Template and it not Working. ???

    Maybe I just wait untell all this is added to Orange.I mean does anybody have a Website up and running yet with this Feature? :-/

  10. #10
    Guest Guest

    Default Re: Using a "play" button in HTML output

    i have it working, but i found that a few of my albums don't conform the the naming standard, so i had to re-name those, but yeah, i got it to work using some java and the tags i outlined above. It worked pretty well alright, but as i said, depending on ytour own naming standard, and the place you store your mp3's you would have to alter the command i added here.

    THe play button will work MUCH better once the 2 new tags are added in.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •