WordPress.org

Ready to get started?Download WordPress

Forums

Gallery
[resolved] Gallery plugin conflicting with Appointment Calendar plugin, need help? (3 posts)

  1. FARAZFRANK
    Member
    Posted 10 months ago #

    Hi Bestwebsoft,

    Gallery plugin is such an awesome plugin. But i have some issue and need help with it.

    Gallery plugin conflicting with Appointment Calendar Plugin in admin dashboard.

    When we activate Gallery plugin, then firebug console detect 2 errors and these 2 error prevent calendar js not work. and big calendar in admin dashboard disappeared.

    check snap here

    When I tried this:

    1. Comment line no 1113 in file gellery-plugin.php

    //wp_enqueue_script( 'jquery-ui-sortable' );

    This hide 1st error e is undefined in console.

    2. And comment some of js code in action gllr_add_admin_script

    /*$( '#Upload-File .gallery' ).sortable({
    	stop: function(event, ui) {
    		$('.gllr_order_text').removeClass('hidden');
    		var g=$('#Upload-File .gallery').sortable('toArray');
    		var f=g.length;
    		$.each(		g,
    			function( k,l ){
    					var j=d?(f-k):(1+k);
    					$('.gllr_order_text[name^="gllr_order_text['+l+']"]').val(j);
    			}
    		)
    	}
    });*/

    Then it resolved 2nd error $("#Upload-File .gallery").sortable is not a function

    But this is not a correct way to resolve this issue, both js files has some error. I need your help to resolve this issue in correct way.

    Thanks & Kind Regards
    Frank Faraz

    http://wordpress.org/extend/plugins/gallery-plugin/

  2. bestwebsoft
    Member
    Plugin Author

    Posted 9 months ago #

    Hello FRANK FARAZ,

    The plugin Appointment Calendar is using the custonm files instead of js file of WordPress. Respectively, the plugin which works with js files of WordPress (as it is specified in WordPress codex), can't work correctly.
    The file appointment-calendar.php has 107-113 lines:
    wp_register_script(
    'jquery-custom',
    plugins_url('menu-pages/fullcalendar-assets-new/js/jquery-ui-1.8.23.custom.min.js',
    __FILE__),
    array('jquery'),
    true
    );
    wp_enqueue_script('full-calendar',plugins_url('/menu-pages/fullcalendar-assets-new/js/fullcalendar.min.js',
    __FILE__),array('jquery','jquery-custom'));

    The custom script jQuery ( /*! jQuery v1.7.1
    jquery.com | jquery.org/license */ ) is connected there.

    If you change these lines to the lines:
    wp_enqueue_script('jquery');
    wp_enqueue_script('full-calendar',plugins_url('/menu-pages/fullcalendar-assets-new/js/fullcalendar.min.js',
    __FILE__));

    Then errors will not appear.

    Kind regards,
    Support Team

  3. Stefan Harmsen
    Member
    Posted 6 months ago #

    Hello Frank Faraz and BestWebsoft,

    I've tried the last sollution, and it works partially.
    The Appointment Calendar now shows correctly in WP admin, but there's still a big problem with this solution.
    The datepicker won't show anymore! So I can't pick any date if I schedule a new appointment.
    Is there any solution for this??

    Kind regards,

    Stefan Harmsen | Webmonk

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.