Import Facebook Ticket-Link (Feature Request & Solution)
-
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!
ChristophThe page I need help with: [log in to see the link]
- The topic ‘Import Facebook Ticket-Link (Feature Request & Solution)’ is closed to new replies.