Using in Wordpress Template - Playlist Question

  • moxzee
  • Topic Author

Using in Wordpress Template - Playlist Question was created by moxzee

This plugin seriously rocks! Much better than JW-Player!

I am using the plugin Advance Custom Fields to allow users to add videos to a playlist. I am using the following code to allow users to add up to 5 Youtube videos.
<div id=\"player\"></div><script type=\'text/javascript\'>

$(function () {
 

  $(\"#player\").yendifplayer ({
    videos:[
        {youtube:\"<?php the_field(\'youtube_1\') ?>\", title: \"<?php the_field(\'video_title_1\'); ?>\", description: \"<?php the_field(\'video_description_1\'); ?>\"},
      	{youtube:\"<?php the_field(\'youtube_2\') ?>\", title: \"<?php the_field(\'video_title_2\'); ?>\", description: \"<?php the_field(\'video_description_2\'); ?>\"},
		{youtube:\"<?php the_field(\'youtube_3\') ?>\", title: \"<?php the_field(\'video_title_3\'); ?>\", description: \"<?php the_field(\'video_description_3\'); ?>\"},
		{youtube:\"<?php the_field(\'youtube_4\') ?>\", title: \"<?php the_field(\'video_title_4\'); ?>\", description: \"<?php the_field(\'video_description_4\'); ?>\"},
		{youtube:\"<?php the_field(\'youtube_5\') ?>\", title: \"<?php the_field(\'video_title_5\'); ?>\", description: \"<?php the_field(\'video_description_5\'); ?>\"}]});
 		});

</script>

If one of these video fields is left blank, the playlist still displays an empty box. Is there a way to hide the empty box if the field is left blank? I\'ll be purchasing the commercial license tomorrow.
10 years 1 month ago #92

Please Log in or Create an account to join the conversation.

Replied by Administrator on topic Using in Wordpress Template - Playlist Question

Is it possible for you to validate and remove the empty fields before submitting the form ?

Alternatively, this could be achieved by making some changes in our yendifplayer.js file. Kindly mail to admin@yendifplayer after purchasing our commercial License. So, I can assign a developer to do this :)
10 years 1 month ago #93

Please Log in or Create an account to join the conversation.

Time to create page: 0.198 seconds

Business Address

PLUGINSWARE INTERACTIVE PVT LTD
Door No 2A, Venkateshwara Nagar,
1st Main Road, Velachery, Chennai,
Tamilnadu, India
Pincode: 600042
© 2013 - 2024 Pluginsware Interactive Private Limited. All Rights Reserved. The Joomla! name and logo is used under a limited license granted in the United States and other countries.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.