Support » Plugin: Social Media Feather | social media sharing » Dynamic sharing with NextGen Gallery

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, a bit of playing around, and I found this:

    $url = get_permalink();

    on line 616 in synvedsocial.php in the /synved subfolder.

    I replaced it with global $wp;$url = home_url( $wp->request );

    this made the links share properly in twitter/reddit etc, but for facebook it still stubbornly only uses the part without the added bits at the end.

    I’ll try fix this together with other URL handling issues in the next version.

    I can probably just add an option to specify whether you want to use the full URL or page urls.

    Great to hear, in the mean time I figured out a quick hack to get it working the way I want.

    I noticed the way your plugin works, that it grabs 3 key parts of the share data:

    The Url
    Image source
    The title

    It likely wouldn’t be hard to implement the same option for these 3 keys ie: being able to customize what is passed through, whether it be the standard post info, or possibly current image via the next gen gallery. I achieved this by playing around with the variables you have set, and a simple global $current in both your plugin, and the gallery view template in next gen itself.

    The problem I can’t get passed, is that Facebook doesn’t accept the Image source no matter what, likely due to the encoded url you pass through. It seems it uses their old deprecated share encoding. as opposed to their new like button which allows for more data to be passed through the url. However all the other social sites accept the changes I made and work the way they should.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic sharing with NextGen Gallery’ is closed to new replies.