Member
Member
wibbi   2018-03-08, 15:55
#1
I have already asked in another forum, what about the line breaks in the description?
Currently no ```\n``` are converted to ```
``` and that is not a solution.
```<?php nl2br(printAlbumDesc()); ?>```
What helps?
Member
Member
wibbi   2018-03-08, 15:58
#2
found
```<?php echo nl2br(getAlbumDesc()); ?>```
```<?php echo nl2br(getGalleryDesc()); ?>```
```<?php echo nl2br(getImageDesc()); ?>```
Member
Member
wibbi   2018-03-08, 16:02
#3
Question: Does this conflict with newly saved descriptions?
Member
Member
wibbi   2018-03-08, 16:08
#4
OK, i have test it.
Zenphoto don't save line breaks as ```
```. Same as Gallery3.

But, for what is this?
```<?php printAlbumDesc(); ?>```
This don't work with line breaks.
Administrator
Administrator
acrylian   2018-03-08, 16:39
#5
`<?php printAlbumDesc(); ?>` outputs the album description as saved. Zenphoto generally does no output processing. For formatting use plain HTML, for example by using the default plugin TinyMCE4. If you don't want to use that, you need to format the output just like you do via `nl2br` or whatever else on the theme side.

Member
Member
wibbi   2018-03-08, 16:48
#6
What's the difference between
```getAlbumDesc()```
and
```printAlbumDesc()```
except "echo"?
Member
Member
wibbi   2018-03-08, 16:51
#7
OK, i have found it in the docs.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.