Welcome to Geeklog, Anonymous Wednesday, July 22 2026 @ 04:38 pm EDT
Geeklog Forums
no comments
kren
Anonymous
Is it possible to disable comments?
22
21
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by kren: Is it possible to disable comments?
You can enable and disable comments on each story (check the options in the Admin's story editor). To set the default, see config.php:
Text Formatted Code
$_CONF['comment_code'] = 0; // 0 = comments enabled, -1 = disabledbye, Dirk
21
18
Quote
kren
Anonymous
Can I enable and disable comments on poll to?
18
23
Quote
kren
Anonymous
i have one problem i can't disable comments on poll
18
19
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I just remembered that there's a bug in admin/poll.php which will prevent you from disabling comments on polls.
Find this statement (line 455):
$HTTP_POST_VARS['question'], $voters,
COM_applyFilter ($HTTP_POST_VARS['statuscode'], true),
COM_applyFilter ($HTTP_POST_VARS['commentcode'], true),
$HTTP_POST_VARS['answer'], $HTTP_POST_VARS['votes'],
$HTTP_POST_VARS['owner_id'],
$HTTP_POST_VARS['group_id'],
$HTTP_POST_VARS['perm_owner'],
$HTTP_POST_VARS['perm_group'],
$HTTP_POST_VARS['perm_members'],
$HTTP_POST_VARS['perm_anon']);
and remove the COM_applyFilter for $HTTP_POST_VARS['commentcode'] so that it reads:
$HTTP_POST_VARS['question'], $voters,
COM_applyFilter ($HTTP_POST_VARS['statuscode'], true),
$HTTP_POST_VARS['commentcode'],
$HTTP_POST_VARS['answer'], $HTTP_POST_VARS['votes'],
$HTTP_POST_VARS['owner_id'],
$HTTP_POST_VARS['group_id'],
$HTTP_POST_VARS['perm_owner'],
$HTTP_POST_VARS['perm_group'],
$HTTP_POST_VARS['perm_members'],
$HTTP_POST_VARS['perm_anon']);
That should fix it.
bye, Dirk
Find this statement (line 455):
Text Formatted Code
$display .= savepoll ($qid, $HTTP_POST_VARS['mainpage'],$HTTP_POST_VARS['question'], $voters,
COM_applyFilter ($HTTP_POST_VARS['statuscode'], true),
COM_applyFilter ($HTTP_POST_VARS['commentcode'], true),
$HTTP_POST_VARS['answer'], $HTTP_POST_VARS['votes'],
$HTTP_POST_VARS['owner_id'],
$HTTP_POST_VARS['group_id'],
$HTTP_POST_VARS['perm_owner'],
$HTTP_POST_VARS['perm_group'],
$HTTP_POST_VARS['perm_members'],
$HTTP_POST_VARS['perm_anon']);
and remove the COM_applyFilter for $HTTP_POST_VARS['commentcode'] so that it reads:
Text Formatted Code
$display .= savepoll ($qid, $HTTP_POST_VARS['mainpage'],$HTTP_POST_VARS['question'], $voters,
COM_applyFilter ($HTTP_POST_VARS['statuscode'], true),
$HTTP_POST_VARS['commentcode'],
$HTTP_POST_VARS['answer'], $HTTP_POST_VARS['votes'],
$HTTP_POST_VARS['owner_id'],
$HTTP_POST_VARS['group_id'],
$HTTP_POST_VARS['perm_owner'],
$HTTP_POST_VARS['perm_group'],
$HTTP_POST_VARS['perm_members'],
$HTTP_POST_VARS['perm_anon']);
That should fix it.
bye, Dirk
21
21
Quote
kren
Anonymous
tenks
22
17
Quote
All times are EDT. The time is now 04:38 pm.
- 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