WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dokether
    Member
    Posted 8 months 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.

    http://wordpress.org/plugins/ai-twitter-feeds/

  2. dokether
    Member
    Posted 8 months 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:

    http://cl.ly/image/2y3Q23310o28

  3. August Infotech
    Member
    Plugin Author

    Posted 7 months 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
    Member
    Posted 7 months ago #

    Awesome. Thank you!

Reply

You must log in to post.

About this Plugin

About this Topic