использую версию двига 2,5,5 хочу для одной страницы сделать форму добавления комментария делал уже подобное для ее 1.6.8, но тут возникла проблема при вставке кода комментария он просто не обрабатывается, возможность комментировать я включил на канале и при создании темы поставил галочку разрешить комментарии, также модуль комментарии переустанавливал.
<label for="comment">Comment:</label><br /> <textarea name="comment" cols="70" rows="10">{comment}</textarea> <label><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</label><br /> <label><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</label><br />
{if captcha} <label for="captcha">Please enter the word you see in the image below:</label><br /> <p>{captcha}<br /> <input type="text" name="captcha" value="{captcha_word}" maxlength="20" /></p> {/if}
<label for="comment">Comment:</label><br /> <textarea name="comment" cols="70" rows="10">{comment}</textarea> <label><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</label><br /> <label><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</label><br />
{if captcha} <label for="captcha">Please enter the word you see in the image below:</label><br /> <p>{captcha}<br /> <input type="text" name="captcha" value="{captcha_word}" maxlength="20" /></p> {/if}
Иногда движок не может определить id записи, попробуй указать насильно параметром entry_id, например {exp:comment:form channel=“news” entry_id=”{segment_3}”}