http:// form link question

Discussion in 'HTML & Website Design' started by sport302, Nov 24, 2008.

  1. #1
    How do you get wordpress to generate a link automatically to a URL anytime someone submits a form on your site that includes http://

    Just like it does on here when you type: http://www.whateverbusiness.com

    It automatically becomes an active link upon submission.

    Thanks
     
    sport302, Nov 24, 2008 IP
  2. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Just the regex
    ((mailto\:|(news|(ht|f)tp(s?))\://){1}\S+)
    Code (markup):
    with preg_replace :) That should work ;)
     
    elias_sorensen, Nov 24, 2008 IP
  3. sport302

    sport302 Well-Known Member

    Messages:
    351
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Can someone explain where I would put this code on wordpress to have it produce links automatically?
     
    sport302, Nov 26, 2008 IP
  4. myst729

    myst729 Peon

    Messages:
    289
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    myst729, Nov 26, 2008 IP
  5. sport302

    sport302 Well-Known Member

    Messages:
    351
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    No help with this yet? Or is it harder than it seems like it should be?
     
    sport302, Nov 26, 2008 IP
  6. sport302

    sport302 Well-Known Member

    Messages:
    351
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #6
    sport302, Nov 26, 2008 IP
  7. myst729

    myst729 Peon

    Messages:
    289
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I've tested it and it works fine with Wordpress 2.6.5.

    Maybe it conflicts with other plugins, I don't know :(
     
    myst729, Nov 26, 2008 IP