CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • iCalendar feeds
Pages: [1]

Author Topic: iCalendar feeds  (Read 1217 times)

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
iCalendar feeds
July 07, 2012, 05:42:44 pm
What is the correct URL format for an iCalendar feed of CiviCRM events? The links generated on the CivEvent dashboard include the wp-admin directory, which is not accessible to the public.

If I remove the wp-admin directory the feeds when I am logged in as an admin, but if I'm not logged in the file returned includes HTML prepended to the ical file.

Example: http://bikewalkkc.org/wp/?page=CiviCRM&q=civicrm/event/ical&reset=1&list=1

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: iCalendar feeds
July 07, 2012, 07:38:06 pm

Seems like this functionality is not working correctly for wordpress

WP seems to output the html before civi outputs the ical feed and this messes things up a bit.

Can you investigate and figure out how to get around this issue. The relevant file and function is:

CRM/Utils/ICalendar.php, function send

might want to check how other plugins handle this case where they do not want any output from WP

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: iCalendar feeds
July 08, 2012, 04:17:17 am
Same problem with RSS feeds.  They work fine under the wp-admin URL structure, but not in any publicly accessible URL.

Is there an assumption that all public CiviCRM interaction will be via shortcodes in WP pages? If so, there don't seem to be any shortcodes for RSS and iCal feeds...

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: iCalendar feeds
July 08, 2012, 06:40:26 am

1. No assumption that all public urls will be via shortcodes in WP

2. Seems like wp + civi behaves differently for admin pages vs front end pages. As mentioned in the prior post, u'll need to figure out how civi should structure its output when it does not want any wp output preceding it

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: iCalendar feeds
July 08, 2012, 08:09:13 am
Thanks for the info. Unfortunately I'm not in a position to do any hacking, but I wanted to report it to the devs. Does anyone know of a workaround? Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • iCalendar feeds

This forum was archived on 2017-11-26.