PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Popup in TinyMCE showing different plugin's box

  1. I have Gravity Forms and the Custom Post Widget plugin installed, both of which add an icon in the post editor. But when I click the GF button, the modal windows says 'Add Gravity Form' at the top but the rest of the box is for the other widget.

    I don't know much about how the code works, but the two links for the buttons are:

    <a id="add_content_block" class="thickbox" title="Add Content Block" href="http://www.--mydomain--.com/wp-content/plugins/custom-post-widget/popup.php#TB_inline?width=450&inlineId=select_form">
    	<img onclick="return false;" alt="Add Content Block" src="http://www.--mydomain--.com/wp-content/plugins/custom-post-widget/images/contentblock-13.png">
    	</a><a href="#TB_inline?width=450&inlineId=select_form" class="thickbox" title="Add Gravity Form"><img src="http://www.--mydomain--.com/wp-content/plugins/gravityforms/images/form-button.png" alt="Add Gravity Form" /></a>

    I realize the problem may be with the other plugin, but if you could point me in the right direction, that would be helpful.

    Thank you.

    Posted 12 years ago on Thursday June 23, 2011 | Permalink
  2. The problem is most likely going to be with the other plugin. Can you provide me with a link to that specific plugin in the WordPress.org plugin repository so we can take a look at it and see what is going on?

    Posted 12 years ago on Thursday June 23, 2011 | Permalink
  3. This is the plugin: http://wordpress.org/extend/plugins/custom-post-widget/ .

    thanks...

    Posted 12 years ago on Thursday June 23, 2011 | Permalink
  4. By any chance have you had a chance to look at that other plugin to see what the conflict could be?

    Thanks...

    Posted 12 years ago on Monday July 11, 2011 | Permalink
  5. The problem is they are using the exact same ID as we are for that modal window (select_form).

    On further inspection it looks like they lifted our code to implement that functionality using our code as a model so they could do the same thing. They literally used our code base to create their functionality. It's from an older version of Gravity Forms.

    The problem is they didn't change the ID that is being used, and that is what is causing the conflict.

    The ID they are using "select_form" is the same ID we are using and that is the problem. We can go ahead and make a change to our ID in the next release so it's "select_gravity_form" so it's even more unique... but the root of the problem is they copied our code and didn't customize it enough.

    Lifting and reusing code is fine, but developers need to make sure they do it in such a way that it isn't going to cause issues... such as using unique ID's.

    You may want to notify the developer of that plugin that they should update the ID used for that modal widow so that it is unique to their plugin.

    Posted 12 years ago on Tuesday July 12, 2011 | Permalink