GetSimple Support Forum

Full Version: Bug when DM Contactable and Fancybox plugin are activated
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi !

I found an incompatibility between the plugin "DM contactable" and "fancybox plugin".
When the two are enabled, fancybox features do not work.
Deepening research, the problem seems to be in the file DM_Contactable.php:

function DM_contactable_doheader(){
    register_script('contactable','/plugins/DM_contactable/js/jquery.contactable.js', '1.2.1', FALSE);
    register_script('contactable-validate', '/plugins/DM_contactable/js/jquery.validate.pack.js', '1.5.1', FALSE);
    queue_script('jquery', GSFRONT);
    queue_script('contactable', GSFRONT);
    queue_script('contactable-validate', GSFRONT);
    queue_style('contactable-css', GSFRONT);

If we remove this "register" script :

register_script('contactable-validate', '/plugins/DM_contactable/js/jquery.validate.pack.js', '1.5.1', FALSE);

Fancybox works but sending mail with "DM_Contactable" doesn't work yet...

Thanks for your help !
no problems here running both of these together.

Make sure your get_header() call in the <head> section is before all your script/style loads and that jquery is not loaded in your theme...
Thanks n00dles,

this is my <head> section :
        <?php get_header(); ?>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/css/style.css" />    
        <link href='' rel='stylesheet' type='text/css' />
        <script type="text/javascript" src=""></script>
        <script type="text/javascript" src=""></script>
        <script src="" type="text/javascript"></script>
        <script type="text/javascript" src=""></script>
        <title><?php get_page_clean_title(); ?> - <?php get_site_name(); ?></title>
        <?php menu_css(); ?>

I tried to delete all script section but same result.

Can look there :
I had the same problem.
Replaced jquery.validate.pack.js on jquery.validate.min.js.
Just replaced the relative path to the file in jquery.contactable.js (path to mail.php) (this is probably another problem, but because it does not send e-mails)

corrected plugin: