IMPORTANT!!: At present Seesmic has blocked the API key for this plugin, you can read more here. So I have added support for using email notification, this is working for some users and not for others. Sorry but I can't do more about this, so blame to Seesmic not me.
UPDATE (2011/08/27): Ping.fm support will be removed in a future version of this plugin.
Sends
status updates to
Ping.fm (this means you can update Twitter, Facebook, LinkedIn, Plurk, and many others at once) everytime you publish a post. Using many shorteners or even your own domain for shortened permalinks. So this way you can send status to many sites at once if you have a
Ping.fm account or send only to Twitter if you prefer that.
If you find it useful, please consider to make a
donation to Shorten2Ping's author (any amount will be appreciated).
Features
- Send new posts notifications to Ping.fm service (account required).
- Avoids to ping again when editing previously pinged post or even when editing an old post not pinged before.
- Option to choose between bit.ly, tr.im, YOURLS, su.pr, is.gd, j.mp, wp.me, cli.gs or even you own domain for shortened permalinks.
- Option to turn off notification or shortener service. Now you can use Shorten2Ping only for notification if your domain is already short enough for you, or use only to get shortened urls for your posts.
- Stores created shortened permalink in a post meta field (used for template integration).
- Using
rel="shortlink"
like in wp.me http://wp.me/sf2B5-shorten, creating auto-discovery link tag for the short link on single post page header.
- You can use a template tag for showing visitors the short URL (using the same rel attribute as above for the shortened permalink).
- Locale support. Now available in English, Spanish, Italian and Traditional Chinese (zh_TW). See translation section for more info.
- WPMU compatible (you can have different settings for each blog).
- Simple, fast, and useful :)
Requirements
- PHP 5.x with CURL and JSON enabled (maybe works too in PHP4, but not tested and not supported by me).
- Your hosting provider must allow the use of PHP mail() function if you choose 'Ping.fm email' notification method.
- WordPress 2.7.x or higher (maybe would work on older WP, but not tested and not supported by me).
- Required your own account for the third party services that you want to use.
- Not tested and not supported on IIS servers.
Translations
If you want to make a translation for your language, use the shorten2ping.pot included and (if you want) send me the files to correo@samuelaguilera.com for including it into the plugin package, you'll be credited, of course (NOTE: No sponsored translations allowed).
Credits for present translations:
- Italian translation (it_IT) made by Riccardo Vianello AKA etms51
- Traditional Chinese translation (zh_TW) made by Pseric.
- French translation (fr_FR) made by Olivier.
- Polish translation (pl_PL) made by Darek Skonieczka.
- Spanish translation (es_ES) made by myself :)
1.4.8
- Fixed incompatibility with Stats from Jetpack causing a 'You do not have sufficient permissions to access this page.' error message.
- Added French translation, thanks to Olivier for it.
- Added Polish translation, thanks to Darek Skonieczka for it.
1.4.7
- Seesmic (owners of Ping.fm) thinks all users of Shorten2Ping are spammers so they decided to supend API key of this app (more info here: http://ur1.es/dlwqTX) so the plugin stopped working some days ago.
- Added option to send updates using posting email (http://ping.fm/email/), so now we don't need a f*cking API key!
1.4.6
- Removed support to send notifications directly to Twitter (not OAuth support, sorry).
- Removed tr.im support (that shortener is dead).
- Some code cleanup after removed services.
1.4.5
- Added support for using post tags as hashtags for Twitter, see options page for more information. (Thanks to evardsson for the code).
1.4.4
- Fixed a little bug in the new bit.ly function.
1.4.3
1.4.2
- Updated function to remove 'Get shorlink' button if (WP) stats plugin is active with new names of functions used in the latest stats plugin update.
1.4.1
- Added is.gd shortener support.
- Added j.mp shortener support.
- Added wp.me shortener support.
- Added cli.gs shortener support.
- Added Traditional Chinese translation (zh_TW) , thanks to Pseric.
- Updated spanish (es_ES) translation.
- Improved Facebook Thumbnail support. Now uses the new post thumbnail function if available and thumbnail was defined in the post by the user. If not, uses the first attached image or the one the user sets using fb_thumb custom field (like previous version).
- Changed su.pr function to use CURL instead of fopen.
- Changed from rel="short_url" to rel="shortlink". So now uses the same like wp.me
- Improved settings handling using WP API for settings.
- Fixed removing of the 'Get shorlink' button if (WP) stats plugin is active.
1.3
- Added a function to remove the new wp.me shortlink creation functions present in Wordpress.com stats plugin (if you're using Shorten2Ping you dont need support for wp.me short links).
- Improved Facebook support: Now if you upload and insert an image in your post, Shorten2Ping will add the needed tag in your post code to tell Facebook to take this image for the preview and not the first image in your page's code like used to be before. If you want to force the use of an image, you can add a new custom field to the post named 'fb_img' and put the full URL to the image in the value for this custom field.
- Added function to remove HTML tags (if any) from post titles before sending notifications.
- Updated compatibility tag to WordPress 2.9.
1.2.8
- Finally fixed html entities in title when using Ping.fm to notify new posts (not happened with Twitter). The fix consists in using $post->the_title instead of get_the_title($post_id), so not really a Shorten2Ping's bug but different output for two WP functions that should do the same.
- Improved options page. Now looks better and it's XHTML valid code :)
- Updated locale file (.pot) and es_ES translation to reflect some changes in options page.
1.2.4
- Added settings link on plugins page
- Fixed bug in Su.pr support (thanks to Brad for reporting it!)
1.2.2
- Added italian translation made by Riccardo Vianello AKA etms51
- Improved handling of settings when updating from 1.1.3 to 1.2.x
- Added some code to autofix blank settings created by 1.2 on new installations see http://wordpress.org/support/topic/319359?replies=4 (now you dont need to do that manually, simply deactivate and activate again the plugin).
1.2.1
- Fixed bug that prevents the plugin options to work on new installations.
1.2
- Changed checking user level (number based) to checking capabilities for the options page.
- Added YOURLS shortener support.
- Added Su.pr shortener support. (User requested feature).
- Added 'linktext' parameter to short_permalink() theme tag. Now you can choose between using short link as text for the link or use the "Short URL" text (default behaviour). (User requested feature).
- Added 'Self domain' option for shortened permalinks. If your domain is short enough for you, this option will not use any shortener service, but instead will use the post ID (default WP permalinks).
1.1.3
- Added checking to avoid to ping new pages. Now only posts are notified (as intended from start of making this plugin).
1.1.2
- Removed adding and checking of post meta data 'pinged = yes'. That was not needed since changes on 1.1.1
- Added 'both' option by user request to make possible to send notifications to both services (Ping.fm and Twitter) at once.
- Fixed typo that may cause users with no admin level to access to the options page. (Thanks to David Jack Wange Olrik for reporting the issue.)
1.1.1
- Changed action hook. Now the ping function is called only when post changed status from X to publish (where X can be new, draft, pending or future). So now, if you edit an old post (that you published before installing Shorten2Ping) or the post has any else status than mentioned this plugin does nothing.
- Removed echo statement at tr.im function (used while debugging) that causes no returning to post edit page after publishing on some cases.
- Removed @ operator at json_decode functions, now if any error happens while calling json_decode it will show on screen.
1.1
- Added support for http://twitter.com and http://tr.im
- Some other minor improvements/cleanup in the code.
- Store settings in an array to reduce calls to database.
- Added options for choose shorten and notification services, and to turn off them (so you can use Shorten2Ping only for notification if your domain is already short enough for you, or use Shorten2Ping only to get shortened urls for your posts).
1.0.2
- Replaced PHPingFM by Dmitri Gaskin for a single function based on the one by Sold Out Activist for the pingPressFM.
1.0.1
- Fixed a typo and Ping.fm developer approved.
1.0
Originally based on WordTwit 1.2 by Duane Storey.
PingFM function based on one by Sold Out Activistclass for the pingPressFM plugin, and
Bit.ly function by David Walsh & Jason Lengstorf.