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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Messing with links.

    Hello everyone. I am currently trying to learn php so I can write my own scripts. I am currently wanting to modify a forum I have. I want it to automatically put links in code brackets.

    Say someone posts the link
    Code:
    www.cavernforum.com
    I want the script to automatically put the code and /code box tags around it. How do I go about doing that?

    I don't even know where to begin with this.

  • #2
    New Coder
    Join Date
    Jul 2005
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You should read string functions in php such str_replace, preg_match, preg_replace.
    If you can not find a decision, maybe you have to try to change a problem

    http://www.gunman.co.nr
    http://bglinux.org


  •  

    Posting Permissions

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