Jump to content

Custom description box that has automatic HTML


scrubbicus

Recommended Posts

So I just finished the custom short BB code that allows people to use <b> <i> <u> and such and now I'm trying to find a way so that when people type in links

 

www.site.com

site.com

http://www.site.com

 

either of those the script will grab it and add <a href=""> </a> tags around it.

 

The script looks like it has something but it's not doing anything and it used preg_replace()

 

I used str_replace for my BB code and I'm not sure which of the two I should be using for something like this. I don't know how to use preg_replace() all I see in most of those functions is a lot of non numerical-alphebetical characters. I'm guessing that's how it finds what to replace.

 

Anyone have a custom script like this already or has a suggestion as to what functions I should use for this?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.