'smilies'/icons in tweets breaking the plugin and site layout
-
Hello,
Firstly, congrats on such a great little plugin!
I’ve just found a small bug though, whenever a user uses emoticons (things like ?? ) in their tweet the import process of your plugin breaks and breaks the layout of the site as a result.
I’m not sure if the ‘smilies’ are automatically converted on twitter or whether users paste them from somewhere (not a big twitter user) but whatever they do it causes mayhem. I’ve had it happen to me countless times before but have only now pinpointed the problem.
Are you able to have a look at this for me and perhaps provide a fix? I’m sure I’m not the only one suffering from this.
To help, I’ve taken a couple of screenshots of what I’m experiencing and the html code of my temporarily broken page. I’ve disabled the plugin for now as I can’t afford to have this happen again. I hope you are able to help in some way.
Thanks,
Paul—
Code used to implement:
$twitter_feed = types_render_field("twitter-feed-username"); if ($twitter_feed != null) { db_twitter_feed(array('user' => $twitter_feed, 'count' => 4, 'exclude_replies' => "yes", 'cache_hours' => 6)); } else { db_twitter_feed(array('user' => "festivalarchive", 'count' => 4, 'exclude_replies' => "yes", 'cache_hours' => 6)); }
Broken Page: https://postimg.org/image/xtixr12k3/
Correct Layout: https://postimg.org/image/ul0bc5aod/
Smilies on Tweet (cause of issue): https://postimg.org/image/gzmxcxdf7/
- The topic ‘'smilies'/icons in tweets breaking the plugin and site layout’ is closed to new replies.