reply comment

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

reply comment

Post by MySchizoBuddy »

How can i make my comments look like the ones on this site
http://www.jihadthisfilth.com/archives/ ... morning-2/

When u click on reply comments a comment box opens under that particular comment rather than taking u all the way down to add comment form
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: reply comment

Post by garvinhicking »

You should be able to take that code from the page.

All that is needed is some javascript and a unique ID of your commentform. Then use DOM+Javascript to insert a DOM Node at the anchor link point.

So this is actually all possible within Serendipity, since it's unrelated to serendipity.

Best 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/
Guest

Post by Guest »

any idea how the preview function will behave. since previwing reloads the page.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I guess the preview is done via AJAX? You could make a preview plugin, which just outputs formatted HTML according to the input of a POST field?

You could even fire up a AJAX request to parse the full s9y preview page and just return the comment DOM Node inside the current startpage.

This is all a bit advanced templating/JS/AJAX, so you'll need some good knowledge with this.

Best 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/
Post Reply