• Hey,

    I’m having issues with the Ajax pagination features of Events Manager Pro 5.5, if you go to:

    https://2013festivals.net/ and click on the pagination on “UK Festivals” or “European Festivals” halfway down the homepage, it will reload the page as https://2013festivals.net/?pno=2 and the shortcode no longer displays the next events for the category. I’ve placed the Ajax code in WP-config:

    define('EM_AJAX',true);

    And this is my code for the homepage:

    <?php echo do_shortcode('[categories_list child_of="822" limit="5" pagination="1" ajax="1"]<li><i class="icon-caret-right"></i><a href="#_CATEGORYIMAGEURL" title="#_CATEGORYNAME"><strong>#_CATEGORYNAME</strong></strong></a><br/>#_CATEGORYALLEVENTS</li>[/categories_list]'); ?>

    So that should load via Ajax right? I’m using 5.5 dev + 2.3.4 of Pro.

    Also, in the documentation you mentioned that the speed issues on larger calendars have been fixed but I’m still experiencing terrible speeds on https://ibiza2013.net/calendar – We’re on WPEngine hosting so speed shouldn’t be an issue of our server

    Any ideas on fixes for these two issues please?
    Thanks
    Russell

    https://www.ads-software.com/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    can you re-post this in pro-forum instead?

    thanks

    Thread Starter akiraprise

    (@akiraprise)

    Hi,

    I don’t have access to the pro support forum anymore as my year’s support has run out,

    Thanks
    Russell

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    we can help with EM issues on here

    however, I can’t see any content with pagination, so I can’t check it out

    as for the calendar, pls raise a new thread if this doesn’t help (add it to your wp-config.php file):

    define(‘EM_CALENDAR_OPT’, true);

    Thread Starter akiraprise

    (@akiraprise)

    Hi Marcus,

    Thanks for responding, if you go to: https://2013festivals.net and scroll down on the left there’s a section for UK festivals, this has pagination enabled and the numbers at the bottom is where the issues are arising.

    I’ll create a new thread for the other issue,

    Thanks
    Russell

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    ah, there’s a niggle with ajax pagination when using custom formats this way. at the moment, using custom formats within your your shortcode or php (meaning using formats not in your settings page) will disable ajax.

    the reason is because it’s open to XSS attacks if we allow any format to be used, as it has to be passed on during the ajax call to return the right html. an attacker could link someone to the ajax url and genearate whatever content they want

    we intend on adding something in the future to remedy this, however there’s no ‘easy’ solution for this. the only workarounds I can think of for this will be to add some form of custom format creator in the settings page and you reference that format via an ID or something, or alternatively create default formats for shortcodes in setting pages too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ajax / Performance issues on 5.5 Events Manager’ is closed to new replies.