Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi itpdesign,

    We already have code in place to automatically detect which (https or http) is required and to use the correct protocol. It’s strange that yours would be trying to run an embed of the http version on an https site. It could be a conflict with something else. If it’s not automatically being set correctly, the only way you would be able to bypass/force it would be to alter the plugin code. We set the correct protocol in a variable called $Protocol in the “Shortcodes.php” file, in the “Functions” folder. It would be easier to update this variable than to try and change the numerous places the YouTube link is referenced in the code. In that file, you can look for the following line:

    
    $Protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "https://";
    

    And just replace it with:

    
    $Protocol = "https://";
    

    Also, if you navigate to the “upcp-jquery-functions.js” file from the “js” directory, do a search for YouTube and replace the “https://” with “https://” and see if this fixes the issue.

    Thread Starter itpdesign

    (@itpdesign)

    Thank you for your response

    i replaced the original code with your suggestion and uploaded the new files to the server. But it does not work….

    What else could we do?

    Hi itpdesign,

    Could you send us a direct link to one of your Youtube videos? (e.g. https://www.youtube.com/watch?v=….etc)

    Edit: sorry, we found the link to the video in the product description.

    Just to make sure:
    1) Are you using the most recent version of the UPCP plugin?

    2) Are you adding the Youtube IDs (e.g. as ‘vXuDZn3g55A’ ) to the “YouTube Video ID” section?

    Thread Starter itpdesign

    (@itpdesign)

    Hi there,

    1. I use UPCP Version 4.4.0

    2. Where i can find the “YouTube Video ID” section?

    Hi itpdesign,

    Please update to the latest version 4.4.3 and see if you still have the issue. Once you have updated to the latest version, go to individual product page (under “Products” tab) and look for the “Add Product Videos” section. Here you should be able to add the YouTube Video IDs.

    Thread Starter itpdesign

    (@itpdesign)

    Sorry, but it′s me again:

    I have do so: Update to 4.4.3. …

    Edit Productpage … see Screenshot. But nothing happens. ;(

    https://www.itpdesign.de/download/Screenshot-Strauss-Immo.jpg

    (Both versions do not work)

    Hi itpdesign,

    Could you remove all the links from the product and add just the video IDs and see if that makes a difference? The video ID is the part that follows “watch?v=” which as per the above screenshot should just be “vXuDZn3g55A”.

    Thread Starter itpdesign

    (@itpdesign)

    Now i see my mistake clearly ??

    Thanks a lot,
    really great support!!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘UPC Lightbox plays no Youtube Video’ is closed to new replies.