Forum Replies Created
-
AuthorPosts
-
Jen
ParticipantThanks, Rob! I also found some double-slashed links in the grid, so a good look-see at the getLink() function and a liberal application of trailingslashit() should solve everything.
Jen
ParticipantOK, it looks like all the trailing slash problems trace back to getLink(), but I’ll let y’all figure it out. I see you also have a function trailingslashit() that could be used to clean it up.
Jen
ParticipantOops, the third function is actually getLink(), not tribe_get_linked_day(), and refers only to the ‘day’ case.
Jen
ParticipantJen
ParticipantI haven’t changed by UTC settings at all. I looked at the raw iCal feed, and it looks like it’s adding 59 seconds to the end of the time, which is getting rounded up to a full minute. So for instance, on an event that is ending at 7 p.m., the code reads “DTEND;VALUE=DATE-TIME:20120627T190059.”
Jen
ParticipantOK, nevermind on the “United States” thing. It only affects the events created before I updated my version of Pro to 2.0.6. The extra minute is still an issue, though.
Jen
ParticipantGot it! I had never seen that tab before. Now I know!
Jen
ParticipantCheck that your default template hasn’t changed (Settings > The Events Calendar). That was the issue for me. I switched it back to the correct template I wanted and all was back to normal.
Jen
ParticipantRob, my versions are also out-of-sync, and I’m not receiving automatic prompts from WordPress to update the Pro version. (I’m 2.0.6 on EC and 2.0.4 on Pro.) I also can’t locate the settings page with the license key, which I entered back in the initial installation. Odd. Is there a place to download the Pro installer?
March 22, 2012 at 10:07 am in reply to: Google Calendar feed displaying HTML entities incorrectly #17073Jen
ParticipantHA! Your comment box encoded the HTML entities I used as examples. I actually wrote “ampersand, number sign, 8220, semicolon” and “ampersand, number sign, 8221, semicolon.”
Jen
ParticipantMelody, I ran into this same problem. If you’re handy with PHP, you can work around it by hacking the function googleCalendarLink(), which is located in the file events-calendar-pro.php. You can either modify the function within the plugin itself (not recommended, but easier and faster) or by creating a copy of the function in your theme, renaming it, editing it, and then calling the custom function in your views.
Anyway, what I’m doing is using the WordPress function wp_trim_words() to shorten the description to 55 words within the Google Calendar link. This helps keep the URL from becoming too large.
I’m fixing some other stuff at the same time, so my new function now has a line that reads:
‘details’ => str_replace( ‘ ‘ , ‘+’, urlencode( html_entity_decode( wp_trim_words( strip_tags( do_shortcode ( get_the_content() ))), ENT_QUOTES, ‘UTF-8’))),
Someone out there who knows PHP better than I do can probably come up with a more elegant solution.
Jen
ParticipantI used a custom shortcode in the description of my events, and then when I exported the calendar items via either Google or iCal, the shortcode was left intact rather than expanded. So I’d see something like “[list cat=32 current=true]” instead of “This event is fantastic and you should totally go. Here are more details and a picture.”
In the case of iCalFeed(), the content is never filtered, so the shortcodes are never run. For googleCalendarLink(), the shortcodes are being encoded before they are filtered, which then prevents them from running.
Once I got this fixed, I then ran into two unrelated problems with googleCalendarLink(), which I’ll relate in separate threads. (One I think you’re already on top of.)
Jen
ParticipantSorry, I should have said apply_filters(‘the_content’,$content) in those references. Or I can also just wrap the content in do_shortcode() as before.
Jen
ParticipantI’m also having shortcode issues in the description portions of the functions iCalFeed() and googleCalendarLink(). The content in the former is not being run through apply_filters(), and the latter is getting encoded before apply_filters(), which prevents the shortcode from being expanded. I’ve got a workaround in place, but wanted to bring it to your attention.
I’ve also got a separate issue with too-long URIs that I see is being handled in an upcoming release.
Jen
ParticipantSure thing! The site is http://www.christchurchcathedral.org and the sitemap is http://www.christchurchcathedral.org/tribe_events-sitemap.xml.
-
AuthorPosts
