Page 1 of 1
How do I disable/enable comments
Posted: Thu Aug 14, 2008 10:44 pm
by shovals
Hi,
Is there a way to control enabling/disabling comments?
I find it quite depressing to see 0 comments in every post
------------------
http://www.fazaza.com
Re: How do I disable/enable comments
Posted: Fri Aug 15, 2008 8:23 am
by yellowled
shovals wrote:Is there a way to control enabling/disabling comments?
I find it quite depressing to see 0 comments in every post

Well, boo-hoo. Go do something about it
Actually, I think you don't want to disable comments altogether (which you could in s9y), because that way, you'll never get comments - disabling comments altogether actually disables the
possibility to comment.
What you're looking for is probably something like this: Open the entries.tpl of your current template (if it doesn't come with an entries.tpl, you can simply copy the one from /templates/default/ to /templates/<YOURTEMPLATE>/) and edit it like this (I'll take the entries.tpl from default as an example):
Code: Select all
{if $entry.has_comments}
{if $use_popups}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=480,height=480,scrollbars=yes'); return false;">{if $entry.comments == 0}{$CONST.ADD_COMMENT}{else}{$entry.label_comments} ({$entry.comments}){/if}</a>
{else}
| <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.ADD_COMMENT}{else}{$entry.label_comments} ({$entry.comments}){/if}</a>
{/if}
{/if}
That way, you'll get "Add comment" as long as there is no comment instead of "Comments (0)".
YL
I prefer it this way
Posted: Fri Aug 15, 2008 10:17 am
by shovals
After wiping the tears from the boo-hoo (

) I took your advice.
This is a much better way, I must admit.
Thanks for the tip.
http://www.fazaza.com