Posted on: 07/29/03 11:24pm
By: Hrekum
Hi Dirk et al
I really, really would like to see an option in the config.php file to disable comments on a site. Given the power of the forums, I want members to put their expressions in there instead. Maybe if someone has a hack for a redirect on the comments to the forums? I have read the other two remarks on disabling comments.
Cheers!
Chris
Re:Suggestion for next release: Global disable of comments
Posted on: 07/30/03 03:22am
By: Dirk
[QUOTE BY= Hrekum]I really, really would like to see an option in the config.php file to disable comments on a site.[/QUOTE]
// Allow / disallow comments to stories by default (can be changed individually
for every story)
$_CONF[\'comment_code\'] = 0; // 0 = comments enabled, -1 = disabled
bye, Dirk
Suggestion for next release: Global disable of comments
Posted on: 02/10/05 04:17pm
By: sideswipe
Sorry to dig up an old thread, but...
I've set this to -1 in my config in 1.3.11 and it doesn't disable the comments.
The links are still shown - it says "login required" for anon. users, once logged in I can still comment.
Help?
Suggestion for next release: Global disable of comments
Posted on: 02/10/05 04:34pm
By: Dirk
It's only the default setting for new stories, i.e. it doesn't change the settings for existing stories.
This could be done with a simple SQL request, though:
UPDATE gl_stories SET commentcode = -1;
bye, Dirk
Suggestion for next release: Global disable of comments
Posted on: 02/10/05 04:52pm
By: sideswipe
Thanks Dirk - you're a pro!
My only other question is...
// Show the number of stories in a topic in Topics Block
$_CONF['showstorycount'] = 0;
I'm still getting the story count in the block. Is there sometihng else I need to change?
Suggestion for next release: Global disable of comments
Posted on: 02/10/05 05:02pm
By: Dirk
Are you sure what you're seeing now is the story count? Per default, it shows something like (11/1) where the first number is the story count and the second is the submission count. If you switch off the story count, it would still show the submission count. You can disable that in config.php, too.
bye, Dirk
Suggestion for next release: Global disable of comments
Posted on: 02/10/05 05:09pm
By: sideswipe
That was it! Thanks for all your hard work Dirk - I see great answers for everything from you all the time.
Re: Suggestion for next release: Global disable of comments
Posted on: 08/02/08 02:55am
By: Anonymous (boris)
all right, but how can i disable comment count in the older stories section?
cheers!
boris