• I have wordpress 3.0.1 and I’m using the iNove 1.2.3 Theme. I have the AddToAny: Share/Bookmark/Email Button plugin and would like to also use the Facebook like button and the Twitter Tweet button plugins.
    My problem is I can’t get the Facebook or Twitter buttons to show up at the bottom of my posts, beside the Add This thing. They don’t show up at all.
    I’ve tried deleting the add any plugin and then uploading the facebook and twitter buttons but that didn’t work. I’ve tried everything I can think of but can’t get the like and tweet buttons to work. A friend of mine has the same theme. He has the add any as well as the like and tweet buttons at the bottom of his posts. He says they all came together with the add to any plugin.
    I’m going nuts with this problem. Can anyone help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • tHanGt

    (@thangt)

    I have the same problem too. After reading this post, I thought related to theme, so I re-activate default theme twentyten, but still fail to get Facebook like and tweet button. I gave up and planned to find some other plugin to do this. However, one day I turned on a virtual machine with FireFox 3, test on pages and its display “<!–[if !IE]>–> Like”. This inspire me to test on different browsers. Original code can display correctly on IE 6 / 8, but fail to display on FF 3/4, Chrome 10.

    At the end, detecting IE browser by php code rather than html way fix the problem. Find the line around “// IE ridiculousness to support transparent iframes while maintaining W3C validity” and changes like following:

    $ diff add-to-any.php add-to-any.php.org
    320,323c320,322
    <       $u_agent = $_SERVER['HTTP_USER_AGENT'];
    <       if(preg_match('/MSIE/i',$u_agent)) {
    <               $iframe_template = $iframe_template_begin . ' allowTransparency="true"' . $iframe_template_end;
    <       }
    ---
    >       $iframe_template = '<!--[if IE]>'
    >               . $iframe_template_begin . ' allowTransparency="true"' . $iframe_template_end
    >               . '<![endif]--><!--[if !IE]>-->' . $iframe_template . '<!--<![endif]-->';

    I am not sure will this change break “W3C validity” anyway.
    Hope it can fix your problem too.

    version:-
    WordPress: 3.1
    AddToAny: Share/Bookmark/Email Buttons: .9.9.7.12
    Browser: IE 6.0.2900, 8.0.7600; FF 3.6.2, 4.0; Chrome 10.0.648.151
    reference: http://stackoverflow.com/questions/5302302/php-if-internet-explorer-6-7-8-or-9

    micropat

    (@micropat)

    I wasn’t able to reproduce, but just-released version .9.9.7.13 hardens the IE conditional comment and should fix this issue.

    I wouldn’t recommend your server-side detection for a couple of reasons: 1) plugin updates will overwrite changes, 2) it won’t correctly detect the browser if caching is enabled.

    Please report back if .9.9.7.13 fixes this issue. Thanks!

    tHanGt

    (@thangt)

    Thank micropat, .9.9.7.13 fixed the problem in elegant way!

    I didn’t use caching because the site still in development, but you are absolutely right.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't get Facebook like or tweet button to work.’ is closed to new replies.