Welcome to Geeklog, Anonymous Wednesday, October 09 2024 @ 11:45 am EDT

Geeklog Forums

Suggestion for next release: Global disable of comments


Status: offline

Hrekum

Forum User
Newbie
Registered: 06/03/03
Posts: 11
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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Hrekum:I really, really would like to see an option in the config.php file to disable comments on a site.
Text Formatted Code
// 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
 Quote

Status: offline

sideswipe

Forum User
Newbie
Registered: 10/28/04
Posts: 5
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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:
Text Formatted Code
UPDATE gl_stories SET commentcode = -1;
 

bye, Dirk
 Quote

Status: offline

sideswipe

Forum User
Newbie
Registered: 10/28/04
Posts: 5
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?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

sideswipe

Forum User
Newbie
Registered: 10/28/04
Posts: 5
That was it! Thanks for all your hard work Dirk - I see great answers for everything from you all the time. Smile
 Quote

boris

Anonymous
all right, but how can i disable comment count in the older stories section?

cheers!
boris
 Quote

All times are EDT. The time is now 11:45 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content