Social Media Feather - lightweight social media sharing and follow buttons
[resolved] Dynamic sharing with NextGen Gallery (4 posts)

  1. lagdonkey
    Posted 2 years ago #

    I love your plugin, but I've come across a big problem. When using it with NextGen gallery, when you share, it shares the page that the gallery is on, not the specific image. For example:


    where the gallery page is: http://amazinglyamusing.com/galleries/e-card-awesomeness/

    When sharing, it doesn't seem to include the gallery/image/funny-e-cards-1-2/ which is technically a query string that's been rewritten via a re-write rule.

    Without the re-write rule it would look something like http://amazinglyamusing.com/galleries/e-card-awesomeness/?pid=1

    and your plugin still doesn't parse the ?pid into the link.

    Just wondering if there's something you can suggest that would make your plugin include the rest of the link.


  2. lagdonkey
    Posted 2 years ago #

    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 http://amazinglyamusing.com/galleries/e-card-awesomeness/ part without the added bits at the end.

  3. Synved
    Plugin Author

    Posted 2 years ago #

    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.

  4. lagdonkey
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.