matthewruddy / displaytweets Goto Github PK
View Code? Open in Web Editor NEWA simple Twitter feed plugin for WordPress that uses the v1.1 API.
A simple Twitter feed plugin for WordPress that uses the v1.1 API.
Cause:
PHP Class "OAuthException" can't be redeclared.
Solution:
Only declare if it doesn't already exist
Error message:
Cannot redeclare class OAuthException
After implementing this plugin on a site, the tweets seem to take between 4 and 5 hours to update instead of updating every few minutes as expected (I was thinking they would update at least every half-hour).
Is there a setting that needs to be changed to enable faster updates or is there perhaps a bug causing the updater not to run as frequently as intended?
The date/time reported by Display Tweets seems to always display in UTC, ignoring any timezone set in the Wordpress general settings.
For instance, a tweet posted at 10:44am ET (currently UTC -4) shows up as 2:44pm--a difference of 4 hours.
Example of the problem is here: http://horizonrecords.net
Sorry to be a pain, updated to version v.1.0.3 and retested. Been over an hour and still not updating latest tweets.
I have double checked it's not conflicting with any other plugins etc and 99% sure its not.
Line 501 needs to be updated. to the following
$text = preg_replace( "/#(\w+)/", "<a href=\"http://twitter.com/search?q=%23\\1&src=hash\" target=\"_blank\">#\\1</a>", $text );
As the old code is using the old API v1
$text = preg_replace( "/#(\w+)/", "<a href=\"http://search.twitter.com/search?q=\\1\" target=\"_blank\">#\\1</a>", $text );
I'm having an issue where given a tweet like:
"Hey checkout this link! google.com."
The period at the end of the link is being added to the anchor and href like so:
<a href="google.com.">google.com.</a>
twitter feed runs first time but then after first load i get this error.
Warning: Invalid argument supplied for foreach() in /{directory}/wp-content/plugins/displaytweets-master/displaytweets.php on line 591
Seems to take several hours to display a new tweet? Unless you go into the settings and click save then the tweet feed instantly updates.
When Trying to validate the site using this plugin the code fails at when the & Comes through,
Simple fix for this..
on line 515 in displaytweets.php change the '&' To the '&' Tag
Posted this on WordPress.org as well but it would be great to be able to include the Twitter profile image(s) for the main account as well as @replies and have that link to the respective profiles.
I looked through the code and couldn't find a simple way to add it...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.