Announcement

#1 2016-06-09 12:36:29

tazattitude
Member
2015-07-13
54

format on description

HI,

On the description, it does not include the formatting of when I submit an album.

a rough example---
This is an example of the description

Picture name: pic 1
taken from a 3/4 view

How it ends up looking---
This is an example of the description Picture name: pic 1 taken from a 3/4 view

If you go to edit the description, it looks as intended.
It seems to strip any formatting.

Thank you


Piwigo version: 2.8.1
PHP: 5.6.21
MySQL version: 5.6.22

Offline

 

#2 2016-06-11 13:49:36

deheme
Member
France
2014-12-12
104

Re: format on description

Hello,

What theme are you using?
What browser?

Have you a link?

Note: on firefox with stripped, it's working perfectly on my set up.

Enjoy!
DéHème

Offline

 

#3 2016-06-11 14:03:01

tazattitude
Member
2015-07-13
54

Re: format on description

Actually, I ended up using the below in personal plugin

add_event_handler('render_category_description', 'render_comment_content');

Works fine now.
I am using Chrome and FF.
I am using the 'dark' theme

Thank you

Offline

 

#4 2016-06-23 01:52:42

tazattitude
Member
2015-07-13
54

Re: format on description

oops, just quit working. Everything is one long paragraph again. Can't figure this one out.

Offline

 

#5 2016-06-23 02:11:26

tazattitude
Member
2015-07-13
54

Re: format on description

Figured it out, but an odd resolve

$conf['allow_html_descriptions'] = true;

Must be set to $conf['allow_html_descriptions'] = false;

Along with the
add_event_handler('render_category_description', 'render_comment_content');

Offline

 

#6 2016-06-25 19:04:33

tazattitude
Member
2015-07-13
54

Re: format on description

Hi,

Well, I thought I had it.

If I have the setting $conf['allow_html_descriptions'] = false;
Then the formatting is correct on the descriptions

EXAMPLE of a description
======
headlight bezel in a bright red color.

Customer Name: Tom McGill
Year, Make, Model: 2013 V-Rod - customized
======

But I cannot use extended description - the tag gets stripped <!--more-->

But if I set $conf['allow_html_descriptions'] = true;
I can use extended description but the formatting is no good

EXAMPLE of description
======
headlight bezel in a bright red color. Customer Name: Tom McGill Year, Make, Model: 2013 V-Rod - customized
======

I need for the description to hold the formatting AND I can use extended description.

Any ideas??

Thank you

Offline

 

#7 2016-06-26 13:09:24

flop25
Piwigo Team
2006-07-06
7037

Re: format on description


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2016-07-03 16:40:15

tazattitude
Member
2015-07-13
54

Re: format on description

Well, I tried that, and that didn't work.

I do have another Piwigo gallery that I use, it was 2.8.0 and I just updated it to 2.8.1 and it works perfectly with html "on" and the extended description still works.

But something on this one I'm currently working on does not work correctly
With the html "on" the description text gets condensed (shows fine when editing). With html "off" it looks fine, BUT I cannot use extended description (due to this using html).

I turned off all plugins and this did not change it.
I also took out all my code on local config and saved it - no change
I also took out all my code on personal plugin and saved it - no change.
I also had some saved templates and reverted back to default - no change
I also uploaded all new 2.8.1 files - no change

So something is causing the format to break...just can't figure it out.

Attached is an imaged with the html on (condensed text)
and with html off (normal and correct text) - cannot use extended description

Any other ideas?
Thank  you

Offline

 

#9 2016-07-03 16:41:21

tazattitude
Member
2015-07-13
54

Re: format on description

screenshot with html on

Last edited by tazattitude (2016-07-03 16:42:20)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact