Online Chat Support
GigFoot
Software
Support
Hosting
Boards
Today
Users
Links
Flash
FAQ
LOL
3D
Gigfoot Boards
Gigfoot Message Boards Reply To Topic / New Topic / Search
Thread 22419 Topic - 22419 Mp3player question
Author:drewgrif
Date:Feb/4/07 11:18pm
Thread:22419
Post:22419
Respond: Reply To
Mp3player question... Is there a parameter that you can pass to alphabetize the mp3s specified in your folder? I thought it would alphabetize automatically, so I renamed my mp3s to accomodate that logic.
Author:jtrue
Date:Feb/5/07 9:28am
Thread:22419
Post:22420
Respond: Reply To
RE:Mp3player question... The mp3player uses the date the mp3 was created as the sorting order but you can change that easy. Open the cgi file (named "index.cgi") and find line number 447. Line 447 says: "my $LIBRARY_TOTAL = $#cnt+1;"
Add this line to the code:
"@cnt = sort @cnt;" (everything inside quotations)
This will sort the songs by title instead.

I will be adding this feature to the latest version of the player. If you have trouble adding this, we can add it for you. Just fill out a support form with ftp info and i can add it for you.

Hope this helps,
James

Author:drewgrif
Date:Feb/6/07 9:33am
Thread:22419
Post:22421
Respond: Reply To
RE:RE:Mp3player question... Thanks. Worked well, except it does not change the playlist when the user clicks on the framed player's playlist link. Is that correct?

Author:jtrue
Date:Feb/7/07 8:27am
Thread:22419
Post:22422
Respond: Reply To
RE:RE:RE:Mp3player question... Drew,
To sort the playlist too goto line 928
and add the following inside quotes:
"@playlist = sort @playlist;"
Hits:
IP:
ISP:
REF:
GO LIVE