1. Scott King
  2. Sherlock Holmes
  3. General
  4. Tuesday, 20 September 2016
  5.  Subscribe via email
 I'm using the iCal feed capability of Matukio to have my events display on a JEvents calendar, which is mostly working well. There are a couple improvements though that I'd like to share with you:

I find that the short description was being written to the iCal feed / ics file with carriage returns in it, which isn't allowed in the iCal spec. It looks like the code in
components/com_matukio/views/ics/tmpl/default.php
attempts to remove carriage returns but it doesn't quite work. This causes only the first line of the short description to be displayed in the iCal feed reading tools I tried (MS Outlook, JEvents, and DPCalendar). I changed the syntax of the str_replace line and it seems to work fine now. Carriage returns follow through to JEvents via iCal since they are now replaced with the literal string "\n", which is allowed in the iCal spec. Also, I suggest including the Matukio event URL with the description so the user has a way to get back to the event and make a booking, see more details, etc. As well, html is not allowed in iCal descriptions so I added some code to do some basic conversion of HTML in the Matukio short description to ASCII. The HTML to ASCII code is based on the code at http://www.hashbangcode.com/blog/convert-html-ascii-php. It's very basic but it works and could be expanded if you want more html tags supported.

The result is now I get Matukio events showing up in my main JEvents calendar with my other events, the complete short description is displayed, and a link is included in the iCal description so users can get back to the Matukio event details page.

My changes start around line 51 of
components/com_matukio/views/ics/tmpl/default.php
attached to this posting and the conversion function is at the end.
Responses (4)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Hotspots Pro 6.0.13 compatability with Joomla 5.3.
Running Hotspots Pro 6.0.13 on Joomla 4.4.13 and want to upgrade to Joomla 5.3.1...
2 Replies
Posted on Friday, 04 July 2025
  • New
  • some questions on Hotspots
    Hi, On Hotspots extension : 1) is it possible to add our own map layer / v...
    0 Replies
    Posted on Thursday, 03 July 2025
    Trying to resize the image in the comments
    Hey everyone, Basically I am trying to make the images in the comments smalle...
    9 Replies
    Posted on Wednesday, 12 August 2009
    J5 compatibility for Hotspots
    Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
    2 Replies
    Posted on Monday, 24 February 2025
    • #Hotspots
    • #hotspots Joomla 5
    error message when adding/cofiguring email address
    When configuring the email plugin that send a email message to admin when a new ...
    0 Replies
    Posted on Friday, 09 May 2025