WordPress.org

Ready to get started?Download WordPress

Forums

Photoswipe for NextGEN Gallery
[resolved] please update this (3 posts)

  1. firewalljck
    Member
    Posted 1 year ago #

    Hi,

    Thank you for created this plugin. While i working i see your plugin is running everytime. and it make js error. if you update your plugin ngg-photoswipe.js with code below ithink the problem will be solved. (length > 0) need!!!

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. Or use pastebin.com instead. ]

    //Ready for photoSwipe!
    jQuery(function(){
    
    	if(jQuery(".ngg-gallery-thumbnail a").length > 0 ){
    	jQuery(".ngg-gallery-thumbnail a").photoSwipe({
    			captionAndToolbarAutoHideDelay: 0,
    			getImageCaption: function(el){
    				psTitle=jQuery(el).find("img").first().attr("alt");
    				psDescription=jQuery(el).attr("title");
    				psCaptionString="<strong>"+psTitle+"</strong>";
    	  			if (psDescription.length > 1) {
    					psCaptionString=psCaptionString+'<div class="ps-long-description"><small>'+psDescription+'</small></div>';
    				}
    				psImgCaption = jQuery(psCaptionString);
    				return psImgCaption;
    			}
    		});
    	}
    });
    
    jQuery(document).ready(function(){
    	//Remove thickbox effect:
    	jQuery('a.thickbox').removeClass ("thickbox");
    	//Remove lightbox effect:
    	jQuery('a[rel^="lightbox"]').attr("rel","");
    	//Remove highslide effect:
    	jQuery('a.highslide').removeClass("highslide").attr("onclick","");
    	//Remove shutter effect:
    	jQuery('a[class^=shutterset]').removeClass (function (index, css) { return (css.match (/\bshutterset\S+/g) || []).join(' '); });
    });

    http://wordpress.org/extend/plugins/photoswipe-for-nextgen-gallery/

  2. Guillermo Seņas
    Member
    Plugin Author

    Posted 1 year ago #

    I'll update this in the next version.

    Thanks

  3. Guillermo Seņas
    Member
    Plugin Author

    Posted 1 year ago #

    Updated in version 1.2, available now

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.