PDA

View Full Version : Comment Field missing line breaks?


jchabalk
04-20-2007, 02:44 AM
I don't know if this is a change, or just something i should adjust in my template and move on, but i figured i'd bring it up.

I've noticed that with pixelpost 1.6 my <IMAGE_NOTES> section no longer adheres to the line breaks i enter when filling it in. When i enter the image notes i will have line breaks in my text. In v1.5 those line breaks would appear as line breaks in the <IMAGE_NOTES> section when viewing the page. Also, the <IMAGE_NOTES> would always begin on a new line under my image date. Now it begins on the same line.

This can be adjusted in my template to move the <IMAGE_NOTES> around, but it doesn't solve the problem of the line breaks in the text i enter. i can fix it by manually adding "<br>" within the text. I don't mind doing that if that's the way it works now.

Just wanted to see if you've noticed the same?

As an example:

v1.6 with "<br>'s" entered in the notes to make it appear as before:
http://www.ebokeh.com/index.php?showimage=174

v1.6 with a post generated within v1.5 that now appears cluttered and not formatted as cleanly:
http://www.ebokeh.com/index.php?showimage=170
(really every previous post)

-john
www.ebokeh.com

Gravecat
04-20-2007, 05:47 PM
I had this problem too. If you go into options and set "enable markdown" to yes, that should fix it. Worked for me, anyway! :)

jchabalk
04-20-2007, 06:06 PM
worked like a charm! (thanks so much!)

-john
www.ebokeh.com

Trauko
04-20-2007, 06:25 PM
This problem can be fixed editing index.php

in line 622

$tpl = ereg_replace("<IMAGE_NOTES>",$image_notes,$tpl);


replace with
$tpl = ereg_replace("nl2br(<IMAGE_NOTES>)",$image_notes,$tpl);


El Trauko (http://www.trauko.org) :)

GeoS
04-21-2007, 07:17 PM
This problem can be fixed editing index.php

in line 622



replace with



El Trauko (http://www.trauko.org) :)

replace with
$tpl = ereg_replace("<IMAGE_NOTES>",nl2br($image_notes),$tpl);

Trauko
04-22-2007, 12:18 AM
replace with
$tpl = ereg_replace("<IMAGE_NOTES>",nl2br($image_notes),$tpl);

Thanks Geos,
I am so stupid, But I review my index.php and was correct,
I mistaken when writing post, pardon. : mad:

Anyway an error persists, when putting a blank line in image note the system writes two break lines.

I see that while text in all fields in mysql table has <br/>, in field notes is plain text (or raw text).

Pardon, but my English is horrible.:mad: