=== Twitter Image Host === Donate link: http://atastypixel.com/blog/wordpress/plugins/twitter-image-host Tags: images,twitter,hosting Requires at least: 2.6 Tested up to: 2.9 Stable tag: 0.5.2 Host Twitter images from your blog and keep your traffic, rather than using a service like Twitpic and losing your viewers. == Description == Keep your traffic in the family! Host Twitter images on your own site, with support for comments and trackbacks, image resizing and thumbnailing with Lightbox. Twitter doesn’t yet come with its own inline image support, so we tend to be limited to using image hosting services, and linking to them with short URLs. So, services like Twitpic host the image, and we direct traffic to them in return. Better to take advantage of that traffic, and host images on your own site. This way, viewers come to your site, instead of someone else's! Posted images are displayed in your normal Wordpress template, with support for comments and trackbacks, without any setup required. Most themes should work with this, but if not, or if a different layout is required, a custom theme template can also be provided (see 'Creating a Template'). Provides an HTML form for posting image content, as well as an API modelled on that of [img.ly](http://img.ly/pages/API), compatible with Tweetie (for iPhone) and any other Twitter clients that speak this protocol and offer configuration of custom image hosting services. Uses Twitter's authentication and a list of authorised accounts, so you can let others use your image host too. You can even post status updates to Twitter while submitting images. Provides a widget and shortcode to display uploaded images. This supports filtering by Twitter account, styling with CSS, and Lightbox/Thickbox. Mac users, grab the Automator service from the [plugin's homepage](http://atastypixel.com/blog/wordpress/plugins/twitter-image-host) to be able to upload via a context menu item in the Finder! == Installation == 1. Unzip the package, and upload `twitter-image-host` to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Visit the settings page and add your Twitter account to the list of authorised accounts 4. Start submitting images - See the 'Posting Images' section for more If you find Twitter Image Host useful, please consider buying some awesome [Mac/iPhone software](http://atastypixel.com/products). Then tell all your friends. == On Comments and Trackbacks == This plugin uses a series of filters to make submitted entries mimic ordinary posts, so that they can be commented upon, and trackbacks left. This system is not yet perfected, so while commenting and trackbacks are supported, some quirks exist. For example, comments and trackbacks that are left are not visible in the comment manager in WP's administration. This situation may change as the plugin matures, but for now, please be aware of the limitation. == Frequently Asked Questions == = I get "Couldn't place uploaded file" messages = You probably need to create the folder in which Twitter Image Host stores uploaded images -- it will try to create the folder automatically, but it will fail if it doesn't have permission. Create a folder called `twitter-image-host-content` within the `wp-content` folder of your Wordpress installation, and make sure it has write permission for the web server user. = I keep getting 404 errors = Make sure your blog is using URL rewriting (i.e. your permalink structure is anything but the boring default `?p=###`). == Widget == To use the widget, simply visit the Widgets page and drag the "Twitter Images" widget into a sidebar and configure it. == Shortcode == Shortcodes are snippets of text that can be inserted into pages and posts. These snippets are replaced by various generated content. Twitter Image Host provides a 'twitter-images' shortcode to display images you have uploaded within a page/post. Available parameters: count Number of items to display id Single ID (eg 'abcde') of one image to display, or multiple IDs separated by commas (abcde,fghij) view Image thumbnail view: squares, proportional, large or custom custom_thumbnail_width Custom width for thumbnails, when 'view' is 'custom' custom_thumbnail_height Custom width for thumbnails, when 'view' is 'custom' custom_thumbnail_crop Whether to crop custom thumbnails author Comma-separated list of Twitter account names to limit results to columns Number of columns of images to display lightbox 'true' to use Lightbox/Thickbox Example: [twitter-images columns=4 lightbox="true"] == PHP function == As well as the shortcode, you can also use call `twitter_image_host_images()` from within a template to produce the same output. Pass the same arguments as the shortcode as associative array values:
There are no Twitter images.
== Posting Images == To start posting straight away, a simple form is provided at http://your-blog-url/twitter-image-host. Enter a title for your image, your Twitter account details, and select your image. Hit Submit, and you will be given the URL for the image. To access this facility from an application, use the access point http://your-blog-url/twitter-image-host. The API is more-or-less the same as that of [TweetPic](http://twitpic.com/api.do), [img.ly](http://img.ly/pages/API), etc. To post from Tweetie 2 for iPhone, visit Tweetie's settings, and within *Services, Image Service*, select 'Custom', then enter `http://your-blog.com/twitter-image-host/upload` For Mac users, an Automator service has been created to upload images by right-clicking on a file in Finder, then selecting a context menu item. This service can be downloaded from the [plugin's homepage](http://atastypixel.com/blog/wordpress/plugins/twitter-image-host). == Making the URL even shorter == If you run Wordpress from a sub-directory (for example, http://your-site.com/blog), then the short URLs generated by this plugin will look like `http://your-site/blog/xxxxx`. You can remove that 'blog' component via a little `.htaccess` trickery. Here's how: 1. Create and open a new file in your site's webroot called ".htaccess". If there's one already there, just open that up and prepare to edit at the bottom. 2. Add the following, replacing 'blog' with the real subdirectory under which Wordpress is installed: