Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13174

    Hello,

    when trying to click on Youtube or Vimeo icons at the top right corner (the social bar icons), it opens a lightbox, then the browser says “Image cannot be loaded. Make sure the path is correct and image exist.” for Youtube, and load indefinitely for vimeo.

    I tried to take a look at the “helper-social-media.php” to find the problem, but I didn’t get anything.

    Can you help me?

    #78129

    You can see the error going to http://sensation-mariage.fr/

    #78130

    I think I found a fix for this so YouTube links don’t open in a popup unless it’s an actual video.

    In line 975 of the coherence/js/avia.js file, change this:

    autolinkElements: ‘a[rel^=”prettyPhoto”], a[rel^=”lightbox”], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=”.mov”] , a[href$=”.swf”] , a[href*=”vimeo.com”] , a[href*=”youtube.com”] , a[href*=”screenr.com”]’

    To this…

    autolinkElements: ‘a[rel^=”prettyPhoto”], a[rel^=”lightbox”], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=”.mov”] , a[href$=”.swf”] , a[href*=”vimeo.com”] , a[href*=”youtube.com/watch”] , a[href*=”screenr.com”]’

    Now you can enter a YouTube PAGE URL in the Coherence social media configuration menu and it will NOT be shown in a popup or give you an error, as in: http://www.youtube.com/user/GIIVideo

    IF you want a YouTube video to open in a popup, then you enter the WATCH URL, as in: http://www.youtube.com/watch?v=ebmsFmSe654

    I don’t know if this will adversely affect any other YouTube / Popup functionality, but it’s working for the YouTube social media icon.

    #78131

    Hello,

    Thank you for the solution Brad.

    Regards,

    Ismael

    #78132

    Works perfectly.

    Thanks a lot bradpennoci

    #78133

    Hi,

    Glad that this was resolved. :)

    Cheers,

    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘YouTube & Vimeo social icons bug (rel=lightbox[auto_group1])’ is closed to new replies.