WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Events
[resolved] Ajax not working with the fix - Still not showing future months (28 posts)

  1. pluginsboy
    Member
    Posted 1 year ago #

    Hello Ross,

    I have made a calender at this link:
    http://www.ledøjeforsamlingshus.dk/kig-i-kalenderen/

    ( xn--ledjeforsamlingshus-x7b.dk )

    And pagination does not work via Internet Explorer (9.0.8), when clicking next month, it keeps hanging on "Loading" (Tænker...) but in Mozilla Firefox this works perfectly as intended.

    Do you have any idea where the bug in your plugin or the site could be, that I could fix?

    I have also tried your plugin fix in another post, but still no luck. (I have not updated to 3.5 yet because I am worried I get even more unlucky with the plugin).

    Thanks in advance.

    Pluginboy

    http://wordpress.org/extend/plugins/google-calendar-events/

  2. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hello,

    Apologies for not replying to your initial email, I've been quite busy the last week or so!

    This issue is really puzzling. I think it's something to do with the way Internet Explorer handles the difference between the xn--ledjeforsamlingshus-x7b.dk and ledøjeforsamlingshus.dk versions of your domain name, but I'm not 100% sure about that.

    I'll continue to investigate and let you know if I figure anything out.

  3. pluginsboy
    Member
    Posted 1 year ago #

    Hi Ross,

    Thank you, because it is a real "pain" that no one can see in other months :)

    I will wait and cross fingers and hope that you will get a fix for this.

    I have not had any problems before with the domain name I must admit though.

    Happy New Year.

    Pluginboy

  4. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi again,

    I've created a little plugin that, when installed, should hopefully work around this problem. You can find the plugin code here.

    To install it, you'll need to do the following:

    1. Copy / paste the code into Notepad (or any plain text editor)
    2. Save the file as gce-hardcode-ajax-url.php (set the encoding to UTF-8)
    3. Upload the file to your wp-content/plugins folder
    4. Activate the plugin in your WordPress admin

    Let me know if that does / doesn't work, or if you have any further problems.

  5. pluginsboy
    Member
    Posted 1 year ago #

    Hi Ross,

    Thanks!

    It seemed to do the trick. Thank you for the fix, it was exactly what I needed. A late Christmas gift ;-)

    Best regards,
    Pluginsboy

  6. pluginsboy
    Member
    Posted 1 year ago #

    Hello again Ross,

    I might have been too fast the other day.

    It works perfectly the fix you've made, but I can only move forward to May 2013 and then the "Next" button is gone, even though there is events long past May, and in admin I have from beginning of time to end of time setting, and refreshed the cache, and "Maximum number of events to retrieve" set to (500) way more than events there.

    Do you know the issue, and can divert me out of it?

    Thanks in advance.

  7. Socoliuc
    Member
    Posted 1 year ago #

    Hi

    I also used the plugin you made,but still the same problem ... next button dissapeared ...

  8. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Pluginsboy,

    It looks like you have the max parameter of the [google-calendar-events] shortcode set to 10. I think the plugin is displaying more than 10 currently, as most of your events seem to be recurring events (the plugin only counts the first instance of a recurring events against the max value, which is sort of a bug).

    If you remove the max parameter, the plugin should display all the events it has retrieved.

  9. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Socoliuc,

    You may need to increase the "Maximum number of events to retrieve" option so that events further into the future are retrieved.

  10. pluginsboy
    Member
    Posted 1 year ago #

    Thanks Ross, I believe it is a fault on my end, making some calender events private, I will test and see.

  11. pluginsboy
    Member
    Posted 1 year ago #

    Hi Ross

    I am still having issues with this "Next" button. I will show you the front and admin section in images, so you can see what I mean.

    Image 1
    Image 2
    Image 3

    I hope you can help me figuring it out.

    I have used different browsers, cleared cache, clicked "Refresh feed", waited a day to see if it worked afterwards - nothing helped.

  12. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hello,

    It looks like you have the max parameter of the [google-calendar-events] shortcode on your page set to 10. If you remove the max parameter, it should display all events, allowing you to navigate further into the future.

    In the widget settings (Appearance > Widgets) it looks like you have the "Maximum no. events to display..." option set to 5. Try setting this to 0 (to display all events).

  13. rapidz
    Member
    Posted 1 year ago #

    I've got the same issue. We're currently in Feb, I click on next month, it displays the events from March, but then the next button disappears and I can't retrieve any more.

    What's going on? By the way, this plugin is beautiful - if we can just crack this, it'd be even better!

  14. rapidz
    Member
    Posted 1 year ago #

    By the way, I'm not using shortcodes, I'm using it as a widget...

  15. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi Rapidz,

    What do you have the "Maximum number of events to retrieve" option set to? You may need to increase it so that events further into the future are retrieved.

  16. rapidz
    Member
    Posted 1 year ago #

    Wow, what incredible support, wasn't expecting such a quick response.

    Ok, so when I go to the plugin settings, and then edit the feed, the maximum number of events to retrieve is set to 500.

  17. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    What do you have the "Retrieve events from" and "Retrieve events until" options set to?

  18. rapidz
    Member
    Posted 1 year ago #

    they're both on 0

  19. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    How about the drop-down boxes for those settings ("The beginning of time", "00:00 today" etc)?

  20. rapidz
    Member
    Posted 1 year ago #

    Here you go, here are all the settings including the widget settings:

    http://i50.tinypic.com/1z4fzoj.jpg

  21. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Those settings all look fine.

    Does you calendar actually contain events in April and beyond? The navigation arrows won't show up if there are no events to display in the next / previous month.

  22. gsaikin
    Member
    Posted 1 year ago #

    Hmmmm....thought I posted this - but I'll try again. I did what was suggested with the fix, named it as it stated (cut/paste so I didn't make mistakes), but it does NOT show up on my list of plugins! Therefore, I cannot 'activate' it. Any other ideas? Somehow, it broke - ie. when one went to widgets, you couldn't move them around and place them where you wanted...but when I reinstalled wordpress, it worked, except for the ajax (yes, I checked the box that said something about putting java code at bottom). Also, even though my counter is NOT on a widget on the right hand side, the counter only (not the accompanying info like whose online, etc.) shows up in the right hand side and I can't figure out how to get rid of it. Ideas? I really need to get the calendar working so folks can determine ahead of time when and where square dancing will be. Any ideas would be helpful (would restoring the sql database solve the problem, or would it "restore" the problem.

  23. gsaikin
    Member
    Posted 1 year ago #

    Oh, I forgot to mention that yes, there are dates well in advance (through fall 2013), so that's not the problem (you stated that if there were no more events beyond a given month that could cause ajax to not work)

    Oh...my test site is http://www.ginasweb.com - go to home page (the small calendar upper right) and events the big calendar in middle and small on right. You'll see (i've tried it in safari and chrome) no arrows on either side of the month. It's probably going to be something simple like a typo or something, but... The site I maintain is http://www.squaredancepro.com I had to hide the events page, since the calendar was broken until I can reinstall wordpress.

  24. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi Gina,

    I think you originally posted on a different thread (with a similar title).

    The plugin "fixes" I have posted above and on the other thread are very specific to particular sites, so are unlikely to be of use to you anyway (I should have made that more clear, sorry about that!).

    What do you have the "Retrieve events from", "Retrieve events until" and "Maximum number of events to retrieve" options set to?

    Also, what do you have the max parameter of the [google-calendar-events] shortcode set to, and the "Maximum number of events to display" widget option set to?

  25. gsaikin
    Member
    Posted 1 year ago #

    Ross, you were right on - I'd put a small # for the # of events, but since I have events listed through the fall, I put 300. That did it! Thanks much!

    Gina

    PS Probably woulda figured that out but with all the stuff that's been happening lately....

    Again, thanks! (can you either move this to the proper thread, or move my last post re this to here, please?) Thanks!

    Gina

  26. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Gina,

    I'm glad that did the trick!

    I can't move threads or posts, I'm afraid.

  27. janjan32
    Member
    Posted 11 months ago #

    Hi There,
    I'm using the short code on a page [google-calendar-events]
    but I don't see any where to put the number of events in the settings.
    How would I add the number for over 300 events? My next and previous months do not show.

    thanks,
    http://ayso86.org/calendar/

  28. Ross Hanney
    Member
    Plugin Contributor

    Posted 11 months ago #

    Hello,

    Do you have the type parameter of the [google-calendar-events] shortcode set to ajax, as below?

    [google-calendar-events type="ajax"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.