• I have a video index page with 20+ videos, so embedding each video directly into the page is not practical. Instead I present a list of thumbnails which launch the video in a Fancybox powered iframe modal window. The implementation in my loop looks like this:

    <a class="fancybox-iframe" href="http://www.youtube.com/embed/<?php echo $vid_id[0]; ?>?rel=0&autoplay=1"><img src="http://img.youtube.com/vi/<?php echo $vid_id[0]; ?>/2.jpg" alt="" width="95" height="90" /></a>

    As such I can’t take advantage of the myCred video shortcode to award points for viewing the videos. Is their another option or workaround I can implement to award the points?

    Thanks for the great plugin!

    http://wordpress.org/plugins/mycred/

Viewing 1 replies (of 1 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hey.

    Your best option would be to have a look at how the shortcode outputs the video and when on the page with the modals, also include the video.js script that handles the actual payout of points.

Viewing 1 replies (of 1 total)
  • The topic ‘Youtube videos in Fancybox modal window’ is closed to new replies.