Version 0.7 fixes a few bugs and adds a few minor features.
Bugs
- Timezone issues: dates and times should now display in the correct timezone, regardless of the WordPress timezone setting. The plugin “Timezone adjustment” option should now work correctly
[link-path]shortcode: this Event Display Builder shortcode has been changed to[url]to address an issue preventing it from working correctly- Hidden page lists in Opera: page lists should now display correctly in Opera
Features / Enhancements
Descending order
Lists can now be displayed in descending order. This can be useful if you’re showing a list of past events. There’s a new drop-down box in the widget settings where you can choose the order. If you’re using the shortcode, there’s a new order parameter that can be set to asc or desc.
New Event Display Builder shortcodes
[cal-id] and [event-id] shortcodes have been added. These output unique identifiers assigned by Google for the calendar (feed) or event. These are most useful for constructing links to the XML or ical feeds for a single event.
For example, to construct the link to the .ics feed for a single event, you can enter the following into the Event Display Builder:
<a href="http://www.google.com/calendar/ical/[cal-id]/public/full/[event-id]">ics feed</a>New Event Display Builder parameters
Two new parameters have been added. The first is offset. This can be applied to the date / time based shortcodes, and essentially adds an offset (in seconds, can be negative) to dates / times before they are formatted and displayed.
The second is autolink. This parameter can be applied to the description shortcode, and controls whether or not URLs entered in the description field in Google Calendar will be automatically made into “clickable” links.
CSS Classes
The plugin now adds classes to calendar grid cells to indicate whether the day that the cell represents is in the past or the future. Past days get a gce-day-past class and future days get gce-day-future.
Tidier CSS
The CSS stylesheet that the plugin provides had a few !important declarations in it, which made overriding certain styles difficult. These have been removed. Other minor tweaks have been made too.
I’ve added a new general option that, when enabled, adds another stylesheet that contains much of the old CSS. This is to prevent layouts of sites using 0.6 and below from going wonky straight away. It would be a good idea to adjust your CSS so that you don’t need this enabled. It will be removed at some point.
All Feeds
Previously, if you didn’t enter a feed ID into the widget settings, an error message would be displayed. The shortcode would display only feed 1 if the id parameter was omitted. Now, the plugin will display all feeds in these cases. This is more consistent, useful and intuitive. You can still specify comma-separated lists of feeds IDs as before too.
Many thanks to those who downloaded, tested and provided feedback on the beta of 0.7. It is very much appreciated!
Any feedback on the new version is also welcomed. Please leave a comment below, or on the main plugin homepage, or send me an email.
You can download 0.7 from the plugin directory.
Hi,
Was the classes .gce-tooltip-start, .gce-tooltip-end removed? If so where can I add them?
Also: I’m trying to use the plugin in Swedish but the arrows show “Next month” and “Previous month”. Any remedy for that? See http://staffanstorp.se
Thanks, Johan
Hi Johan,
The classes weren’t removed as such, but they are omitted from the default Event Display Builder setup. If you’d like to use them, you can simply adjust the Event Display Builder to include them, something like this:
Regarding the arrows; thanks for pointing this out, I’ve forgotten to make these available for translation. I’ll ensure they’re translatable in the next version. As a workaround for the meantime, you could edit lines 43 and 45 of
google-calendar-events/inc/php-calendar.phpto suit.By the way, really nice job with the CSS on your site. The calendar looks awesome!
Ross.
Hi Ross,
My website won’t load the next month when I click on the arrow. It just stays stuck on Loading… I’ve had this issue before and upgraded my jquery to solve it.
Can you please help? Thanks.
Hi Peter,
This is a bug in version 0.7. I’m working on addressing the problem, and should hopefully release a fixed version shortly. Apologies for the inconvenience in the meantime.
Ross.
Hi again Peter,
I believe I have fixed this bug in the development version of the plugin. If you (or anyone else!) could test it out and provide any feedback, that would be great.
Thanks,
Ross.
works perfect…thanks Ross!!
Hi Ross, Your plugin seems to break when you enable force admin SSL for the backend of wordpress. What happens is that when you arrow through the calendar it makes an Ajax call between (http://www.sitename.com) & (https://www.sitename.com) and this breaks cross-domain call rules, making the plugin just show loading but it can’t complete the request.
A form of a proxy might work but it would require some effort, what are your thoughts as it relates to this a “force admin ssl” so backends are secure but still allowing your plugin to work.
Thanks,
Tom
Hi Tom,
Yes, I’m aware of this issue. The problem is that the Ajax call is sent to
wp-admin/admin-ajax.php(the “recommended” thing to do, even for front-end Ajax).I think changing line 599 of
google-calendar-events/google-calendar-events.phpso that instead of this:it reads this:
might do the trick.
If so, I’ll make sure this is fixed for the next release.
Ross.
looks like google might have changed its single event .ics. This doesn’t seem to work anymore…
Bryan,
You’re right.
I’ll investigate further and see if I can figure out what has changed.