Roundcube Community Forum

 

How to set default signature is above the quote in roundcube

Started by thanhnv, August 11, 2012, 10:25:12 PM

Previous topic - Next topic

thanhnv

Hello,

I would like to set default : signature is above the quote , how to do it. I have edited some items in func.inc file (set 0 / 1) in program/ steps/ settings but I can not resolve it.

Thanks for help ! 

thanhnv

if (!isset($no_override['sig_above'])) {
      $field_id = 'rcmfd_sig_above';
      $select_sigabove = new html_select(array('name' => '_sig_above', 'id' => $field_id, 'disabled' => !$config['top_posting']));
      $select_sigabove->add(rcube_label('belowquote'), 0);
  $select_sigabove->add(rcube_label('abovequote'), 1);


and

Quoteif (!isset($no_override['top_posting'])) {
      $field_id = 'rcmfd_top_posting';
      $select_replymode = new html_select(array('name' => '_top_posting', 'id' => $field_id, 'onchange' => "\$('#rcmfd_sig_above').attr('disabled',this.selectedIndex==0)"));
      $select_replymode->add(rcube_label('replybottomposting'), 0);
     $select_replymode->add(rcube_label('replytopposting'), 1);

I have just change 0 ---> 1 and 1 --> 0 . I dont know php language. 

SKaero

No core code editing needed, just go to Settings -> Composing Messages and then set "When replying" to "start new message above original"  ;)

thanhnv

thanks SKaero,

But We have a large e-mail server with 2000 e-mail accounts, so we need to set default it. Please help to resolve, we can't do it manually.

thanks.

SKaero

Change $rcmail_config['top_posting'] and $rcmail_config['sig_above'] to true in <RC root>/config/main.inc.php