WordPress.org

Forums

Jetpack by WordPress.com
[resolved] Sharing Module and Testimonial Basics (6 posts)

  1. kevinhaig
    Member
    Posted 2 years ago #

    I am the author of Testimonial Basics and I have been contacted regarding a conflict with the Testimonial Basics plugin and the Jetpack Sharing module.

    When a user submits a testimonial from the main area input form the data is uploaded twice to the database. When the sharing module is de-activated there is no problem. The user can also submit the testimonial from the widget input form without a problem.

    Any ideas?

    Kevin

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

  2. kevinhaig
    Member
    Posted 2 years ago #

    I have narrowed the problem down to the opengraph function.
    There is a way to disable it using :

    add_filter( 'jetpack_enable_opengraph', '__return_false', 99 );

    My next question: Is this critical for Jetpack? I know it sets up metatags for sharing, etc but if it is disabled is it a big deal?

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 2 years ago #

    You could indeed disable the Open Graph Meta Tags, but that wouldn't solve the core issue.

    Other plugin authors have reported similar issues, and the following thread helped them fix the issue:
    http://lists.automattic.com/pipermail/wp-hackers/2013-January/045053.html

    You can also read about it here:
    http://wordpress.org/support/topic/jetpack-204-upgrade-breaks-several-plugins?replies=9

    Let me know if this helps.

  4. kevinhaig
    Member
    Posted 2 years ago #

    Thanks for the reply Jeremey. I am struggling a bit with this one. The above links suggest that putting more complex php code (such as database updates or e-mails) inside filters/shortcodes can be problematic, especially when filtering $content as I am doing.

    I've been exploring options all day, and as I'm the first to admit, I'm a novice at this, a hobby programmer who loves the hobby.

    What I'm trying to accomplish is to allow the user to put a fairly simple form in the content of a page of their creation. Once the input is posted I want to validate the data, add the data to the database, and send an e-mail.

    The way I've injected the form/function is by using an
    add_filter('the_content',function,99);

    What would be a better way to add the form to the content of a page post?
    A way that prevents double posting.

    Any pointers or suggestions would be greatly appreciated!

    Kevin

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 2 years ago #

    Could you try to install the latest development version of Jetpack?
    http://downloads.wordpress.org/plugin/jetpack.zip

    We have worked on a fix that may solve the conflict.

    Let me know if that helps!

  6. kevinhaig
    Member
    Posted 2 years ago #

    Just had the chance to try this out. Submitted two test testimonials without any problems. Looks like the fix works.

    Much appreciated, and thank you and the Jetpack crew for helping.

    I'll retest when the next update comes out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.