Sad part is, I did the same thing. People do just randomly click on things without reading. I at least looked at the link's URLs and knew it wasn't going to work, and figured it was intentional.
Mine GO BOOM - Mon Mar 27, 2006 11:40 pm
Post subject:
Play Selected goes to misc/cpl/index.php which doesn't exist on the demo. Clear selected doesn't do anything. This was all testing on an old version of Firefox. Build ID: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 ID:2005051112
Maverick - Tue Mar 28, 2006 1:18 am
Post subject:
BDWinsAlt you are a moron.
Cerium, can you explain what MMS exactly is, what its purpose is (etc etc) and how this neat looking script fits in?
Oh it can also be used for file browsing (should have read that before ) but that is neat
Cerium - Tue Mar 28, 2006 9:59 am
Post subject:
Well in short, MMS is a protocol for on-demand streaming audio. I dont know the exact details on how the backend works, but in WMP you can fast forward/rewind/etc as if all of the media files are on your machine. The only downside is that in WMP it displays the entire playlist as a single entry, and the name of that entry changes when you press forward/back -- hence the need for this script.
The script is simply a file browser that has the default (hard coded, in this case) protocol set to 'mms'. If someone wanted, you could easily modify it to use http or ftp, and then change the ext filter to something like .exe|.html and youd have yourself a standard file browser. Infact, Ill add the protocol and form action params to the config.php file so you can use it as a file browser without having to modify the script.
MGB, even though youve given the goahead on the media, youd need an mms server to actually serve the content. If youre running on a win 2k3 server you can install Windows Media Services, but thats entirely up to you if you want to do that -- I simply dont have the bandwidth to do so myself.
Also, Ill download FF later today and check what part of the JS it doesnt like.
Cerium - Tue Mar 28, 2006 2:10 pm
Post subject:
Ok, updates for this stupid script:
1) I found and fixed the JS issues in FF. FF's version of the getElementsByTag function is rather retarded. On the bright side, the new method is probably faster anyway.
2) The script is no longer limited to the mms protocol. Infact, most of the configuration got changed, and this can now be used for virtually anything.
3) Any php5 specific code has been either removed, or isolated to a point where the basic functionality exists on any system running php4 or newer.
4) I removed the default 'playlist builder' and replaced it with a dynamic plugin system. User-defined plugins can be designed to build content based on the user selections. The plugins are php5 specific, and the feature is disabled on systems running older php versions.
5) The html has been broken up into 4 sections to make integrating this script into existing pages considerably easier.
Thats about it. Ill post examples and tutorials for the plugin system later.
Cyan~Fire - Tue Mar 28, 2006 3:43 pm
Post subject:
Can you make it space out the html a bit?
Cerium - Wed Mar 29, 2006 2:18 pm
Post subject:
Why?
Cyan~Fire - Wed Mar 29, 2006 3:40 pm
Post subject:
So it's easier to read. Why obfuscate it?
Cerium - Wed Mar 29, 2006 3:48 pm
Post subject:
Because adding inline formation is an unecessary pain in the ass. The function that does the bulk of the work is called recursively, so to add any kind of proper tabbing would require another global variable, and a bit more code.
Realisticly, most people wont even look at that, so long as its functioning.
Cyan~Fire - Wed Mar 29, 2006 5:38 pm
Post subject:
What about just a newline after every tag? I'm not talking about tabbing.
Cerium - Wed Mar 29, 2006 5:44 pm
Post subject:
I still dont really see the point.
Cyan~Fire - Thu Mar 30, 2006 4:40 pm
Post subject:
What's the point of open source? So people can see how you did something.
It's only a minor change, and it doesn't hurt anything.
Cerium - Thu Mar 30, 2006 6:00 pm
Post subject:
Its not the same as byte code or asm. If someone wants to do what youre talking about, they can do a simple find and replace on the source. Replace all instances of '>' with '>\n'.
Its still open source. You can download the script as-is and see how I did everything. Infact, you can make the addition to the script the same way I described above.
As Ive said like three times now, I dont really see the point. HTML never feels obfuscated to me, and seeing large blocks of script-generated html spaning across a single line is not uncommon. Personally, I think you should get used to seeing it. Especially if you enjoy looking at the source of pages which are generated by one of the billions of CMSs out there.
SamHughes - Fri Mar 31, 2006 12:19 pm
Post subject:
Cyan~Fire, just get HTML Tidy or any other decency program; problem solved.
Cyan~Fire - Fri Mar 31, 2006 3:47 pm
Post subject:
Whatever. There's nothing I can do against plain stubbornness.