FAQ  •  Register  •  Login

Song order problem

<<

Supermike

Posts: 2

Joined: Thu Jul 26, 2007 3:22 am

Post Thu Jul 26, 2007 3:33 am

Song order problem

Hello Boriel... great plugin... thanks!

I am having a slight issue with the song track order... all of my songs are in one category, but regardless of how I try to order them, they will only play in alphabetical order.

I have tried setting the track order as noted (e.g. "11, 6, 7, 9, 10") but it does not work. Please help! Do you have any idea what might be wrong? I am using the plugin as downloaded, so no changes have been made to playlist.php or any other files.

THANKS!!
<<

boriel

Site Admin

Posts: 482

Joined: Wed Nov 01, 2006 6:18 pm

Post Thu Jul 26, 2007 7:39 am

Hi, Mike

Well, I will test it again this evening (might be a bug on the latest version, who knows). Anyway, in order to use the category (playlist might be a better name, I guess), remember you have to specify it in the player invocation. Did you use the category tag when inserting the player?

E.g. if you hava defined a category called 'celt_music', and want to insert it somewhere in your template, use:
  Code:
<?php xspf_player::start('celt_music'); ?>

Otherwise, if you're inserting it within a post:
  Code:
[xspf]_start('celt_music')[/xspf]

If you're doing it this way, and it's still playing the songs un-ordered, it might be a bug. If so please tell me. Meanwhile, you can force the songs to appear in other specified order, without having to use categories, like this:
  Code:
[xspf]_start(FALSE, 'order=3,6,7,1')[/xspf]

This will play songs 3,6,7,1 in that order (you have to put FALSE as first parameter, to tell the player not to use categories).
<<

Supermike

Posts: 2

Joined: Thu Jul 26, 2007 3:22 am

Post Thu Jul 26, 2007 8:58 pm

Boriel,

Thanks for the quick response and clarification... as it turns out, I did not have the category defined in the template code. Well, it was there, but it said ('category-id') or something like that. lol! This actually did work at one time, I think when I first installed the plugin. I'm thinking I must have screwed it up when I removed the code to test something else once, and didn't put it back right.

The way it exists now is:

  Code:
<?php xspf_player::start('All'); ?>


My category is "All", and it now seems to put things in my defined order fine IF I clear my cache first. Example, if I put it in order "1, 2, 3" and load the page, then change the order to "3, 2, 1", it will update the play order only after I clear my cache (not with just a page refresh). Of course, this could be a cookie expiration issue with my site or something... not sure.

Either way, this is a big help... thanks for "fixing" this for me, or at least for showing me the err of my ways. :lol:

Return to XSPF Player Plugin (English)

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.