WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools? (17 posts)

  1. rebafallawake
    Member
    Posted 6 years ago #

    I want something like Twitter Tools. Twitter tools does not seem to work with the new version of wordpress.
    I have found lots of twitter widgets, but I want one that will post a daily tweet log in your blog.
    anyone know of one that works with the new version of wordpress?

    Or how to get Twitter tools working. I am getting:
    WordPress database error: [Table 'inrebasw_wordpress.wp_categories' doesn't exist]
    SELECT * FROM wp_categories ORDER BY cat_name

    Which I know is not a table in the new version....but I do not know how to get it to read my categories to post tweets to.

  2. geekgirl
    Member
    Posted 6 years ago #

    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>";

    }

  3. grid
    Member
    Posted 6 years ago #

    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!

  4. tuz
    Member
    Posted 6 years ago #

    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.

  5. grid
    Member
    Posted 6 years ago #

    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.

  6. grid
    Member
    Posted 6 years ago #

    looks like that's working correctly.

  7. tuz
    Member
    Posted 6 years ago #

    Trying your code now....

  8. tuz
    Member
    Posted 6 years ago #

    Works! Thanks a lot!

  9. grid
    Member
    Posted 6 years ago #

    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))

  10. kitchenwench82
    Member
    Posted 6 years ago #

    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.

  11. thecuriousfrog
    Member
    Posted 6 years ago #

    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.

  12. yonigre
    Member
    Posted 6 years ago #

    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?

  13. waanzinnige
    Member
    Posted 6 years ago #

    this is a great plugin, thanx for the post

  14. TTrumble
    Member
    Posted 6 years ago #

    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.

  15. Johanhorak
    Member
    Posted 6 years ago #

    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

  16. sandwichmixto
    Member
    Posted 6 years ago #

    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.

  17. kieranhawe
    Member
    Posted 6 years ago #

    I upgraded my blog to WP version 2.5.1 and Twitter Tools is not working anymore - any ideas on how to get this fixed or if there is another plugin that will post my tweets onto my blog?

Topic Closed

This topic has been closed to new replies.

About this Topic