• Resolved ilukic

    (@ilukic)


    Website: http://www.rondeleranch.com/calendar

    I have included some code in functions.php for my theme to allow continual paging when there are no events. This code works from the back end but not the front end. If you click the next month the loading calendar just spins and spins. I recieved this code from your forums. See below:
    /*
    *Allow visitors to page forward/backwards in any direction within month view
    * an “infinate number of times (ie. without the populated range of monthss)
    */

    class ContinualMonthViewPagination {
    public function __construct() {
    add_filter( ‘tribe_events_the_next_month_link’, array( $this, ‘next_month’ ) );
    add_filter( ‘tribe_events_the_previous_month_link’, array( $this, ‘previous_month’ ) );
    }
    public function next_month() {
    $url = tribe_get_next_month_link();
    $text = tribe_get_next_month_text();
    $date = TribeEvents::instance()->nextMonth( tribe_get_month_view_date() );
    return ‘‘ . $text . ‘ <span>»</span>‘;
    }
    public function previous_month() {
    $url = tribe_get_previous_month_link();
    $text = tribe_get_previous_month_text();
    $date = TribeEvents::instance()->previousMonth( tribe_get_month_view_date() );
    return ‘<span>«</span> ‘ . $text . ‘ ‘;
    }
    }
    new ContinualMonthViewPagination;

    • This topic was modified 7 years, 5 months ago by ilukic. Reason: add website
Viewing 10 replies - 1 through 10 (of 10 total)
  • Hey @ilukic,

    Thanks for using The Events Calendar, I’m happy to help.:)

    This sounds like it may be a theme or plugin conflict. I recommend going through the steps here to test for a conflict.

    Let me know what you find out & we’ll go from there!

    Best,
    Shelby 🙂

    Thread Starter ilukic

    (@ilukic)

    it doesn’t look like my replies are posting. I emailed you once and replied here once, going to do so again. I ran through the troubleshooting steps, but like I suspected, it did not help, here is why;
    Events Calendar is looking to:
    %server_name%.aquafinance.com for the site url and wordpress url. This is the internal name and is accurate, however the public facing site and DNS end point is http://www.rondeleranch.com, if internally i use the calendar from %server_name%.aquafinance.com/calendar, all workds but not from http://www.rondeleranch.com/calendar.

    I think if we can define(WP_SITEURL’, ‘www.rondeleranch.com’); where it will only apply to the events calendar, we can resolve this problem, however I do not know where to add this in your plug in.

    Thread Starter ilukic

    (@ilukic)

    how/where would I hard code the site url? What variable are you using for this? The following functions are returning the servername and network domain:
    home_url();
    network_site_url();

    As stated above I am pretty sure this will resolve my issue. Thanks.

    Thread Starter ilukic

    (@ilukic)

    can someone please folow up with me on this, I already deployed this to production and I need to get a fix in place. I prefer to use your calendar and I know there has to be a work around… just not sure where.

    Thread Starter ilukic

    (@ilukic)

    I was under the impression you guys had a strong tech support and customer service, alot of good reviews.. some help please 🙂

    Hey @ilukic,

    Can you explain to me what exactly isn’t working on your site’s front end? Are there events that aren’t showing?

    Also, please note that replies on this free forum can take up to a week, though we try to keep it under 2 business days.

    Best,

    Shelby

    Thread Starter ilukic

    (@ilukic)

    the pagination doesn’t work on the front end. I can show you it working on the backend via a team viewer session. The loading icon just keeps spinning.

    if you go to https://www.rondeleranch.com/calendar and click December >> it will never load.

    If you expect the elements, calls are being made to the internal hostname and not the published dns name as they should be.

    Hi @ilukic,

    I see this thread has been marked resolved and it appears that the calendar loading future months is working as well. Glad to see all working well!

    Cheers,
    Geoff

    Thread Starter ilukic

    (@ilukic)

    Yea, so I want to make a couple comments about this, I know that it was a free version and the commitment for support is not as solid but I would have expected a little more help. I fixed this 2 ways. 1. allow access on the network to the protected resource 2. edit your Ajax_Calendar.php file and remove the admin_url() function and add \wp-admin\ to the path. This resolved the issue. Apparently wordpress is not developed to have serious security or be behind a reverse proxy.

    Now I am having an issue with the events on the calendar days, which I will end up fixing my self by replacing the contents of $link in single-event.php this is going to be a nightmare for updates!

    You do have a great plugin!! Really appreciate it, we might consider purchasing pro but only if I know the support will be their even if their is theme interference.

    I’m definitely sorry to hear that. We do our best to provide as much support as we can here on WordPress.org and do so as a benefit to the community, but I understand that we fell short of your expectations and your feedback has definitely been heard.

    Now I am having an issue with the events on the calendar days, which I will end up fixing my self by replacing the contents of $link in single-event.php this is going to be a nightmare for updates!

    Do make sure that you use a template override. We do not make a ton of changes to single-event.php in our releases, but a template override will ensure that you at least do not lose your changes on plugin updates.

    You do have a great plugin!! Really appreciate it, we might consider purchasing pro but only if I know the support will be their even if their is theme interference.

    We cannot guarantee total support with theme conflicts because, by nature, a theme conflict implies that something needs to be changed in the theme and that’s something we are not well-suited to do. That said, we do make every effort to make sure the plugins are good to go on our end up to making code changes in a theme or another third-party plugin.

    Cheers,
    Geoff

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Continual Month View Pagination’ is closed to new replies.