Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug when DM Contactable and Fancybox plugin are activated
#1
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:

Code:
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);
    register_style('contactable-css','/plugins/DM_contactable/css/contactable.css','1.2.1','screen');
        
    queue_script('jquery', GSFRONT);
    queue_script('contactable', GSFRONT);
    queue_script('contactable-validate', GSFRONT);
    queue_style('contactable-css', GSFRONT);
}

If we remove this "register" script :

Code:
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 !
Reply
#2
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...
My Github Repos: Github
Website: DigiMute
Reply
#3
Thanks n00dles,

this is my <head> section :
Code:
<head>    
        <?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='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css' />
        
        <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
        <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
        <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
        <script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>
        
        <title><?php get_page_clean_title(); ?> - <?php get_site_name(); ?></title>
        <?php menu_css(); ?>
    </head>

I tried to delete all script section but same result.

Can look there : www.artisan-online.fr/#portfolio
Reply
#4
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: https://www.dropbox.com/s/ygj85etokpnxnz...e.zip?dl=0
Reply




Users browsing this thread: 1 Guest(s)