Support » Plugin: Arrow Custom Feed for Twitter » Getting HTTPS twitter images

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 16440792

    (@anonymized-16440792)

    Yes user_timeline.json in the plugin author site is responding with http:// urls for the image urls.

    Is the plugin author reading?

    Not sure anyone is paying attention but here is what we have been doing to make this plugin SSL friendly… the quick and dirty way. The issue is that you have to update this file every time you update the plugin.

    In the file: /wp-content/plugins/arrow-twitter-feed/js/jquery.socialfeed.js

    At or around line 271 & 272, replace:

    post.author_link = 'http://twitter.com/' + element.user.screen_name;
    post.author_picture = element.user.profile_image_url;

    with:

    post.author_link = 'https://twitter.com/' + element.user.screen_name;
    post.author_picture_http = element.user.profile_image_url;
    post.author_picture = post.author_picture_http.replace('http://', 'https://');

    At line 277, replace:
    post.link = 'http://twitter.com/' + element.user.screen_name + '/status/' + element.id_str;
    with:
    post.link = 'https://twitter.com/' + element.user.screen_name + '/status/' + element.id_str;'

    At line 281, replace:
    var image_url = element.entities.media[0].media_url;
    with:

    var image_url_http = element.entities.media[0].media_url;
    var image_url = image_url_http.replace('http://', 'https://');
    Plugin Author Arrow Plugins

    (@arrowplugins)

    Hi @irocwebs,
    Will it work?

    It works for us. There may be a better way to do it, but like I said it’s the “quick & dirty way.” 🙂

    I’m using this, but leaving out the protocol by using ‘//’

    If owner will add me to the plugin, I’ll make the update in the repo.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting HTTPS twitter images’ is closed to new replies.