Linux 软件免费装
Banner图

SimpleTwit

开发者 GYatesIII
更新时间 2014年10月17日 11:51
PHP版本: 3.3 及以上
WordPress版本: 3.5.2
版权: GPLv2 or later
版权网址: 版权信息

标签

caching feed cache widget twitter simple twitter feed developer oauth designer template tag

下载

1.1.1 1.2.0 1.2.1 1.2.2 1.3

详情介绍:

A plugin for developers and designers that sets up a WP_Cron to pull in and cache a user's stream using OAuth and the Twitter v1.1 REST API. It's all that a developer needs to incorporate a Twitter feed on their site, the OAuth handling, caching to avoid rate limiting, and utilities to easily format Tweets correctly without predefined styles to work around. For designers, the plugin creates a widget that can be used to easily display and style Tweets in your theme. Features Usage There are two main ways to access the Tweets, one aimed at developers and one aimed at designers. For Designers This plugin creates a widget that allows display of the most recent Tweets in any sidebar in your theme. When adding the widget you can customize how many Tweets and what information is displayed, choosing from content, time, author, and source. The widget outputs HTML5 which with classes to style on every element, including flagging Tweets as Retweets and Replies. You will be able to style this widget to look exactly as you need it it to. For Developers For those with something special in mind and willing to get their hands dirty, this plugin provides powerful access to the DB of Tweets. Tweets can be grabbed through a template tag and are provided in a special object jam packed with features: STF_Tweet An array of these objects is returned by the template tag instead of the WP_Post object, or an individual can be constructed by passing the post ID of the Tweet to the object constructor. The object provides a number of useful methods when working with Tweets. This object has the following accessible properties: The object has the following methods: stf_get_tweets($args) This will be the main function used to get Tweets from the DB. This function takes an array of parameters as follows:

安装:

  1. Upload SimpleTwit to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to Twitter's Developer Center](https://dev.twitter.com/) and setup your Twitter app to get your OAuth credentials
  4. Add in your OAuth credentials through Settings >> Twitter Feed
  5. The plugin will scrape the API right away and let you know if there were any problems with the information provided

屏幕截图:

  • A view of the admin area settings
  • A `print_r()` of the results of `stf_get_tweets()`
  • Options for the widget in the admin area

常见问题:

How can I get this to display Tweets?

This plugin is intended entirely for developers and therefore there's no prebuilt Twitter feed box or widget. Instead, this plugin provides the stf_get_tweets() function that will return an array of Tweet objects that can be easily looped through and used to build a custom Twitter feed. Making it easy for anyone with familiarity with PHP, HTML and CSS to create the perfect custom Twitter feed they were looking for.

更新日志:

1.3 Feature Updates 1.2.2 Bugfixes 1.2.1 Bugfixes 1.2.0 New Features Feature Updates Bugfixes 1.1.1 Bugfixes 1.1.0 New Features 1.0.0 New Features Feature Updates Bugfixes RC1