WordPress.org

Ready to get started?Download WordPress

Forums

Gallery
[resolved] to Include YouTube Video (4 posts)

  1. Andrew
    Forum Moderator
    Posted 2 years ago #

    Hello,

    I want the Gallery to include YouTube Videos.

    Gallery items to include another field, 'video url' (for each gallery item).
    When this field is entered, it should replace the anchor tag 'href' value with the 'video url'.

    For FancyBox to respond accordingly, a new jQuery selector be required to switch 'type' to 'swf'. A class for the anchor tag, of maybe 'video', should be used as the selector for this new jQuery.

    The jQuery for FancyBox video should have all the default settings of the FancyBox image gallery, but added 'href' for youtube urls, 'type' and 'swf'.

    $(".video-or-something").click(function() {
    	$.fancybox({
    
    			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
    			'type'			: 'swf',
    			'swf'			: {
    				 'wmode'		: 'transparent',
    				'allowfullscreen'	: 'true'
    			}
    		});
    
    	return false;
    });

    I just need this add-on for complete satisfaction of this almost excellent plug-in.

    Would this be feasible?

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

  2. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    Yes, it should work.

    Best regards,
    Oksana

  3. Andrew
    Forum Moderator
    Posted 2 years ago #

    Would this be considered as an add-on to develop for, by you guys?

    I have tried to implement this but I lack understanding of the code.

  4. bestwebsoft
    Member
    Plugin Author

    Posted 2 years ago #

    We can help you to customize the plugin, but this is a paid service.

    Best regards,
    Oksana

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic