serendipity_replyform_{$comment.id}

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

serendipity_replyform_{$comment.id}

Post by yellowled »

In /templates/default/comments.tpl, we have:

Code: Select all

<div id="serendipity_replyform_{$comment.id}"></div>
Does this have to be a div or could it as well be a span, as long as it keeps the id?

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: serendipity_replyform_{$comment.id}

Post by Don Chambers »

I cannot even tell what purpose this div actually serves, but I doubt it makes any difference whatsoever whether it is a div or span...
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: serendipity_replyform_{$comment.id}

Post by yellowled »

Don Chambers wrote:I cannot even tell what purpose this div actually serves
As far as I know, without it replying to other users in comments won't work, i.e. the select box in the comment form becomes redundant. Might as well affect some plugins like the one which quotes comments. Plus, it is somehow connected to the comment preview.

So actually it's quite important as far as I can tell :) Garvin?
Don Chambers wrote:but I doubt it makes any difference whatsoever whether it is a div or span...
Just imagine some part of the core relating to "div#serendipity_replyform_{$comment.id}" directly.

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: serendipity_replyform_{$comment.id}

Post by Don Chambers »

I use a custom comment form on my site.... I changed that ID name a long time ago and it had no effect... replying to a previous comment (so that threading is preserved) is handled with the link:

Code: Select all

<a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>
I do not believe this div serves any purpose at all, other than perhaps as a separator....

There is certainly an easy way to find out - change it to a span in a test environment and see if commenting is affected in any way. I'll bet that you could completely eliminate it (not just change it to a span).
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: serendipity_replyform_{$comment.id}

Post by yellowled »

Don Chambers wrote:I'll bet that you could completely eliminate it (not just change it to a span).
Yeah, I did that once. Resulted in the comment preview not working any longer, which is why I posted this question in the first place.

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: serendipity_replyform_{$comment.id}

Post by garvinhicking »

Hi!

I believe this DIV is required for the dynamic comment plugins, serendipity_event_livecomment. It needs to be a DIV, as it needs to be a block level element.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: serendipity_replyform_{$comment.id}

Post by yellowled »

garvinhicking wrote:It needs to be a DIV, as it needs to be a block level element.
Thought so, thanks. Never mind.

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: serendipity_replyform_{$comment.id}

Post by Don Chambers »

Well, I have never used serendipity_event_livecomment, so I have no experience there. As mentioned earlier, I renamed that DIV ID in my current template... comment previews work just fine. Oh well...
=Don=
Post Reply