Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
567 views
in Q2A Core by

In a lot of my usecases the option "Save silently to hide that this was edited" is unnecessary.

Unfortunately, I cannot hide it using CSS since there is no class assigned to!

Furthermore, the admin options don't allow to disable this field. You only find admin/permissions > Editing posts silently:{ user groups }

 

Currently I am going the hard way to remove it:

// edit state, remove 'edit silent' option
if($this->template=='question' && strpos(qa_get_state(),'edit')!==false) {
    unset($this->content['form_q_edit']['fields']['silent']);
    // remove email notify from q and a
    unset($this->content['form_q_edit']['fields']['notify']);
    unset($this->content['a_form']['fields']['silent']);
   
    // count answers to question
    $answercount = count($this->content['a_list']['as']);
    // remove the edit silent notices of comment forms
    for($i=0;$i<$answercount;$i++) {
        if(isset($this->content['a_list']['as'][$i]['c_form'])) {
            unset($this->content['a_list']['as'][$i]['c_form']['fields']['silent']);
        }
    }
}

 

Can't it be easier?

Q2A version: 1.7 beta

Please log in or register to answer this question.

...