AI Twitter Feeds (Twitter widget & shortcode)
[resolved] Emoji/Special Characters Breaking Display/Layout (4 posts)

  1. dokether
    Posted 2 years ago #

    I have embedded the AI Tweets shortcode into a tab-section on my client's site at RameenPeyrow.com which you can see on the "Twitter" tab below the fold.

    I am running into issues where the AI Twitter plugin is breaking the layout/design if my client happens to use any of the iPhone emojis in their status. For example, this status:
    https://twitter.com/Sattvayoga/status/393885530993479680 you can currently see is the one on RameenPeyrow.com that is breaking the layout of the tweets.

    It looks like possibly one of the rules in the preg_replace within the ai_makeLink function is perhaps grabbing something it shouldn't?

    I also had the client retweet this status: https://twitter.com/ceclatorre/status/395018541629308929 and it broke the layout as well because the huff.to/1dhllLg ”/
    portion of the tweet got interpreted wrong so I was getting the diamond question marks in it's place instead.


  2. dokether
    Posted 2 years ago #

    Trying to fix the feed in the meantime so I have delete the tweet that is causing the issue. You can see a copy of the tweet here:


  3. August Infotech
    Plugin Author

    Posted 2 years ago #

    Hello dokether,
    Thanks for using the plugin.

    In ai-twitter-feeds.php file you have find ai_makeLink($ai_tweets[$i]->text) code and replace to utf8_encode(ai_makeLink($ai_tweets[$i]->text)) code.

    Thanks & Regards,
    August Infotech

  4. dokether
    Posted 2 years ago #

    Awesome. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic