View Single Post
Old February 9th, 2009, 4:51 AM   #1 (permalink)
fury
Surpass Fan
Super #1
 
fury's Avatar
 
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
2,140 posts
Gave thanks: 89
Thanked 112 times
Send a message via AIM to fury Send a message via Skype™ to fury
Twitter @replies

I am looking for a PHP function that can convert replies in a string to a link leading to their profile.

I have already found a function to convert plain text to URLs when "http://" or "www." is present, but I can't find a working one for replies. I found one that didn't seem to do anything at all, and I think I'm just not using the right keywords.

Basically I want "robmonroe" to be converted to:
Code:
@<a href="http://twitter.com/robmonroe">robmonroe</a>
If you know how, or have a link to a snippet, that'd be awesome.
__________________
fury™ - not helping the situation since 1987
robmonroe.net | Twitter | Foursquare
fury is offline   Reply With Quote