Page 1 of 1

Comment Preview

Posted: Fri Apr 01, 2011 6:41 pm
by Sasni
Hi,
when I press comment preview , it shows up several times. Why?

Image

Re: Comment Preview

Posted: Fri Apr 01, 2011 7:53 pm
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

Re: Comment Preview

Posted: Fri Apr 01, 2011 8:01 pm
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

Re: Comment Preview

Posted: Fri Apr 01, 2011 8:16 pm
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

Re: Comment Preview

Posted: Fri Apr 01, 2011 8:52 pm
by Sasni
Great job. It works! Thanks