Problems extending Twitter Tools
-
We were trying to build an add-on plugin the past coupled of days. I want to be able to create blog posts from tweets with only a specific hash tag. I’m not a programmer myself so I enlisted the help of some friends. Both said that there is something that isn’t working. From one email conversation:
There seems to be a problem with the “aktt_do_tweet_post” filter. The author’s examples’ arguments don’t match with what I’m seeing in the twitter-tools.php itself.
Here is one simple example (without adding fields to the admin panel, etc.) that just didn’t work.
// ini_set('display_errors', '1'); ini_set('error_reporting', E_ALL); function dont_post_tweet($tweet, $post) { if (!strpos($tweet->tw_text, '#blog')) { // will not tweet return false; } else { // must return the $tweet to send it return $tweet; } } add_filter('aktt_do_blog_post_tweet', 'dont_post_tweet', 10, 2) ?>
Any help would be appreciated. I don’t want to modify the original plugin but as proof of concept, one guy added
if (!strpos($tweet->tw_text, '#postme')) { return; }
at line 537 in twitter-tools.php
Thanks! It’s a great plugin otherwise and I’ve been using it for the last year or so.
- The topic ‘Problems extending Twitter Tools’ is closed to new replies.