• Resolved hristoph

    (@hristoph)


    Hi, thanks for your great work!
    I worked out, how to import the “buy tickets” link from the facebook event and would love if you included it in your next update!
    Only one more thing has to be done by you: Create the database table field
    Let me know what you think, this would be very useful to many people in my opinion.

    One extra option is also, to make links in the event description clickable:
    Plugin: Events-Made-Easy/events-manager.php
    Version: 2.0.6
    Code Line 210: add_filter( ’eme_notes’, ‘make_clickable’,12 );
    Code Line 1606:
    // matches all fields placeholder
    if ($event && preg_match(‘/#_EDITEVENTLINK/’, $result)) {
    if (current_user_can( get_option(’eme_cap_edit_events’)) ||
    (current_user_can( get_option(’eme_cap_author_event’)) && ($event[‘event_author’]==$current_userid || $event[‘event_contactperson_id’]==$current_userid))) {
    $replacement = ““.__(‘Edit’, ‘events-made-easy’).”“;
    }
    //// GET #_FBTICKETLINK THROUGH EME_FACEBOOK_SYNC TWEAK
    } elseif ($event && preg_match(‘/#_FBTICKETLINK/’, $result)) {
    if ($event[‘event_fbticketlink’] != ”)
    $replacement = $event[‘event_fbticketlink’];
    //// GET #_FBTICKETLINK END /////////////////////

    //// GET #_FBTICKETLINK THROUGH EME_FACEBOOK_SYNC TWEAK
    } elseif ($event && preg_match(‘/#_FBTICKETKAUFEN/’, $result)) {
    if ($event[‘event_fbticketlink’] != ”)
    $replacement = “<p>Tickets HIER kaufen</p>”;
    //// GET #_FBTICKETLINK END /////////////////////

    Plugin eme-sync-facebook-events/eme-sync-facebook-events.php
    Version: 1.0.30
    Code Line 379:
    if (isset($fb_event[‘description’]))
    $event[‘event_notes’] = $fb_event[‘description’];

    //// GET TICKET URL FROM FACEBOOK TWEAK
    if (isset($fb_event[‘ticket_uri’]))
    $event[‘event_fbticketlink’] = $fb_event[‘ticket_uri’];
    //// END TICKET URL TWEAK
    $event[‘event_external_ref’] = ‘fb_’.$fb_event[‘id’];

    All the best for 2018 and keep developing those great plugins!
    Christoph

    • This topic was modified 6 years, 10 months ago by hristoph. Reason: added plugin version number

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Franky

    (@liedekef)

    Thanks for this addition. Although I don’t think there’s much use for EME if you sync events from FB and use FB for ticketing too ??
    But I’ll take a look at this and maybe import the FB ticket link as an event attribute that you can then use in your templates. That way no db changes are needed.

    Hi Franky,

    That would be fantastic if you can. Would help with trying to differentiate if an event is chargabel or not. Currently parsing the event details for a £ to find out, which gets me part of the way there. So a big plus one if we can use it as a conditiinal tag. You can see how I am currently using the parsing here in the today in Colchester section:

    https://keepcolchestercool.co.uk/

    Thanks
    Lee

    Plugin Author Franky

    (@liedekef)

    The next version will have the event attribute fb_ticket_uri which you can use as any other attribute in your templates.

    Thread Starter hristoph

    (@hristoph)

    Hi,
    thanks for the update. Unfortunately #_FB_TICKET_URI does not work…
    How to use it?
    thanks!

    Plugin Author Franky

    (@liedekef)

    There’s no such thing as #_FB_TICKET_URI. It is an attribute called “fb_ticket_uri”, see the EME doc on custom attributes: https://www.e-dynamics.be/wordpress/category/documentation/8-custom-attributes/

    Thread Starter hristoph

    (@hristoph)

    thanks! Now i understood. For everyone who want′s to know:
    #_ATT{fb_ticket_uri}
    works well

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import Facebook Ticket-Link (Feature Request & Solution)’ is closed to new replies.