Recent activity
Subscribe to this feed
A comment on the question "Embedded badge doesn't make links clickable!" in Twitter:
I have pretty extensive CSS applied to the current badge. Is there any way that it will remain effective if I start using your badge? Also, I just thought of this, does your badge output better markup than the Twitter one? For example, I have specific CSS instructions for the "about 3 days ago" link at the end of every post. But there's no markup for this link; it's simply an 'a' tag. So if there are any clickable links in my posts, they will have the same CSS applied to them. This will break the functionality of the badge. What are your thoughts? – Logan, on August 07, 2008 22:17
Logan replied on August 07, 2008 22:14 to the question "Embedded badge doesn't make links clickable!" in Twitter:
Alan H. replied on June 16, 2008 05:00 to the question "Links in the Javascript/HTML Twitter badge?" in Twitter:
David, please see http://getsatisfaction.com/twitter/to...
David Reber replied on May 17, 2008 16:14 to the question "Links in the Javascript/HTML Twitter badge?" in Twitter:
mdy replied on May 11, 2008 16:30 to the question "Embedded badge doesn't make links clickable!" in Twitter:
Quick update: I had forgotten about another html/javascript badge that someone else had coded up that can handle stripping out @replies.
In case anyone's interested, it's linked to in this related thread.
mdy replied on May 11, 2008 07:15 to the question "Embedded badge doesn't make links clickable!" in Twitter:
Hi all. I've noticed an increasing number of people asking if it's possible to have a badge that filters out their @replies to others.
Since there seems to be a handful of really motivated javascript experts here, I wonder if any of you feel inclined to code something up for this...? 8-)
One interesting 'challenge' -- as a user, I know I'll want to specify the number of tweets that should be displayed. However, the number of @replies in my recent stream won't be constant, so the number of tweets that need to be retrieved to display a total of x non-reply tweets will constantly vary.
Bandit replied on May 06, 2008 21:54 to the question "Embedded badge doesn't make links clickable!" in Twitter:
There we go, my script (http://lab.bandit.co.nz/scripts/autol...) now automatches @users and links with or without "http://", but no longer picks up "foo.activate()" and other similar things.
A comment on the question "Embedded badge doesn't make links clickable!" in Twitter:
You may also be interested in using \b to match word boundaries... if you put that and the end of your pattern, you won't match foo.activate(). – Alan H., on May 06, 2008 16:05
Bandit replied on May 06, 2008 10:13 to the question "Embedded badge doesn't make links clickable!" in Twitter:
Alan H. replied on May 06, 2008 08:46 to the question "Embedded badge doesn't make links clickable!" in Twitter:
Bandit,
Just took another look at your code.
While you allowed it to flexibly match URLs which do not start with http: (such as example.com), this is not standard behaviour and introduced some weird behaviour.
For example, your script makes:
Mail.app (an Apple program)
into a link to http://Mail.app/ which doesn't make sense.
ftp://foo.com gets linked to http://foo.com which is confusing.
In addition, a programmer who tweets "foo.activate()" will get a link to "http://foo.acti/" in the middle of his tweet, which is kind of weird too.
It's all about the tradeoff. If you want to match any URL no matter whether it starts with http:// or not, you're going to see weird behaviour like this. I feel sticking to the Twitter standard of only linking explicit links makes more sense.
(Please do not take this as criticism; I'm only trying to help you & others here.)
Tip: if you use JavaScript's .replace() method instead of match(), you don't need to use explicit recursion. All matches are automatically replaced (see my script linked above).
Bandit, thanks so much for documenting your code's functionality well enough I was able to clearly see what you were doing & its potential bugs. You're a good guy.
Alan H. replied on May 06, 2008 00:24 to the question "Embedded badge doesn't make links clickable!" in Twitter:
Thanks, Bandit. But note, the one at http://www.soccio.it/michelinux/2007/... mentioned above, which I updated a month ago, *does* match multiple links (as of that update a month ago), as well! (For the record, it matches http:, https:, ftp:, sftp:, and ssh: links, as well as @-replies.)
Bandit replied on May 05, 2008 23:44 to the question "Embedded badge doesn't make links clickable!" in Twitter:
I too made a script - only difference with mine is that it autolinks all the links in a Tweet, rather than just one.
http://lab.bandit.co.nz/scripts/autol...
Bandit replied on May 05, 2008 23:32 to the idea "Twitter Badge: Can you auto-wrap URLs in tags?" in Twitter:
Bandit replied on May 05, 2008 23:30 to the question "Links in the Javascript/HTML Twitter badge?" in Twitter:
Loading Profile...

