The plugin works fine but when the twitter has a hyperlink finishing in .html it wraps the link and leaves the .html outside it rendering the link useless.
It apends the .html to the link as just text
any ideas?
The plugin works fine but when the twitter has a hyperlink finishing in .html it wraps the link and leaves the .html outside it rendering the link useless.
It apends the .html to the link as just text
any ideas?
I have the same problem. So, I m confused, whether to use it or throw it. If you got something, plz share.
hey hey hey
I got the solution to this problem
just open the twitter.php file in
/wp-content/plugins/twitter-for-wordpress directory of your website.
search for the hyperlink() function. It might be at line 110.
replace the function with this.
function hyperlinks($text) {
$text = preg_replace("#http://[A-Za-z0-9/.=_?-]*#"," $0", $text);
// match name@address
$text = preg_replace("/\s([a-zA-Z][a-zA-Z0-9\_\.\-]*[a-zA-Z]*\@[a-zA-Z][a-zA-Z0-9\_\.\-]*[a-zA-Z]{2,6})([\s|\.|\,])/i"," $1$2", $text);
return $text;
}
It works.
check my site http://www.SurajShrestha.com.np/micro-blog
i got the same Problem.
Not just .html were wrapped, also blip.fm-links.
You can solve the Problem if you replace the function hyperlinks()
with this:
$text = preg_replace("/(^|\s)(([a-zA-Z]+:\/\/)([a-z][a-z0-9_\..-]*[a-z]{2,6})([a-zA-Z0-9\/*-?&%~]*))/i", "$1<a href=\"$2\" class=\"twitter-link\">$2</a>", $text);
$text = preg_replace(“/(^|\s)(www\.([a-z][a-z0-9_\..-]*[a-z]{2,6})([a-zA-Z0-9\/*-?&%~]*))/i“, „$1<a href=\“http://$2\“ class=\“twitter-link\“>$2</a>“, $text);
you can leave the match for @
you can find more information and a modified file at zone-g
You must log in to post.