• Resolved rubenvezzoli

    (@rubenvezzoli)


    Hi, I built a table with the plugin Tablesome. I’d like to use the Firelight plugin to open with a lightbox the images linked in the column “Picture”. So the user should click on the word “link” and the lightbox should open.

    The problem is that it only works with the very first pictures, if I move to the 3rd or 4th page the lightbox doesn’t open anymore (+ I don’t see the fancybox image class in the html) and also if I go back to the first page of the table the lightbox doesn’t work also for the first images.

    Any input? I also try to force Tablesome to put “fancybox image” class to all the URLs but it doesn’t work. I hope somebody can help, I love the plugin!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author FirelightWP

    (@firelightwp)

    Hi – sorry for the delayed response on this. Just wanted to let you know I’m having a look now. thanks for providing the link!

    Plugin Author FirelightWP

    (@firelightwp)

    Pokemon site! I love it. It makes me very happy to see the plugin used on a nice looking pokemon site.

    I can confirm what you’re seeing and I understand the root issue. I see the links are opening the image on the first page, but for me, any page after that, the links no longer open in the lightbox.

    The reason is we’re using ajax are something similar to load fresh content on the page. Our plugin is JavaScript based. When your page first loads, it looks for certain markup on the page, and updates that to make the lightbox work.

    When the ajax call on later pages updates the markup, there’s nothing telling the plugin to fire again, and re-check and re-adjust markup for the lightbox to work.

    So…. we need a way to make our plugin essentially re-fire its JS on each page reload for you. I’ve updated the code to specifically do this for certain common plugins, like NextGEN. Theoretically, I could update the code for this case.

    But a more scalable solution is to allow users to somehow do this themselves. Otherwise, next week, someone with another plugin doing ajax calls could have the same problem.

    I’ll spend some time thinking about this today and get back to you. I’ll also try to think of or prep a quick fix at the least so you can get this working.

    Thread Starter rubenvezzoli

    (@rubenvezzoli)

    Thanks a lot for the reply!

    At least I understood the root problem ?? I tried to find the ajax event but I couldn’t find it ?? I tried to place your update event almost everywhere in the code but it didn’t work out. Unfortunately I’m not a developer and my coding skills are very bad so it would be great if you could help me to find a quick fix!

    Plugin Author FirelightWP

    (@firelightwp)

    @rubenvezzoli

    So I (kind of) have a fix for this. The catch is that it is in the Pro version. I’m not sure if I’m going to fix this for the free lightboxes or not. Pro is using more modern JavaScript and is easier to work with and improve for situations like this.

    I know you’re not a Pro user, and since I feel bad I’m not fixing it in the free version for you, I’m willing to offer you 6 months free for Pro. If interested, reach out at https://firelightwp.com/contact/

    Otherwise, I’ll think about if I’m going to extend this to the free lightboxes and get back to you!

    Thread Starter rubenvezzoli

    (@rubenvezzoli)

    @firelightwp no problem, I can buy a licence. Sent you an email right now ??

    Best,

    Plugin Author FirelightWP

    (@firelightwp)

    @rubenvezzoli – I believe we’ve fully resolved this, so I’m going to mark this thread resolved. Feel free to let me know if you have more questions.

    For others who come here: this was fixed by adding more generic logic that allows the the Firelight Lightbox to re-trigger after ajax calls or javascript change the page (ie, like adding new images or image links).

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.