WordPress.org

Forums

[Plugin: Events Calendar] Not compatible with NextGen Gallery (8 posts)

  1. raygene
    Member
    Posted 7 years ago #

    I guess it's a work in progress and will be quite useful when done. The thing is, I had to stop using it because it plays tricks with NextGen Gallery's thickbox option.

    http://wordpress.org/extend/plugins/events-calendar/

  2. ronbme
    Member
    Posted 7 years ago #

    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.

  3. raygene
    Member
    Posted 7 years ago #

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

    Cheers,
    Gene

  4. ronbme
    Member
    Posted 7 years ago #

    @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

  5. raygene
    Member
    Posted 7 years ago #

    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

  6. ronbme
    Member
    Posted 7 years ago #

    @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

  7. raygene
    Member
    Posted 7 years ago #

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

    Cheers,
    Gene

  8. scottoliphant
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic