Page 1 of 1

Allowing HTML in news posts?

Posted: Mon Dec 30, 2002 12:24 pm
by Elmseeker
Hi everyone,

I just wrote up a very simple news posting script for the front page so I can update people as to what is going on with the development of the site. I posted a news article and included:

Code: Select all

<HREF="http://kidstop.farviolet.com/phpBB2/">http://kidstop.farviolet.com/phpBB2/</A>
and in the status bar the link showed up as:

Code: Select all

http://kidstop.farviolet.com/"http://kidstop.farviolet.com/phpBB2/"
in order to get it to work properly I had to change the news I submitted as:

Code: Select all

<A HREF=phpBB2>http://kidstop.farviolet.com/phpBB2/</A>
What do I have to do in order to be able to use normal HTML in my news postings?

Thanks.

Posted: Mon Dec 30, 2002 1:12 pm
by hob_goblin
you'll need to put slashes behind the quotes (\)

For instance, normal html:

Code: Select all

<font color="red">Something</font>
should turn into:

Code: Select all

<font color="red">Something</font>
This is so PHP doesn't confuse it's quotes with the quotes you put in.

Posted: Mon Dec 30, 2002 2:03 pm
by Elmseeker
Thanks,

I had thought of that also but what about the fact that it prepends the URL with my domain?

Posted: Mon Dec 30, 2002 2:49 pm
by hob_goblin
I dont know, PHP would have nothing to do with that, you would have to had programmed it in, or IE or something is prepending it.

If you post the script I'll see if it might be anything.