Title: Adding HTTPS support on twitter Avatar
Last modified: August 21, 2016

---

# Adding HTTPS support on twitter Avatar

 *  Resolved [TheGuit](https://wordpress.org/support/users/theguit/)
 * (@theguit)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-https-support-on-twitter-avatar/)
 * The Kebo Twitter Feed doesn’t use https version of avatar.
 * Here is a little improve of list view (views/list.php:86-109) :
 *     ```
       <p class="ktext">
                           <?php if ( 'avatar' == $instance['avatar'] ) : ?>
                               <?php
                                 $profil_image = '';
                                 if(isset( $tweet->retweeted_status )) {
                                   if($_SERVER['HTTPS'] === 'on') {
                                     $profil_image = $tweet->retweeted_status->user->profile_image_url_https;
                                   } else {
                                     $profil_image = $tweet->retweeted_status->user->profile_image_url;
                                   }
                                 } else {
                                   if($_SERVER['HTTPS'] === 'on') {
                                     $profil_image = $tweet->user->profile_image_url_https;
                                   } else {
                                     $profil_image = $tweet->user->profile_image_url;
                                   }
                                 }
                               ?>
                               <a href="https://twitter.com/<?php echo ( isset( $tweet->retweeted_status ) ) ? $tweet->retweeted_status->user->screen_name : $tweet->user->screen_name ; ?>" target="_blank">
                                   <img class="kavatar" src="<?php echo $profil_image ; ?>" />
                               </a>
                           <?php endif; ?>
                           <?php echo ( ! empty( $tweet->retweeted_status ) ) ? $tweet->retweeted_status->text : $tweet->text ; ?>
                       </p>
       ```
   
 * Enjoy
 * [http://wordpress.org/plugins/kebo-twitter-feed/](http://wordpress.org/plugins/kebo-twitter-feed/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * (@peterbooker)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/adding-https-support-on-twitter-avatar/#post-4241389)
 * Hi TheGuit,
 * Thank you very much for letting us know this was not included. It seems I removed
   it while changing the avatar to work with Re-Tweets. I have amended the code 
   to properly use the https version (whether Re-Tweet or Tweet).
 * I just pushed this out in the latest version (1.0.9), thank you again for helping
   us to improve the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Adding HTTPS support on twitter Avatar’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/kebo-twitter-feed_00aced.svg)
 * [Kebo Twitter Feed](https://wordpress.org/plugins/kebo-twitter-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kebo-twitter-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kebo-twitter-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/kebo-twitter-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kebo-twitter-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kebo-twitter-feed/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [improvement](https://wordpress.org/support/topic-tag/improvement/)

 * 1 reply
 * 2 participants
 * Last reply from: [Peter Booker](https://wordpress.org/support/users/peterbooker/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/adding-https-support-on-twitter-avatar/#post-4241389)
 * Status: resolved