Page 1 of 1

Convert html to link or image?

Posted: Fri Feb 10, 2006 5:13 am
by Debikul
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: Yes.
(if not please do before posting)
If so, what terms did you try:

Write your message below:
I have searched all over the forums for this but have no been able to find out what I need to do to have the forum convert the html such as this:

Code: Select all

<a href="http://www.site.com"></a>
and

Code: Select all

<img src="http://www.image.com/image.gif">
to where it displays a clickable link on the site and actually display the image instead of the image code. Thanks in advance to anyone who can help me.

Also, sorry to edit the original post. But is there a way for a user to edit their post after they submit it? Sorry to ask so many questions but I enjoy the board so much that I'm trying to figure out how to implement features that many will use before I put it on my site.

Posted: Fri Feb 10, 2006 1:25 pm
by Klemen
Hi,

It's not safe to allow HTML in such scripts. However, plain URLs will indeed become click-able, for example try posting simply

Code: Select all

http://www.site.com
or

Code: Select all

http://www.site.com/image.gif
instead of html code, and the links will be click-able.

Regards