joefish
Forum Replies Created
-
Forum: Plugins
In reply to: Auto Tweet just post title and link to post?You’re very welcome. 🙂
Forum: Plugins
In reply to: Auto Tweet just post title and link to post?Submission to Twitter is handled through the action hook
publish_post, which calls my functionauto_tweet_submit. You’re correct thatpost_nameis the post slug, but unless you’ve filled in the Post Slug field in the Write Post form,post_nameis a null value whenauto_tweet_submitis called.You may have better luck trying to generate a cruft-based URL, like http://blogaddress.com/?p=1234 (where 1234 is the ID of the post). That URL will redirect to whatever is the “real” permalink according to your settings.
You can experiment with dumping the values of $post_id and/or $_POST to see how the post ID might be stored in either of those two variables.
Forum: Plugins
In reply to: Auto Tweet just post title and link to post?Ah. I didn’t know that feature of Twitter Tools was troublesome for some people.
Auto Tweet is licensed under the GPL, so you’re very welcome to tweak it to your heart’s delight, and release your own version as well. I believe Alex’s Twitter Tools is also GPL (but you’ll want to double check on that), so you can use his code as a guide for how to add the function you want to Auto Tweet. Or add Auto Tweet’s functionality to Twitter Tools, for that matter.
Forum: Plugins
In reply to: Auto Tweet just post title and link to post?I don’t have any plans to add a feature like that. I wrote Auto Tweet mostly to satisfy my own needs. I wanted a plugin that would cross-post my short-form blog posts to Twitter. I couldn’t find anything that would do that, so I wrote Auto Tweet.
The exact behavior you’re looking for can be found in other plugins, like Alex King’s Twitter Tools.
Forum: Installing WordPress
In reply to: Always checked?The current version of the plugin does not have a mechanism for that, but you can modify that simply enough.
In version 2.0, line 85 is:
echo ' <p style="line-height: 120%; margin-top: .5em; margin-bottom: 0;"><input type="checkbox" name="auto-tweet-checkbox" id="auto-tweet-checkbox" onclick="if (this.checked) { document.getElementById(\'counter\').style.display=\'inline\'; } else { document.getElementById(\'counter\').style.display=\'none\'; }" />' . "\n";Change that to:
echo ' <p style="line-height: 120%; margin-top: .5em; margin-bottom: 0;"><input type="checkbox" name="auto-tweet-checkbox" id="auto-tweet-checkbox" onclick="if (this.checked) { document.getElementById(\'counter\').style.display=\'inline\'; } else { document.getElementById(\'counter\').style.display=\'none\'; }" checked="checked" />' . "\n";Note that the only change is the addition of
checked="checked"to the end of the input tag. (Mind the extra space as well.)Forum: Fixing WordPress
In reply to: Where is AIM/Google Talk/etc?Those are stored in the usermeta table. For each user_id there are three meta_key values: aim yim jabber. You can retrieve those values with something like get_usermeta(1,’aim’) where 1 is the user_id.