Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Fantastic package! But I think there is an issue with the "linkify" routine so that if a tweet contains a URL as the very last bit of text it won't get converted to an HREF. eg.
"Here is some text by @someuser - http://t.co/abcdefghi"
Then then "http://t.co/abcdefghi" won't turn into a link. I suspect because there's no whitespace after it?
I have the same issue.
Using uTwit for umbraco 7 (wich is great!!!)
I am also seeing this. uTwit for Umbraco v7.1.4
I've also noticed this. Umbraco 4.9.1. I'm using: @tweetToDisplay.LinkifiedText, but the last URL is not clickable. Anyone an update on this issue?
As a quick fix for uTwit, give this a try :)
<scripttype="text/javascript">
$('.text').html(convertToLinks('@tweetToDisplay.LinkifiedText'))
function convertToLinks(text) {
var replaceText, replacePattern1;
//URLs starting with http://, https://
replacePattern1 = /(\b(https?):\/\/[-A-Z0-9+&@@#\/%?=~_|!:,.;]*[-A-Z0-9+&@@#\/%=~_|])/ig;
replacedText = text.replace(replacePattern1, '<a class="colored-link-1" title="$1" href="$1" target="_blank">$1</a>');
//URLs starting with "www."
replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim;
replacedText = replacedText.replace(replacePattern2, '$1<a class="colored-link-1" href="http://$2" target="_blank">$2</a>');
//returns the text result
return replacedText;
}
</script>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
LinkifiedText doesn't make last URL in a tweet clickable
Fantastic package! But I think there is an issue with the "linkify" routine so that if a tweet contains a URL as the very last bit of text it won't get converted to an HREF. eg.
"Here is some text by @someuser - http://t.co/abcdefghi"
Then then "http://t.co/abcdefghi" won't turn into a link. I suspect because there's no whitespace after it?
I have the same issue.
Using uTwit for umbraco 7 (wich is great!!!)
I am also seeing this. uTwit for Umbraco v7.1.4
I've also noticed this. Umbraco 4.9.1. I'm using: @tweetToDisplay.LinkifiedText, but the last URL is not clickable.
Anyone an update on this issue?
As a quick fix for uTwit, give this a try :)
<scripttype="text/javascript">
$('.text').html(convertToLinks('@tweetToDisplay.LinkifiedText'))
function convertToLinks(text) {
var replaceText, replacePattern1;
//URLs starting with http://, https://
replacePattern1 = /(\b(https?):\/\/[-A-Z0-9+&@@#\/%?=~_|!:,.;]*[-A-Z0-9+&@@#\/%=~_|])/ig;
replacedText = text.replace(replacePattern1, '<a class="colored-link-1" title="$1" href="$1" target="_blank">$1</a>');
//URLs starting with "www."
replacePattern2 = /(^|[^\/])(www\.[\S]+(\b|$))/gim;
replacedText = replacedText.replace(replacePattern2, '$1<a class="colored-link-1" href="http://$2" target="_blank">$2</a>');
//returns the text result
return replacedText;
}
</script>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.