Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 04:41 pm EDT

Geeklog Forums

Can't Disable Poll Comments


Status: offline

Demonhood

Forum User
Junior
Registered: 07/12/04
Posts: 15
Geeklog 1.3.11. Heavily customized theme.

I can edit an existing poll, but I can't seem to turn comments off for it. I save it as 'off' only to go in and edit it to see that it has reverted back. I tried this for a new poll and experienced the same problem. I've already disabled it for anonymous users, but I'd like to get rid of that option completely. Any thoughts?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, this could be a bug. Have to look into it ...

bye, Dirk
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yep, it's a bug. As a workaround, find this piece of code in admin/poll.php (starting at 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),
 

and remove the ", true" bit for that second COM_applyFilter call.

An updated version with a slightly different fix is also available from CVS.

bye, Dirk
 Quote

Status: offline

Demonhood

Forum User
Junior
Registered: 07/12/04
Posts: 15
happy
That did the trick, thanks.
 Quote

All times are EDT. The time is now 04:41 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