• Resolved Andreas

    (@sauerland)


    I have a problem handing over the nice URLs created by the plugin to Facebook Like and Send button.

    Currently, I’m using .urlencode(get_permalink($post->ID)). in that piece of FB code to get the URL of the post or page. On event listings made with Event Manager Extended that results in example.com/events/.

    What would the correct piece of PHP be to call the EME URLs?

    https://www.ads-software.com/extend/plugins/events-manager-extended/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Same issue, hoping to find an answer ??

    Plugin Author Franky

    (@liedekef)

    No dice. Here’s the code in SexyBookmarks:

    classes/public.php

    function get_shr_like_buttonset($pos = 'Bottom', $return_type = NULL) { // $pos = 'Bottom'/'Top' Case sensitive
            global $shrsb_plugopts, $post;
    		global $eventID;
    		if ($eventID) {
    			$event=eme_get_event($eventID);
    			$href = urlencode(eme_event_url($event));
    		} else {
    	        $href = urlencode(get_permalink($post->ID));
    		}

    This includes the suggested changes. I’m globalizing the $eventID, hoping to grab that variable from “somewhere.” What would be the proper way to access the eventID variable from within another plugin?

    Plugin Author Franky

    (@liedekef)

    For the Like button: there’s an option in the EME settings page that allows you to set extra HTML headers, useful for facebook headers.
    See here for extra headers facebook uses:

    https://developers.facebook.com/docs/share/

    This should allow you to add these html headers when viewing a single event …

    Do you have this working Franky? Not sure if I’m doing this right but putting this in the meta header doesn’t seem to affect FB:

    <meta property="og:share_url" content="#_EVENTPAGEURL" />

    Plugin Author Franky

    (@liedekef)

    Well, I don’t really use facebook myself but people asked for this. I’ll try this out later myself. But please do post this to the official forum: https://www.e-dynamics.be/bbpress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Events Manager Extended] Nice URLs/Permalinks’ is closed to new replies.