Are you saying that when you deactivate the Pregnancy Predictor plugin, your notifications and entries work as expected?
I looked at the plugin code and it looks like they are using a non-standard way of including the shortcode. See line 220 of the plugin code you posted:
[php]
function prpredct($content)
{
if(!strstr($content,"[pregnancy-predictor]")) return $content;
$ovcalc=prpredct_generate_html();
$content=str_replace("[pregnancy-predictor]",$ovcalc,$content);
return $content;
}
That's not normally how a shortcode is handled. Normally, you would expect to see something like this:
[php]
add_shortcode('gravityforms', array('RGForms', 'parse_shortcode'));
and then the "parse_shortcode" function:
[php]
//Parses the [gravityform shortcode and returns the front end form UI
public static function parse_shortcode($attributes, $content = null){
extract(shortcode_atts(array(
'title' => true,
'description' => true,
'id' => 0,
'name' => '',
'field_values' => "",
'ajax' => false,
'tabindex' => 1,
'action' => 'form'
), $attributes));
The function can be whatever you like. This is the function from Gravity Forms.
However, your plugin is not adding the shortcode in that way. It is processing all the content. I suspect that is related to the problem. However, I suggest you contact the author of that plugin and get their advice on resolving the conflict.
Posted 12 years ago on Thursday September 20, 2012 |
Permalink