• Hello, Sayontan!

    First of all, I want to thank you for your neat and beautiful plugin. Unfortunately, I have a problem – if you go here https://www.backtomusic.ru/27771, you will see an audio playlist with a featured image in the upper left corner of the player. The image changes as soon as the corresponding track changes. The problem is that Photonic lightbox always opens the image of the first track, no matter which track is currently playing. I tried different Lightboxes and different plugin options, but to no avail. Could you help me solve this problem?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    I don’t think you can use Photonic (and most other lightbox plugins) for this type of a scenario. Basically, the way a lightbox script works is, when the page is loaded, the lightbox “binds” itself to images. In your case, when you are clicking on an item in your playlist, that image is getting changed… but there is no lightbox bound to it. Unless there is custom coding in place that forces the lightbox to “re-bind” itself to the new image, the lightbox binding remains unchanged. That is why you see this behaviour.

    Even within Photonic, there is a lot of code in place to handle different binding scenarios. Unfortunately in your scenario, the image is being replaced by a script different from Photonic, so you cannot accomplish what you are attempting.

    Thread Starter back2music

    (@back2music)

    IIt’s a pity.
    I wrote the player script myself. Do you think there is a simple way to change the script so as to bind images to Photonick?

    Plugin Author Sayontan Sinha

    (@sayontan)

    Since you wrote the player script yourself, I would suggest not using Photonic as all. Instead, you can consider directly including a lightbox script in your player script. That will let you do the binding in your script.

    Thread Starter back2music

    (@back2music)

    Thank you!
    I’m not very good at programming but I’ll have a try.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Photonic Lightbox selects the wrong image’ is closed to new replies.