Support » Plugin: amr ical events lists » Links doesn’t work

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author anmari

    (@anmari)

    I spent quite some time on this JUST in case it was something the plugin had to change, but it’s not.

    Next time please provide the ics url being used directly – This is the single most useful piece of information you could provide so that I can see the input data amd try recreate your problem. Luckily I noticed you had the links in the widgets on the side. (more on those below)
    Also next time please say exactly which event and date you were referring to.
    Luckily for you I also don’t like the idea of a bug and was persistent enough to work out which as many of the events were coping ok with the html in them.

    Note: html is not officially allowed in DESCRIPTIONS in the RFC5545 spec (suppopsed to use ALTREP) and will give variable results. for example if reimported into google, the line breaks are all over the place http://i.imgur.com/rDOawzJ.jpg and from my iphone – see the < br https://drive.google.com/file/d/11d62Ajjw-_jjQYEdJ96OL0OLVBK5OIP5/view?usp=sharing

    The plugin passes the event description through wordpress function ‘make_clickable’. Somehow the html in the descriptions has managed to ‘break’ that function for the event on 15th November. Other events with mailto’s appear to be fine. Because of wp’s “make clickable”, one doesn’t actually need to force html links into the descriptions to have http urls be clickable.

    One can sometimes get away with some html, but in this case that particular event does not even have very good html. Note that <font> is obsolete and use should be discouraged. Try removing as much of that html as possible, keep the text clean, and that should fix it. Or you could work out what the make_clickable bug is and log that on wp trac.

    The event in the ics file:

    
    BEGIN:VEVENT
    DTSTART:20181115T170000Z
    DTEND:20181115T190000Z
    DTSTAMP:20180821T002628Z
    UID:1k6o69svltuomfde72d7vbdot3@google.com
    CREATED:20180807T090256Z
    DESCRIPTION:<br><br><font color="#000000"><span>Die Veranstaltungsreihe „St
     yrian Marketplace“ ist ein Präsentationsforum fürFachgruppenmitglieder. Mit
      Schwerpunkt IT werden dabei innovative steirische Produkteund Dienstleistu
     ngen unserer Mitglieder\, den interessiertenFachgruppenmitgliedern präsenti
     ert.</span><span><font face="Times New Roman"> </font></span></font><br><fo
     nt color="#000000"><span><br></span></font><font color="#000000"><span>Für 
     diePräsentationen sind jeweils 15 Minuten vorgesehen und maximal 3 Präsenta
     tionenpro Veranstaltung. Im Anschluss an die Statements besteht die Möglich
     keit zurvertiefenden Information und zu Kontaktgesprächen bei „Würstel &amp
     \; Bier“. </span></font><br><font color="#000000"><span></span></font><br><
     font color="#000000" face="Times New Roman" size="3"></font><br><span><font
      color="#000000"><span><font color="#000000">Sollten auch Sie Interesse hab
     en\, Ihr steirisches IT-Produkt zu präsentieren\, wendenSie sich per E-Mail
      mit Ihrer Produktbeschreibung an Ihre FachgruppeUBIt unter <a href="mailto
     :office@ubit-stmk.at" target="_blank">office@ubit-stmk.at</a>.</font></span
     ></font></span><br><span><font color="#000000"><span><font color="#000000">
     <br><a href="https://veranstaltungsanmeldung.wkstmk.at/?VANR=01042918" targ
     et="_blank">Ich möchte mich als Veranstaltungsteilnehmer anmelden!</a></fon
     t></span></font></span>
    LAST-MODIFIED:20180816T090850Z
    LOCATION:WKO Steiermark\, Körblergasse 111-113\, 8010 Graz\, Österreich
    SEQUENCE:0
    STATUS:CONFIRMED
    SUMMARY:Styrian Marketplace
    TRANSP:OPAQUE
    END:VEVENT

    NOTE ON WIDGET LINKS. Suggest you test all of these in various scenarios and devices.
    The sites ‘Google calendar’ subscribe link does not work. I use google and wanted to see what it did with the html (some apps just through all the html tags away) I was able to add the calendar without the webcal (use https) . Webcal is unofficial and not necessary. While I appreciate that the idea of the webcal protocol is to get people to subscribe, it is not foolproof (not used everywhere) and may end up confusing. When testing back & forth and trying to refetch the ics file with one of the other links, my windows 10 does not know about webcal as default so it just spews and says choose application etc. As far as I’m aware there is no foolproof way to force people to subscribe to calendars rather than importing, which is why this plugin goes with the one ics url as per RFC5545. You could offer links to the various apps help pages on how to subscribe/add to calendars rather.

    Good Luck!

    • This reply was modified 1 year, 3 months ago by anmari. Reason: misspelling and add code tags

    Hy Anmari!

    Thanks for your promt reply!

    I must apologize that I probably did not express myself correctly.

    Please have a look on the Event on Saturday 08.09 – EPU Erfolgstag 2018, there is a link in the event “www.erfolgstag.at”, so when you click there you get –> https://www.ubit-stmk.at/termine/http%3A//www.erfolgstag.at/

    We’ve had a look on it where the problem came from, we see that when we add the URL and save there is no problem, the Link works, but when klick on edit the link and save and don’t change anything there they crash the link and cannot resolve the ‘:’. This is also when we set an linktext there.

    Kind regards,

    Plugin Author anmari

    (@anmari)

    Hi, I’ve looked at your file again and my answer above is still relevant. I spent time comparing your events and it seems to me that the events that

    1. Do not have < a href are ok
    2. have < a href and no target=”_blank” or br tags are also OK
    3. the problems ones are the ones that have target=_blank, < br tags and a full < a href

    I did a test myself (created and went back & edited) and google by default does NOT appear to add the a href or the br tags. Therefore it is somehow being created by the way you are maintaining the events, perhaps pasting content?

    My test event:

    CREATED:20180821T105819Z
    DESCRIPTION:\n\nthis is a test\n\nIm spacing it out \n\n\nhttp://anmari.com
    LAST-MODIFIED:20180821T105819Z

    This is the event you mentioned in your ics file:

    DTSTART;VALUE=DATE:20180908
    DTEND;VALUE=DATE:20180909
    DTSTAMP:20180821T110640Z
    UID:0q01bmfrvv0344ao72b886ncgu@google.com
    CREATED:20180807T090132Z
    DESCRIPTION:<br>Ein-Personen-Unternehmen sind oft auf sich alleine gestellt
      – obwohl sie die größte                                Gruppe von Unterneh
     merInnen im Land bilden. Der EPU Erfolgstag steht ganz im Zeichen der      
                               steirischen EPU und liefert im Kompaktformat wese
     ntliche Inputs für Ihre                                Unternehmerkarriere.
      Spannende Vorträge\, mitreißende Redner\, praktische Workshops und        
                             wertvolle Beratungen – und das alles zum Nulltarif.
     <br><br>Nähere Informationen zum Programm finden Sie auf <a href="http://ww
     w.erfolgstag.at/" target="_blank">www.erfolgstag.at</a><br><br>Die Teilnahm
     e ist limitiert\, melden Sie sich jetzt online an - <a href="http://www.erf
     olgstag.at/register" target="_blank">www.erfolgstag.at/register</a>

    To summarise:

    • html in ics DESCRIPTION is not standard. How it appears in other apps is HIGHLY variable, thus not a good idea. see the images linked above.
    • google does not by default create the html that is ending up in your ics file.
    • Because HTML not allowed for in ics DESCRIPTION, the plugin uses wp make_clickable so that links are clickable SOI a href is not needed. I will not be changing that.

    Note my own amr events plugin handles any html in the event post as suggested by RFC5545 and would get around this funny for you. You could add html and the feed would be clean.

    DESCRIPTION;ALTREP="https://test.icalevents.com/event/wekelijkse-bijeenkoms
     t/":This is a test\n\n\n\nhttp://anmari.com
    X-ALT-DESC;FMTTYPE=text/html:This is a test\n\n\n\n<a href="http://anmari.c
     om" target="_blank" rel="noopener">http://anmari.com</a>

    So your options as I see it are:

    • Remove the html from the events – maybe cut and paste from a text editor AND then open the updated ics file in a text editor like notepad++ to double check that there is no bad html.
    • Use amr-events plugin to create events in wordpress
    • Not really a serious option: Research whether there’s a bug in make_clickable and if so, report to wp
    • use another event listing plugin that doesn’t use ‘make_clickable’
    • This reply was modified 1 year, 3 months ago by anmari. Reason: un html'ed the html
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Links doesn’t work’ is closed to new replies.