gongtones
Forum Replies Created
-
that worked
Thanks. I’ll take a look. If I am able to put something together, I’ll share it here so that others can take advantage of it.
also, when I attempted to enter html content in the description, the feed import created a second event rather than update the existing one.
my mistake. I need to see the definition of get_image_from_content
I need to know where this function is found: get_post_thumbnail_url.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Event Contact Displayed as Raw Object IDForum: Plugins
In reply to: [Timely All-in-One Events Calendar] Event Contact Displayed as Raw Object IDNo, everything is fine on your side. What I’m seeing is that for some reason, the email address is being obfuscated when I run this. It must be something I’ve set in either my WordPress install or on my host server. As far as MAILTO:/ being part of the string, I was just checking the raw, unparsed value.
The good news is that I have the workaround documented here for safe keeping. ??
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Event Contact Displayed as Raw Object IDWhat I am seeing in the organizer field is:
MAILTO:/aOTIxNjk0OTU4OTIxNjk0OQdW-Yry0M_MSOPGU4o9uUGLTdhf6LI_4ARauxh4h4Ho/princip
al/There does not appear to be any data in the contact field.
Here is my workaround for imports from iCal on Mac OS X:
// =================== // = Venue & address = // =================== $address = $venue = ''; $location = $e->getProperty( 'location' ); //$matches = array(); // This regexp matches a venue / address in the format // "venue @ address" or "venue - address". //preg_match( '/\s*(.*\S)\s+[\-@]\s+(.*)\s*/', $location, $matches ); $matches = explode( '\n', $location ); // if there is no match, it's not a combined venue + address if ( empty( $matches ) ) { // if there is a comma, probably it's an address if ( false === strpos( $location, ',' ) ) { $venue = $location ; } else { $address = $location ; } } else { $venue = isset( $matches[0] ) ? $matches[0] : ''; $address = isset( $matches[1] ) ? $matches[1] : ''; $address .= isset( $matches[2] ) ? $matches[2] : ''; }
(NOTE: preg_match in your function didn’t work for some reason so I looked around and found that explode did the trick. Also, I had to add a non breaking space and the hex code for a line feed in order to get the address to display properly so it would load the Google map.)
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Removed Feeds, Cannot Get Data to Reloadthis was apparently due to DNS problems with CloudFlare.
So it should be contained with a <img> tag?
One question. Is this function emitting HTML or CDATA?
Let me make sure I understand. If I want the photo to automatically display in the event, I need to make it available somewhere on the internet and include a valid link?
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Event Contact Displayed as Raw Object IDThis is a feed from iCal v7.0(1841.1) on Mac OS X 10.9.5