Convert html to link or image?

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Debikul
Posts: 4
Joined: Tue Feb 07, 2006 8:54 pm

Convert html to link or image?

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Locked