Getting Tweetmeme and Facebook share buttons back

Posted under Technology by Kimberly on Saturday 19 December 2009 at 11:00 pm UTC

I’ve had a few questions sent in to me, asking how I got my Tweetmeme and Facebook Share buttons back on WordPress 2.9.

Here’s how I did it.

First of all, Setup Tweetmeme and Facebook share to “Manual” on the settings page for the plugin.

Edit your themes ‘index.php’ and ‘single.php’

find something like

<?php the_content(__(‘Continue Reading &raquo;’)); ?>

And replace it with something like

<?php echo tweetmeme(); echo fbshare_manual(); the_content(__(‘Continue Reading &raquo;’)); ?>

There maybe other files that need to be modified in order to display the buttons on archive pages if you theme has them.

From what I can gather this is only an issue for sites running less than PHP 5.2 – Can anyone let me know if this is an issue on PHP 5.2.

I have sent emails to the authors but have not received a response from either.


4 Comments

  1. Comment by Noel — 20th of December 2009 @ 1:14 am UTC

    Thanks, Kimberly, for the prompt response.

    I have changed the settings to “manual” for both the plugins.

    I am using the Atahualpa theme and the closest thing I could find is the “Loop” section.

    So I did it like this:

    <?php bfa_post_bodycopy('’,”); ?>

    Only thing, like your blog, the buttons are slightly not in alignment with the content i.e. slightly above the top line of the content, whereas previously it was level.

    But I can live with that for now! Thanks, again.

  2. Comment by Noel — 20th of December 2009 @ 1:16 am UTC

    oops the full code doesn’t appear! it got truncated.

    basically I just added the

    manual code bit above the

    bfa post bodycopy thing.

    Hope this makes sense!

  3. Comment by Kimberly — 20th of December 2009 @ 9:46 am UTC

    Hi

    I got up this morning to find a new version of Tweetmeme available.

    Seems this issue has been resolved! :)

    I’ve just removed the manual code for tweetmeme and reset the settings to ‘before’ and all is working well.

    Still awaiting a new version of Facebook Share (new) though.

  4. Comment by Noel — 21st of December 2009 @ 12:36 am UTC

    I just saw that too, and came back here to find out what you thought of it.

    I will do the same as what you did. Hope they sort out the Facebook Share thing as well!

RSS feed for comments on this post.