Before you ask please READ THIS

Problem with video links in Album Media

After switching to https:// the video links in Album Media do not show up. Is there a code issue or something I need to adjust? The link to one of the pages is https://rolfringwald.com/album/fathomstudios/

Comments

  • AirAir
    Posts: 10,970
    Hi there:-)

    It looks like code issue, and cause of that browser blocks loading mixed content from http and https

    Please try do such change:

    Go to fatmoon\advance\utilities\media.php ~369 line
    
    if ( $type === 'youtube' ){
                return 'http://www.youtube.com/embed/'.$video_id.'?enablejsapi=1&controls=1&fs=1&hd=1&rel=0&loop=0&rel=0&showinfo=1&showsearch=0&wmode=transparent';
            }
            elseif ( $type === 'vimeo' ){
                return 'http://player.vimeo.com/video/'.$video_id.'?api=1&title=1&loop=0';
            }
    
    and change it to:
    
    if ( $type === 'youtube' ){
                return '//www.youtube.com/embed/'.$video_id.'?enablejsapi=1&controls=1&fs=1&hd=1&rel=0&loop=0&rel=0&showinfo=1&showsearch=0&wmode=transparent';
            }
            elseif ( $type === 'vimeo' ){
                return '//player.vimeo.com/video/'.$video_id.'?api=1&title=1&loop=0';
            }
    
    Please reply to me if it works so I could also add such fix in out code, so it will be there in next update.

    With kind regards.
  • You might need to point me towards the correct .php in wordpress. Which .php template is this located?
  • Found it! I added in the code you sent into the backend and it worked perfectly! Thank you for the help
  • AirAir
    Posts: 10,970
    Thanks for feedback!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!