Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Thumbnail Gallery Sort Order "pro-2-4-0"


  • Please log in to reply
18 replies to this topic

#1 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 25 February 2012 - 03:52 AM

Hi Eric,

In the new version "pro-2-4-0" Thumbnail Gallery Sort Order works not so well. I mean sorting by "oldest", "newest", "position", "published" does not sort exactly as it should. In "pro 2-2-9" the sorting worked great.

There is my page http://slaviccenter....new/2012/01.php the dates in the description is the published date.

There is my code



Is there any rules for the order for shortcodes?

Any solutions?

Thanks

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 27 February 2012 - 03:36 PM

Thanks for the report, and thank you for helping to test version 2.4.0!

I've confirmed the sorting bug and issued a fix with this commit. I'll probably release version 2.4.0.RC2 in a day or so, but in the meantime you could simply replace your copy of sys/classes/org/tubepress/impl/plugin/filters/providerresult/PerPageSorter.class.php with these contents.

Give that a try and let us know? Thanks!

#3 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 01 March 2012 - 01:56 AM

Now it works much better, thanks.

I found one more bug. The the sequential auto-play of videos in a gallery works only on the first page of Ajax pagination. So if I go to any other page the sequential auto-play doesn't work.

You could try my web-page: http://slaviccenter....012/index01.htm


Thanks

#4 Tadej Lasic

Tadej Lasic

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 01 March 2012 - 02:35 PM

Hmm, this fix didn't really fix it. :)

I have a code [tubepress mode="playlist" playlistValue="xxxxx" orderBy="published"] and the videos are not sorted by published newest first as they were with 2.2.9 after applying the fix. They are sorted .. in a weird way, I can't really determine what. :)

#5 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 01 March 2012 - 11:52 PM

I use orderBy='position' shortcode so the the order comes exactly as the order on my Youtube play list.

#6 Tadej Lasic

Tadej Lasic

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 02 March 2012 - 01:05 AM

That doesn't work either after the fix. :) Tried pretty much all the sort orders.

#7 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 02 March 2012 - 08:27 PM

What's happening is that TubePress is sorting them by date taken, which is most definitely a bug. Could you try to comment out this line and let me know if that fixes it? If so, I'll probably push out a new release in the next few days to address this. Thanks.

#8 Tadej Lasic

Tadej Lasic

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 03 March 2012 - 05:01 AM

Didn't seem to fix it or change much.

Tried commenting out the line in the original version of the php file and the fix on this page.

http://guildwars2.si/video/playlist3/

#9 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 04 March 2012 - 11:35 PM

Didn't seem to fix it or change much.

Tried commenting out the line in the original version of the php file and the fix on this page.

http://guildwars2.si/video/playlist3/


Could you tell me which playlist you're using? I'd like to try to reproduce the bug locally. Thank you!

#10 Tadej Lasic

Tadej Lasic

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 05 March 2012 - 01:41 PM

[tubepress mode="playlist" playlistValue="02F8A2B9B9623960" orderBy="published"]
http://www.youtube.c...n_...B9B9623960

Nothing special about the playlist really. Just create a random playlist with enough videos and use published orderBy.

#11 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 07 March 2012 - 01:36 AM

This is bizarre. If I use that exact shortcode:

[tubepress mode="playlist" playlistValue="02F8A2B9B9623960" orderBy="published"]
Then I get a correctly sorted gallery. Screenshot: http://i.imgur.com/Ji2EP.png. This test was ran on tubepress.org which uses an unmodified copy of version 2.4.0. Have you tried simply re-installing a fresh copy of TubePress Pro just to rule out any accidental modifications?

As I mentioned previously, the per-page and feed sorting behavior of TubePress needs a bit of attention, but I'd like to get your gallery working to an acceptable state first. If a fresh copy of TubePress Pro doesn't change the situation for you, please enable debugging from WP Admin > Settings > TubePress > Advanced. That will give me a bit more insight into why your sort order is different than my test.

Thanks for your patience in working this out!

#12 Tadej Lasic

Tadej Lasic

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 07 March 2012 - 11:14 AM

Sorry for the late response.

The sorting that you are seeing is oldest first. Shouldn't "published" be newest/recent first? That's at least how the older version worked and according to the documentation.

published Show videos in the order they were published Will show more-recent videos first



So the first video should be Guild Wars 2: Guardian Spotlight (27 Feb 2012) and not [Gamescom 2011] Female and male thief human character customisation (23 Aug 2011).

I completely removed the tubepress_pro folder and uploaded the clean 2.4.0 version into /web/wp-content/plugins/tubepress_pro/. It now displays them like it does for you.

#13 Tadej Lasic

Tadej Lasic

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 10 March 2012 - 03:58 AM

Version 2.4.1 works even weirder. :)

If I leave orderBy set to published, it stays the same. But if I re-order the playlist on Youtube by "date uploaded" it will show correctly. If I change orderBy to position and the playlist in Youtube is ordered by "date uploaded", it will again display it wrong (older first). :)

#14 Parokeets Blog

Parokeets Blog

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 March 2012 - 05:01 PM

I too have a sorting question/problem.

I want to have seamless merge of 2 channels. What I get are first 10 videos from one user and then 10 videos from second one.
I tried these two options and just [tubepress]. http://bit.ly/x5fnW9
[tubepress mode="user" userValue="user1 + user2" orderBy="date uploaded"]
[tubepress mode="user" userValue="user1 + user2" orderBy="published"]

2.4.0 and 2.4.1. show the same order. I guess I have to be making some kind of error ... I just can't seem to find it. :)

#15 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 13 March 2012 - 01:28 AM

I too have a sorting question/problem.

I want to have seamless merge of 2 channels. What I get are first 10 videos from one user and then 10 videos from second one.
I tried these two options and just [tubepress]. http://bit.ly/x5fnW9
[tubepress mode="user" userValue="user1 + user2" orderBy="date uploaded"]
[tubepress mode="user" userValue="user1 + user2" orderBy="published"]

2.4.0 and 2.4.1. show the same order. I guess I have to be making some kind of error ... I just can't seem to find it. :)


I think what's happening here is that it only appears that the videos from the two users aren't being "blended" correctly. TubePress will sort the videos, on each page, by date uploaded with newest videos first. I think that all of the videos from parokeets are simply much newer than maestraparokeets.

Does that make sense? Was there another effect that you're trying to achieve? Let us know. Thanks!

#16 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 13 March 2012 - 01:31 AM

Version 2.4.1 works even weirder. :)

If I leave orderBy set to published, it stays the same. But if I re-order the playlist on Youtube by "date uploaded" it will show correctly. If I change orderBy to position and the playlist in Youtube is ordered by "date uploaded", it will again display it wrong (older first). :)


I think my first task for 2.4.2 is going to be to give video sorting an overhaul. I think I'm going to give users two sorting choices: one for the entire feed and one for individual gallery pages. That should dramatically clear up all the confusion that I've managed to cause for you.

Will you be able to use the "reordering of playlist" workaround until I can give this a fix? Shouldn't be too long..

#17 Chris Zacker

Chris Zacker

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 13 March 2012 - 04:12 PM

I too am having troubles with the order of thumbnails. I currently have the "date published(newest first)" option selected in the feeds options under the settings panel. I have both vimeo videos(uploaded by a certain user) along with youtube videos from a certain playlist. The vimeo videos(of which there are more of) show up first, followed by the videos from the youtube playlist. The problem is that oldest video from the youtube playlist has been uploaded more recently than the newest vimeo video displayed; the youtube videos should theoretically be displayed first. Any advice would be much appreciated.

Here is a link to the page utilizing the tubepress Pro player/gallery :

http://pinchmysalt.tv/?page_id=824

Here is a link to the youtube playlist:

http://www.youtube.c...7B&feature=plcp

Here is a link to the vimeo user:



And here is my shortcode:
[tubepress mode="playlist + vimeoUploadedBy" playlistValue="BD3F1F3A846BEF7B" vimeoUploadedByValue="2336144"]

Any help would be much appreciated. Thank you very much!

#18 Parokeets Blog

Parokeets Blog

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 14 March 2012 - 02:30 PM

I think what's happening here is that it only appears that the videos from the two users aren't being "blended" correctly. TubePress will sort the videos, on each page, by date uploaded with newest videos first. I think that all of the videos from parokeets are simply much newer than maestraparokeets.

Does that make sense? Was there another effect that you're trying to achieve? Let us know. Thanks!



Hi Eric,

I envisioned something like this: 20 videos on first page are the newest ... does not matter from which user ... simply grouping all the videos like they are from the same channel. In current situation, almost all 20 of Parokeets videos are newer than MaestraParokeets, so majority of videos on first page should be from that channel. Is that something that is possible to achieve?

#19 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 14 March 2012 - 11:27 PM

All,

Please see this thread for a simple hotfix that should lead to a big improvement in your gallery sort orders. I'm embarrassed that I hadn't seen it before. Please give the fix a try and let us know if it changes anything. Thanks.