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
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!
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.