Author Topic: Insert default signature for new users  (Read 2947 times)

Offline JMV

  • Newbie
  • *
  • Posts: 7
Insert default signature for new users
« on: January 23, 2017, 10:12:18 AM »
Hello,

I would like all my new users have a default http signature that they can customize after (name, phone...).
I can't use generic_message_footer because thez can't customize or remove it.

I only want to propose the standard corporate signature

thank you

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Insert default signature for new users
« Reply #1 on: January 23, 2017, 05:08:09 PM »
I don't think there is an option for that out of the box, but you could use a plugin to do it. Take a look at the new_user_dialog for an example of what could be done.

Offline rm13

  • Full Member
  • ***
  • Posts: 129
Re: Insert default signature for new users
« Reply #2 on: January 24, 2017, 11:38:59 PM »
The new_user_dialog plugin may give you a place to start. It would need modified to include a boilerplate signature if that's what you want.


Offline JMV

  • Newbie
  • *
  • Posts: 7
Re: Insert default signature for new users
« Reply #3 on: January 26, 2017, 03:22:23 AM »
Resolved.

The main modification is this line. Is needed i can share my file new_user_dialog.php

ORIGINAL : 'signature'    => rcube_utils::get_input_value('_signature', rcube_utils::INPUT_POST),
MODIFIED : 'signature'    => rcube_utils::parse_input_value('<p><strong>Signature ECOLE en html</strong></p>

Thank you