• rebafallawake

    (@rebafallawake)


    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.

Viewing 15 replies - 1 through 15 (of 16 total)
  • geekgirl

    (@geekgirl)

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

    }

    grid

    (@grid)

    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!

    tuz

    (@tuz)

    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.

    grid

    (@grid)

    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.

    grid

    (@grid)

    looks like that’s working correctly.

    tuz

    (@tuz)

    Trying your code now….

    tuz

    (@tuz)

    Works! Thanks a lot!

    grid

    (@grid)

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

    kitchenwench82

    (@kitchenwench82)

    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 https://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.

    thecuriousfrog

    (@thecuriousfrog)

    Hi, I’ve posted an updated version of the Twitter Tools plugin on my blog https://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.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Twitter Tools?’ is closed to new replies.