Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 04-20-2007, 02:44 AM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
Comment Field missing line breaks?

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
Reply With Quote
  #2  
Old 04-20-2007, 05:47 PM
Gravecat Offline
forum loafer
 
Join Date: Apr 2007
Posts: 3
I had this problem too. If you go into options and set "enable markdown" to yes, that should fix it. Worked for me, anyway!
Reply With Quote
  #3  
Old 04-20-2007, 06:06 PM
jchabalk Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
worked like a charm! (thanks so much!)

-john
www.ebokeh.com
Reply With Quote
  #4  
Old 04-20-2007, 06:25 PM
Trauko's Avatar
Trauko Offline
pp veteran
 
Join Date: Sep 2006
Location: Dalcahue, Chiloé
Posts: 99
Line break on notes

This problem can be fixed editing index.php

in line 622

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

El Trauko
Reply With Quote
  #5  
Old 04-21-2007, 07:17 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Quote:
Originally Posted by Trauko View Post
This problem can be fixed editing index.php

in line 622



replace with



El Trauko
replace with
PHP Code:
$tpl ereg_replace("<IMAGE_NOTES>",nl2br($image_notes),$tpl); 
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #6  
Old 04-22-2007, 12:18 AM
Trauko's Avatar
Trauko Offline
pp veteran
 
Join Date: Sep 2006
Location: Dalcahue, Chiloé
Posts: 99
Thaks GeoS

Quote:
Originally Posted by GeoS View Post
replace with
PHP Code:
$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.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:40 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs