WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Events Calendar] Not compatible with NextGen Gallery

[Plugin: Events Calendar] Not compatible with NextGen Gallery

Viewing 7 replies - 1 through 7 (of 7 total)
  • The Events Calendar uses the thickbox function which comes with WordPress.
    NextGen Gallery is using a modified version of the same thickbox. That is probably why you are having a problem with the NextGen Gallery plugin and the Events Calendar plugin.

    How could I get around this? I do want to keep the thickbox effect for my photo albums.

    Cheers,
    Gene

    @gene,

    Right, I can understand that you want to keep the thickbox effect. You might also get other plugins that will want to use the thickbox effect. They will probably use the one which came with WP, so you will still have the conflict.

    I would think the solution would be to change the NextGen Gallery plugin to use the thickbox which came with WP, but I haven’t gone through all the changes the author put in. Some of those might be needed for his plugin.

    You mentioned changes in the thickbox when you had the Events Calendar and the NextGen Gallery both running. What were the changes in the thickbox? That might give a clue.

    Ron

    You mentioned changes in the thickbox when you had the Events Calendar and the NextGen Gallery both running. What were the changes in the thickbox? That might give a clue.

    Thanks for the answer.

    When clicking on a gallery, the pictures would show in thickbox but the surrounding grayed-out area was either gone or would sometimes show but only as a small portion of gray under the photo and breaking up the page layout.

    Cheers,
    Gene

    @raygene,

    My guess is that, even though he has a function in there to avoid collisions, it is not working. Obviously the NextGen Gallery and the Events Calendar are colliding over the thickbox function.

    Luke might have some ideas as to how to get around this.

    Ron

    All right, thanks. I’ll keep an eye on this thread, sure would love to have the 2 working.

    Cheers,
    Gene

    so, found a hack workaround for now:
    comment out the php lines in nggallery.php (as i’ve done below)

    // if (IS_WP25)
    	    	//	wp_enqueue_script('ngg-thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.1.1');
    	    	// else
    	    	//	wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.1.1');

    Events and Nextgen are both loading thickbox.js, but from 2 different places (and with a query string attached to the events js, must have been confusing WP). Nextgen loads from the plugin folder, while events seems to load from the wordpress js folder (opted to keep this one). NOTE: Nextgen will stop working if you remove the events calendar. You’ll need to go back and remove the php comments to get to work.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Events Calendar] Not compatible with NextGen Gallery’ is closed to new replies.
Skip to toolbar