Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Posts
    189
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Check for a link

    I have a chat, and when someone posts a link, i would like it to convert it to [link] which would be clickable, instead of having a big long URL.. how would i go about doing that?

  • #2
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Your going to want to check out regular expressions.
    Good luck with that. Learn how yourself or get one of the masters to help you out.

    -Adam
    Why not thank me?

    http://adamsworld.name

  • #3
    Regular Coder westmatrix99's Avatar
    Join Date
    Dec 2006
    Location
    South Africa
    Posts
    307
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by king2k5 View Post
    I have a chat, and when someone posts a link, i would like it to convert it to [link] which would be clickable, instead of having a big long URL.. how would i go about doing that?
    How does the script look currently?
    Maybe it just needs a tweak?

    Cheers
    Thanks for you support!

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Best way? Search the forums of course, this has been discussed many times. There have been some very decent patterns posted in the past.
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •