around line 850 on twitter-tools.php find this line of coding and and make changes accordingly …This portion is what’s causing the error.
function aktt_options_form() {
global $wpdb, $aktt;
$categories = $wpdb->get_results("
SELECT *
FROM $wpdb->terms
ORDER BY name
");
$cat_options = '';
foreach ($categories as $category) {
if ($category->cat_ID == $aktt->blog_post_category) {
$selected = 'selected="selected"';
}
else {
$selected = '';
}
$cat_options .= "\n\t<option value='$category->term_ID<' $selected>$category->cat_name</option>";
}
I made this modification, and the error went away, but the category drop-down is still empty. Oddly enough, it’s long, (ie, there are a lot of options), so I think it’s probably getting the categories correctly, but term_ID and cat_name are not possibly not the right properties?
Any ideas? I will probably dig a bit more when I have time, but it’d be awesome if someone else had more insight.
Thanks!
I’m actually having this same issue & am also interested in finding the solution to this problem.
Thanks for any help in advance from anyone.
OK, I think I fixed this (or anyway, I was able to get the Plugin options page to show and save the categories correctly) by replacing the above lines with these:
function aktt_options_form() {
global $wpdb, $aktt;
$categories = get_categories( );
$cat_options = '';
foreach ($categories as $category) {
if ($category->term_id == $aktt->blog_post_category) {
$selected = 'selected="selected"';
}
else {
$selected = '';
}
$cat_options .= "\n\t<option value='$category->term_id' $selected>{$category->cat_name}</option>";
}
I’ll post again when I’ve tested that the tweet are actually added to my selected category.
looks like that’s working correctly.
This is less a bug and more an enhancement, but you can get links to show up in your entries (like they do pretty much everywhere else) by changing line 195 from:
'post_content' => $wpdb->escape($tweet->tw_text)
to:
'post_content' => $wpdb->escape(make_clickable($tweet->tw_text))
I just tried this and its gotten rid of the database error notice, but now its posting a tinyurl at the end of the updates?
e.g.
New blog post: Bring on the banchan, pt 2 http://tinyurl.com/yt5p7m 49 mins ago
Anyone have any idea how I can get rid of this? Oh also, I tried the suggestion of the member above (to make links) and it killed my blog completely – I had to download a fresh version of Twitter Tools and start again.
Hi, I’ve posted an updated version of the Twitter Tools plugin on my blog http://tinyurl.com/27kyta which works with WordPress 2.3 feel free to grab it. Incidently the TinyURL at the end of the tweet is automatic but you could stop it reasonable easy by editing the plugin.
Anyone know how to get Twitter Tools to stop firing when you save an already published post? I find that if I go back in and edit a post, when I hit Save Twitter Tools tweets. I do want it to work when I initially publish, just not after.
Thoughts? Suggestions?
this is a great plugin, thanx for the post
Yonigre – excellent idea for a new feature. I do the same thing and would love that addition. When I get some time I’ll play with it and see what I can come up with.
TTrumble That will be nice if you can help Twitter Tools from firing when update an already saved post as it shows the post in the TT sidebar widget every time it fires. Regards Johan
Take a look here with regards to the drop down. No need to replace a huge chunk of code to get the dropdown list working.