• Resolved wprunner

    (@wprunner)


    Hello,

    There is a problem with displaying the social media bar when the “Improved Include Page” plugin is used.

    The “Improved Include Page” plugin allows to include content of a page into another page.

    So, say that we have Page1. We created Page2 that includes Page1 by using the shortcode [include-page id=”1″]. When Page2 is rendered you will see that the Addtoany plugin hooks the Social Media bar at the end of the included text of Page1. What should happen is that it should hook the social media bar after the text of Page2.

    To see what I mean, here is some screen shots:

    Page1
    http://img690.imageshack.us/img690/1239/page1dq.jpg

    Page2:
    http://img713.imageshack.us/img713/2214/page2ht.jpg

    This not only happens with pages but also with widgets that use the include code. The Addtoany plugin will follow the places where the include code is put and hook the social media bar to it.

    I am unable to use the Addtoany plugin because I heavily rely on the Improved Include Page plugin.

    Please fix this problem and make the plugin identify the real hooks that it should attach itself to. It should just ignore all places where the include code is used.

    Thanks.

    http://wordpress.org/extend/plugins/add-to-any/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author micropat

    (@micropat)

    It’s not an issue with the AddToAny plugin (it uses the appropriate hooks), it’s just the nature of the “include” plugin that you’re using.

    An immediate workaround would be to turn off AddToAny’s automatic placement and hard-code the button into your theme. You can do this in Settings > Share/Save Buttons

    Thread Starter wprunner

    (@wprunner)

    You want to tell me that this cannot be solved from the Addtoany plugin side? I know that it could be solved from the “Improved Include Page” plugin side but I believe that it could be solved from the Addtoany side as well.

    There is a similar problem when the “Sociable for WordPress 3.0” plugin is used and I issued a support thread about it here:
    http://wordpress.org/support/topic/plugin-sociable-for-wordpress-30-duplicate-social-media-bars-when-used-with-improved-include-page-plugin?replies=3

    The difference from what showed with the Addtoany is that on Page2 it only showed the social media bar after the include code and didn’t show it after the text of Page2, while with the “Sociable for WordPress 3.0” plugin showed the social media bar twice on Page 2 as you can see here:
    http://img715.imageshack.us/i/page2sy.jpg/

    I think that there is a way for the Addtoany plugin to identify the correct hook as it only showed the social media bar once.

    Plugin Author micropat

    (@micropat)

    An immediate workaround would be to turn off AddToAny’s automatic placement [on pages] and hard-code the button into your theme. You can do this in Settings > Share/Save Buttons

    Did you try this?

    Specially detecting this “Include” plugin (which a small number of publishers have installed) would be the only way to really work around this out of the box. Sure, any plugin can provide workaround logic for every other potentially conflicting plugin, but that practice leads to a sort of feature creep that is best avoided. AddToAny prefers the core WordPress platform to work around potential plugin conflicts instead of relying on plugin & theme detection for special resolutions. The plugin also supports the alternative placement method I mentioned above for isolated cases such as this one.

    That said, the “Improved Include Page” plugin might be modified to accommodate a defaults-only usage by using this core function: get_the_content (no plugin filters applied) in lieu of the_content (which includes filters such as AddToAny’s). This would allow you to use AddToAny with the default automatic placement.

    Thread Starter wprunner

    (@wprunner)

    I usually prefer not to hard-code into themes for plugins, but it looks like I have no other choice.

    Thanks anyway.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: AddToAny: Share/Bookmark/Email Button] Make Addtoany plugin work with Improved Include Page’ is closed to new replies.