Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Code help :)
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 12
TOPIC: Code help :)
#62910
Code help :) 6 Years, 8 Months ago Karma: 0
I have purchased this plugin and LOVE it so much! I also have a purchased timeline on my website which allows multiple ways of sorting times and dates.

When I initially go to the timeline the lightbox works perfectly! However, once I use the sort function (which I believe uses ajax) the lightbox no longer functions.

In speaking to the author of the timeline plugin they advised the following:

I've checked the lightbox plugin. You need to call it's function in our plugin's load-more.js file after line no. 109 ( re_enable_pp(timeline_wrp); )

A selection of code that he referenced:

Code:

         
             loading = true;
                var data = {
                    action: 'ct_ajax_load_more',
                    page: page,
                    last_year:last_year,
                    alternate:alternate,
                    attribute: ct_load_more.attribute
                };

             $.post(ct_load_more.url, data, function(res) {
                    if( res.success) {
                     if(type=="compact"){
                        var $grid= timeline_wrp.find('.clt-compact-cont').append( res.data );
                        ctl_compact_settings($grid);
                    }else{
                       timeline_wrp.find('.cooltimeline_cont').append( res.data );
                    }
                       enable_navi(timeline_wrp);



Line 109:
                       re_enable_pp(timeline_wrp);
*code for lightbox goes here*





                         page = page + 1;
                         loading = false;
                        button.html(org_label);
                         timeline_wrp.find("a[class^='ctl_prettyPhoto']").prettyPhoto({
                             social_tools: false 
                             });
                           timeline_wrp.find("a[rel^='ctl_prettyPhoto']").prettyPhoto({
                              social_tools: false
                            });
                       if(page>=max_page_num){
                            button.hide();
                          }

                    } else {
                        // console.log(res);
                    }
                }).fail(function(xhr, textStatus, e) {
                   console.log(xhr.responseText);
                });



Would you be able to help me with what code to insert there?

Thank you kindly!
Last Edit: 2018/04/02 05:09 By Juliet Alayne .
The administrator has disabled public write access.
 
#62911
Re:Code help :) 6 Years, 8 Months ago Karma: 760
Hello,

Try to insert the following code:

Code:


setTimeout(function() { if (window['ARI_FANCYBOX_INSTANCE']) ARI_FANCYBOX_INSTANCE.convertElements(); }, 10);



Regards,
ARI Soft
The administrator has disabled public write access.
 
#62912
Re:Code help :) 6 Years, 8 Months ago Karma: 0
Hmm...inserting that code doesn't seem to change the behavior of the lightbox, once the sort feature of the timeline is activated, clicking a link goes to the link instead of opening it into the lightbox even now.

Any other ideas? Sorry to be a bother!
The administrator has disabled public write access.
 
#62916
Re:Code help :) 6 Years, 8 Months ago Karma: 760
Could you provide a link to a page where the problem occurs?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#62921
Re:Code help :) 6 Years, 8 Months ago Karma: 0
Of course! I'd be happy to. At the moment the site is not openly accessible as it's not live but I can send you login credentials and you can see the page that way if that would work? Just let me know how to get them to you privately!

Thanks!
The administrator has disabled public write access.
 
#62922
Re:Code help :) 6 Years, 8 Months ago Karma: 760
You can send it by email.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12