Hello,
I recently upgraded to the latest version of Zenphoto (1.4.3.3).
Now the text on the albums lost all the line breaks (the carriage return).
It seems the html "BR" tag is missing.
In the database, the "desc" field of the "albums" table contains only newline characters, no BR. Before the upgrade Zenphoto displayed the text nicely, what should I do to have it work as before?
Thanks for your help
the printField() function, the underlying code for all these print functions, has a parameter to control converting line breaks into HTML. It defaults to false, though. Making those conversions was messing up descriptions entered by the WYSIWYG editors.
Your best fix is to change the newline characters into tags in the database as ofcourse, browsers carefully ignore newline characters.
Or you could directly call the printField() function to print your descriptions and pass true as the $convertBR parameter.
Inserting php code here is not a good result.
Here is the code in more readable format:
http://snipt.org/vfHi2