Resource icon

Link Preview 1.0.0

No permission to download
I know this is a free mod, but can we do so only links from certain websites will have a preview window? As an example only links from youtube.com will have a preview
 
On SSL website, causes unsecure error as soon as the link preview image is loaded. Looks like the preview image is loaded without https:// even if it's enabled on the forum. As soon as i hover an external link with my mouse, the browser displays a broken padlock icon showing SSL problem in google chrome "Your connection to this site is not fully secure"

Also for some reason the loading animation isn't working
 
Last edited:
On SSL website, causes unsecure error as soon as the link preview image is loaded. Looks like the preview image is loaded without https:// even if it's enabled on the forum. As soon as i hover an external link with my mouse, the browser displays a broken padlock icon showing SSL problem in google chrome "Your connection to this site is not fully secure"

To fix, just need to edit line 32 in \js\skinod\sodlinkpreview.js
Code:
html = $("<img class='skinod_linkpreview' src='" + "http://s.wordpress.com/mshots/v1/" + encodeURIComponent(previewUrl) + "?w=" + XenForo.sodLinkPreview.width + "'>");
replace with
Code:
html = $("<img class='skinod_linkpreview' src='" + "//s.wordpress.com/mshots/v1/" + encodeURIComponent(previewUrl) + "?w=" + XenForo.sodLinkPreview.width + "'>");
 
Top Bottom