WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
SFC and Events Manager (4 posts)

  1. Marcus
    NetWebLogic Support
    Posted 2 years ago #

    Hi Otto,

    There's a really picky conflict with SFC and EM, and after spending some time tracking this down, it seems to be related with how both plugins use the_content. I think I'm mainly at fault here, but maybe someone can provide some insight.

    There's situation where this messes up when there's pages containing our shortcode. For example, there's a shortcode that generates a form to submit events, and errors are printed first time round only. sfc_base_meta and the wp_head stuff seems to set this off a few times to generate meta data (this is with no modules enabled) and the main page therefore has no errors.

    In both cases, our page is generated more than once. The quick fix is to not delete errors until the page has loaded and all is fine, but this is highlights the fact that there's probably a lot of unnecessary processing here.

    I'm thinking of adding the intensive shortcodes later on (e.g. late into wp_head?), which should help with plugins like this, but I'm worried about other conflicts that may potentially arise with other plugins.

    Ideally, EM would only fire our hook once when needed, and this problem should go away, but I can't think of a straightforward way to tackle this. Any suggestions welcome!

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Marcus
    NetWebLogic Support
    Posted 2 years ago #

    Btw, I get what you're saying here and in other places, and it's not SFC's fault.

    http://wordpress.org/support/topic/plugin-simple-facebook-connect-sfc-conflict-with-other-content-plug-ins-not-resolved?replies=2

    A bit off-topic for plugin support but any suggestions to reduce the number of times a shortcode would be parsed at least via your plugin would be of great help!

  3. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    My suggestion would be simply to not use SFC.

    Have you tried the new Official Facebook Plugin yet?

    http://wordpress.org/extend/plugins/facebook

  4. Marcus
    NetWebLogic Support
    Posted 2 years ago #

    Well, your plugin is great, and my plugin should work with your plugin if it's properly written, simple and plain :)

    I'll think of some workarounds to avoid the extra processing on yours for those asking. The more I think about it, the more wrong I am to let the errors display once in a run that can be used in the_content

    Hadn't heard of this one yet, thanks for the heads up. Does this mean you're going to depreciate this one or merge with the new Official one?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic