WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
Problem between SFC (like&share) and NextGen (4 posts)

  1. ebruni
    Member
    Posted 3 years ago #

    Behaviour:

    SFC ver. 0.21
    NextGen Gallery ver 1.6.1

    "Like and Share" button manually.

    With "SFC like" and "SFC share" disabled the NextGen Album shows good

    http://www.flickr.com/photos/ebruni/4986159816/

    but enabling "SFC Like Button" or "Share Button" the gallery is showed in page header

    http://www.flickr.com/photos/ebruni/4985559635/

    with this HTML Code

    http://www.flickr.com/photos/ebruni/4985569903/

    where you can see body and head code mixed.

    I don't know where is the problem (probably in nextgen code) but I solved changing these line, in function sfc_share_meta in sfc-share.php and sfc-like.php,

    $content = apply_filters('the_content', $content);

    with

    $content = sfc_share_button_automatic($content);

    I will be very happy if someone can solve finally this problem

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    Both the like and share buttons add meta data to the header. This is necessary.

    Your change will break them and prevent them from working at all. The buttons may show up, but the content will not be in the metadata and so they will not operate properly.

  3. ebruni
    Member
    Posted 3 years ago #

    Obviously I checked "like" and "share" buttons and all works well. I know that my changes aren't good but, at least for me, they work.

    I understand that both sfc and nextgen require to add meta to the header but, of course, their interaction produce a broken behavior of the nextgen album visualization as you see in the snapshots.

  4. ebruni
    Member
    Posted 3 years ago #

    I forgot to say that you can test it in my work in progress website

    http://www.croce-verde.it/prova/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic