i want to make just the logged users to be able to make a comment 'threaded'. i've try many thing but none seems to work
1_
i edited the commentform.tpl
from this:
Code: Select all
<tr>
<td><label for="serendipity_replyTo">{$CONST.IN_REPLY_TO}</label></td>
<td>{$commentform_replyTo}</td>
</tr>
Code: Select all
{if $entry.is_entry_owner}
<tr>
<td><label for="serendipity_replyTo">{$CONST.IN_REPLY_TO}</label></td>
<td>{$commentform_replyTo}</td>
</tr>
{/if}
The Reply to field didnt appear either if im logged or not
2_
In the entries.tpl i try with two diferents commentform.tpl files
commentform.tpl is the original file
commentformpeople.tpl is a file without the <tr></tr> of the 'reply to' field
entry.tpl:
Code: Select all
{if $entry.is_entry_owner}
{$COMMENTFORM}
{else}
{$COMMENTFORMPEOPLE}
{/if}
Code: Select all
serendipity_smarty_fetch('COMMENTFORMPEOPLE', 'commentformpeople.tpl');
WORKS! the field didnt appear if im not logged, but when i try to make a comment i got this after sumbit:
Your comment could not be added because comments for this entry have either been disabled, you entered invalid data, or your comment was caught by anti-spam measurements.
3_
a little reserch take me to this:
{serendipity_showCommentForm}
so i add it on entries.tpl
{serendipity_showCommentForm entry=$entry.id}
result:
Warning: Smarty error: serendipity_smarty_showcommentform: missing 'id' or 'entry' parameter in /home/xxx/public_html/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1095