4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: marod0er on April 08, 2006, 05:24:53 PM

Title: HTML in description doesn't work
Post by: marod0er on April 08, 2006, 05:24:53 PM
Just a quick question.

For some reason I can't do HTML in my image description, even tho it says:

Quote
Description
HTML allowed.

For instance, when I enter "<b>Bold</b>" it displays it like this on the page: &lt;b&gt;Bold&lt;/b&gt;

What am I doing wrong? This is the first time I've seen this...

Please help asap!
Title: Re: HTML in description doesn't work
Post by: dini70 on April 08, 2006, 05:41:29 PM
about what description do you speak?
Title: Re: HTML in description doesn't work
Post by: V@no on April 08, 2006, 05:55:03 PM
You cant use HTML if you upload/edit images as a member and not from ACP
Title: Re: HTML in description doesn't work
Post by: marod0er on April 10, 2006, 01:25:41 PM
You cant use HTML if you upload/edit images as a member and not from ACP
I am using ACP, and hence I'm logged in as admin :)

Any help would be greatly appreciated, as I really need to be able to use HTML..
Title: Re: HTML in description doesn't work
Post by: marod0er on April 10, 2006, 01:40:45 PM
I've done some testing now, and it seems this only happens in the new 1.7.2 version... What could be causing this?
Title: Re: HTML in description doesn't work
Post by: obmob01 on April 14, 2006, 06:23:59 AM
:( yeah, in 1.7.2 html can't be parsed in description, i have some codes and they show the whole code.
Title: Re: HTML in description doesn't work
Post by: IcEcReaM on April 14, 2006, 09:59:10 AM
try to change in include/functions.php:

Code: [Select]
  $description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 0) : REPLACE_EMPTY;
with

Code: [Select]
  $description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 1) : REPLACE_EMPTY;
Title: Re: HTML in description doesn't work
Post by: marod0er on April 15, 2006, 02:15:04 PM
try to change in include/functions.php:

Code: [Select]
  $description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 0) : REPLACE_EMPTY;
with

Code: [Select]
  $description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 1) : REPLACE_EMPTY;
YES SIR! Thanks a lot man, that right there did the job  :D