Hi,
since I have updated to s9y 1.7 I am missing the reply and delete links which were displayed next to the comment author's name before. Anything I can do about it? Thanks in advance.
Regards,
Flo
Reply and delete links in comments missing
Re: Reply and delete links in comments missing
First of all, check your template's comments.tpl for $comment.link_delete and serendipity_reply_{$comment.id}. Also note that delete links will usually only be visible if you're viewing the blog while being logged in.schimanke wrote:since I have updated to s9y 1.7 I am missing the reply and delete links which were displayed next to the comment author's name before. Anything I can do about it?
If your comments.tpl does contain those variables, they're not being emitted. Please post the part of the comments.tpl where they're being used. Also check if comments have been closed for the entries in question.
YL
Re: Reply and delete links in comments missing
Well, I found these lines in my comments.tpl:
Has anything changed in s9y 1.7? It was working under 1.6...
Code: Select all
{if $entry.allow_comments}
(<a href="#serendipity_CommentForm" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}';">{$CONST.REPLY}</a>) {/if}{if $entry.is_entry_owner}
(<a href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">{$CONST.DELETE}</a>)
{/if}</p>
Re: Reply and delete links in comments missing
Yes, something has changed with the variable scope in smarty3. To fix the issue, add
below
in the entries.tpl of the design you use.
Code: Select all
{assign var="entry" value=$entry scope="parent"}
Code: Select all
{foreach from=$dategroup.entries item="entry"}
Re: Reply and delete links in comments missing
Thanks, onli! That really did the trick. Now the links are back.