• Resolved TheGuit

    (@theguit)


    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://ww.wp.xz.cn/plugins/kebo-twitter-feed/

Viewing 1 replies (of 1 total)
  • Plugin Author Peter Booker

    (@peterbooker)

    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.