Comment Preview

Found a bug? Tell us!!
Post Reply
Sasni
Regular
Posts: 18
Joined: Wed Nov 10, 2010 9:36 pm
Location: Poland
Contact:

Comment Preview

Post by Sasni »

Hi,
when I press comment preview , it shows up several times. Why?

Image
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Comment Preview

Post by yellowled »

Sasni wrote:when I press comment preview , it shows up several times. Why?
Probably due to a bug in the template files. Since you're using a modified version of the i3theme, did you modify the entries.tpl and/or comments.tpl?

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Comment Preview

Post by yellowled »

Never mind, I just checked the original. Congratulations, you've been the first to notice this bug in ~20 months since I released the port. :)

I'll try to fix this over the weekend, so hopefully a new version should be available via spartacus some time next week. Thanks for reporting this. :)

YL
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Comment Preview

Post by yellowled »

Okay, that was a quick one. In the commentform.tpl, change

Code: Select all

<div><input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}" /></div>
to

Code: Select all

<div>
    <input type="hidden" name="serendipity[entry_id]" value="{$commentform_id}" />
    <input type="hidden" name="serendipity[replyTo]" value="0" />
</div>
Committed to cvs as well. (Garvin, I know I ask this every single time, but do I have to do anything else in order to commit a new version than edit the file and do "cvs commit -m ..."?)

YL
Sasni
Regular
Posts: 18
Joined: Wed Nov 10, 2010 9:36 pm
Location: Poland
Contact:

Re: Comment Preview

Post by Sasni »

Great job. It works! Thanks
Post Reply