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

galleryid and multiple playlist issue with detached player


  • Please log in to reply
1 reply to this topic

#1 Jonathan Limoanco

Jonathan Limoanco

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 October 2012 - 05:26 PM

Hi!

Here's my set up:

I am using the detached playerlocation value for my site. So I have defined one player to be the main player, and embedded 4 different playlists with the same galleryid (as per instructions).

The problem I'm encountering right now is that for the first playlist, ajax pagination will work and I can move from one page to another. However, when I try to move to the next page of the SECOND playlist, it moves the first playlist instead. I've managed to conclude that it's because the galleryid is the same for all 4 playlists. I tested by changing the galleryid of the last playlist to make it independent. Of course, the playerlocation=detached option doesn't work anymore on it, since it has a different galleryid.

Is there anytihng I can do here?
I need the ajax pagination, the detached player and the 4 different playlist.
You can see the site here at http://www.websitecl...om/clients/cfr/

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 15 October 2012 - 11:55 PM

Hello!

Thanks for sending along a link to your site - makes troubleshooting much easier.

I understand the problem you're experiencing. This definitely a defect in the code, and unfortunately you're the lucky first person to find the bug :/ So that it doesn't slip through the cracks, I've filed a bug report.

In the meantime, we'll have to come up with a workaround, as the real fix will be quite involved. I think a small modification of some JavaScript should be enough. Here's what I would try:

  • Omit the "galleryId" shortcode parameter, so that all the galleries on the page have different and unique gallery identifiers

  • Open up tubepress_pro_x_y_z/sys/ui/static/players/detached/detached-dev.js with your favorite text editor

  • Change lines 20 and 28 from

    var selector = '#tubepress_detached_player_' + galleryId;
    to

    var selector ='div[id^="tubepress_detached_player"]:first';
  • Swap the contents of detached-dev.js with detached.js. The latter is a compressed version of the original detached-dev.js.

  • Optionally re-compress detached.js
This should make Ajax pagination play nicely with the detached player. Give it a try and let us know? Thanks!