Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #44090
    Anonymous
    Inactive

    Franky,

    I would like to see the following feature requests if possible.

    1. Attach image using something like:

    $res .= “ATTACH:#_EVENTIMAGETHUMBURLrn”;

    $res .= “ATTACH:$event_linkrn”;

    (Tried this and doesn’t work unfortunately.)

    2. Strip characters from the Summary & Description.

    (In many of my events, the ICAL entries look like:

    SUMMARY:Slide & Get Diverted NYE at The Prince Of Wales | 31st December

    DESCRIPTION:Slide & Get Diverted NYE 2013 w/ Derrick Carter Does Disco @ The Prince of Wales…

    (I tried urldecode and rawurldecode but couldn’t get this to work either)

    3. Allow customisation of description format similar to the existing options for single event.

    4. If above not possible, change the default description value to #_NOTES as per this: http://www.e-dynamics.be/bbpress/topic.php?id=1271

    5. Pretty permalinks for the calendar URL

    Please let me know if these sound feasible.

    If you can point me in right direction I’m happy to try and work them out myself but wasn’t able to do it today.

    Thanks

    Tom

    #50860
    Franky
    Keymaster

    If you look at eme_ical.php, you’ll see that the summary and description take the same format as for single events, so that should be ok. Also I don’t see anything wrong in your SUMMARY & DESCRIPTION example above, so I don’t know what you mean with “strip characters”. If you look at the function eme_ical_single_event() in that file, you’ll see I already do some stripping.

    I just found out how to do html-format for ical entries though. An example:

    X-ALT-DESC;FMTTYPE=text/html:",$html_description,"rn";

    For the thumb url, try this:

    $thumb_array = image_downsize( $event['event_image_id'], get_option('eme_thumbnail_size') );
    $thumb_url = $thumb_array[0];

    I’ll try to generalize this code, so the thumb url will be a more generic property of the event, like

    $event

    and add $thumb_url using ATTACH:

    $res .= "ATTACH:$thumb_urlrn";

    This should already solve 1,2,3,4 🙂

    As per 5: what do you suggest there?

    #50862
    Anonymous
    Inactive

    When I pasted my code into here, BB seems to have decoded it, itself.

    Basically it was showing %# (percent/hash) symbols, etc.

    I added your code as follows and it validates ok, but not sure where to get the HTML Description from?

    $res = "";

    $res .= "BEGIN:VEVENTrn";

    //DTSTAMP must be in UTC format, so adding "Z" as well

    $res .= "DTSTAMP:" . gmdate('Ymd').'T'. gmdate('His') . "Zrn";

    $res .= "DTSTART;TZID=$tzstring:$dtstartrn";

    $res .= "DTEND;TZID=$tzstring:$dtendrn";

    $res .= "UID:$dtstart-$dtend-".$event."@".$_SERVER."rn";

    $res .= "SUMMARY:$titlern";

    $res .= "DESCRIPTION:$descriptionrn";

    $res .= "X-ALT-DESC;FMTTYPE=text/html:" . $description . "rn";

    $res .= "URL:$event_linkrn";

    //$res .= "ATTACH:$event_linkrn";

    $thumb_array = image_downsize( $event, get_option('eme_thumbnail_size') );

    $thumb_url = $thumb_array[0];

    $res .= "ATTACH:$thumb_urlrn";

    $res .= "LOCATION:$locationrn";

    $res .= "END:VEVENTrn";

    return $res;

    For the permalinks, I was just thinking of something like; yourdomain.com/[events_page]/calendar/category/

    Thanks

    Tom

    #50863
    Franky
    Keymaster

    Could you mail me what is in your “real title” and the result shown in ical then? So I can try to reproduce it.

    Also: does this mean the thumb_url works?

    Concerning the html description: $description is stripped from html-tags for now, I was just giving the info in case somebody might be interested.

    For the permalinks: I need to rethink the whole lot of them. Right now there exist a number of possible permalinks that are not documented, so I’ll first start with that 🙂

    #50864
    Franky
    Keymaster

    These 2 changes should help you:

    http://plugins.trac.wordpress.org/changeset/809316

    http://plugins.trac.wordpress.org/changeset/809318

    From the changelog:

    – Feature: separate format for ICAL entries

    – Bugfix: correct escaping of characters for ical format

    – Improvement: add image thumb url to the ical feed if present

    #50865
    Anonymous
    Inactive

    I did this, reactivated the plugin, it said database needed to be upgraded which I did, but now the events list is only showing the date and no events in between.

    This is my shortcode:

    [events_list limit=0 notcategory=34 showperiod=daily link_showperiod=0]

    It’s also serving a blank page for single events.

    No issues with the Locations pages though.

    Any idea what’s causing this?

    Thanks

    #50866
    Franky
    Keymaster

    Since those changes are based on already updated versions of all files, I recommend that you use the whole trunk version for testing this one.

    #50867
    Anonymous
    Inactive

    Ok – I’ve restored now and will try trunk later.

    Thanks for quick response.

    #50868
    Franky
    Keymaster

    Well,I took another look at the changeset and it should not result in any of the problems you described. So, can it be that you did not apply the changes but just downloaded the new versions of the changed files? Because that would explain things … if you did that, you should update all files.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top