•  » Engine
  •  » the comments

#1 2010-04-03 14:49:24

grum
Former Piwigo Team
Pantin
2007-09-10
1371

the comments

I'm updating my template Gally.

And I don't understand why all the comment are encapsuled in a <div> because there is nothing like that in the tpl file.

Finally, I found this function, called by a trigger before the {$comment.CONTENT} is affected to the template.

Code:

/* file : functions_html.inc.php, line 179 */
function parse_comment_content($content)
{
 [...]
  $content = '<div>'.$content.'</div>';
  return $content;
}

the <div> are absolutely necessary ?
Or can we remove them ?

If the comment have to be encapsuled in a <div>, normaly it must be done in the tpl file.


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

#2 2010-04-03 19:14:30

mathiasm
Former Piwigo Team
2006-02-06
2650

Re: the comments

I didn't find this div when looking at source of http://piwigo.org/demo/picture.php?/23/category/Asia

Code:

<div id="comments">
    <h3>6 commentaires</h3>
<ul class="thumbnailCategories">
<li>
  <div class="thumbnailCategory even">
    <div class="description">
      <span class="author">popaj</span> - <span class="date">Vendredi 12 Janvier 2007 15:27</span>
      <blockquote><div>sta os</div></blockquote>
    </div>
  </div>
</li>
<hr/>

But i agree all the html should be in the template.

Offline

 

#3 2010-04-03 19:43:33

grum
Former Piwigo Team
Pantin
2007-09-10
1371

Re: the comments

you didn't look well...

<blockquote><div>sta os</div></blockquote>

these <div> are not in the template.

Last edited by grum (2010-04-03 19:43:55)


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

#4 2010-04-03 20:40:24

nicolas
Former Piwigo Team
2004-12-30
1232

Re: the comments

grum wrote:

you didn't look well...

<blockquote><div>sta os</div></blockquote>

these <div> are not in the template.

There's others problems in the parse_comment_content() function. There's many inline css style. Inline style avoid overriding style in an external stylesheet for example.

Offline

 

#5 2010-04-04 00:50:42

mathiasm
Former Piwigo Team
2006-02-06
2650

Re: the comments

I missed it completely.

Maybe we should enter a bug in mantis to fix that.

Offline

 

#6 2010-04-05 22:42:28

grum
Former Piwigo Team
Pantin
2007-09-10
1371

Re: the comments

yes, I do it in mantis ([Bugtracker] ticket 1580) and do commit.

Last edited by grum (2010-04-05 22:47:08)


My pictures with Piwigo, of course !
[ www.grum.fr ]

Offline

 

#7 2010-05-19 08:53:41

JashimChando
Member
2010-05-19
1

Re: the comments

Hi

I also same opinion with bug enter a bug in mantis to fix that.


Thanks

Offline

 
  •  » Engine
  •  » the comments

Board footer

Powered by FluxBB

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