Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 05:53 am EST
Geeklog Forums
no comments
kren
Anonymous
Is it possible to disable comments?
11
10
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
9
8
Quote
kren
Anonymous
Can I enable and disable comments on poll to?
8
9
Quote
kren
Anonymous
i have one problem i can't disable comments on poll
8
8
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
9
10
Quote
kren
Anonymous
tenks
9
7
Quote
All times are EST. The time is now 05:53 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