Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Notification by email when new answer is posted

Hello everyone.

I have got a quick question about vanilla.

How can I notify my forum user by email when:

  • He is mentioned like (@username)
  • When somebody answers his thread
  • When somebody answers a thread he participated

So far, only private message are sent by email.

Thanks a lot

Best Answer

Answers

  • TamaTama ✭✭✭
    edited June 2013

    This is in their notification settings. To set this by default have a look at

    $Configuration['Preferences']['Email']['ConversationMessage']   = '1';
    $Configuration['Preferences']['Email']['BookmarkComment']       = '1';
    $Configuration['Preferences']['Email']['WallComment']           = '0';
    $Configuration['Preferences']['Email']['ActivityComment']       = '0';
    $Configuration['Preferences']['Email']['DiscussionComment']     = '0'; // Looks like you want this ( set to 1)
    $Configuration['Preferences']['Popup']['ConversationMessage']   = '1';
    $Configuration['Preferences']['Popup']['BookmarkComment']       = '1';
    $Configuration['Preferences']['Popup']['WallComment']           = '1';
    $Configuration['Preferences']['Popup']['ActivityComment']       = '1';
    $Configuration['Preferences']['Popup']['DiscussionComment']     = '1';
    $Configuration['Preferences']['Email']['Mention']               = '0'; //and this  ( set to 1)
    $Configuration['Preferences']['Popup']['Mention']               = '1';
    

    and add the ones you need to config.php you can find more config options at https://github.com/vanillaforums/Garden/blob/master/conf/config-defaults.php ,or in the same file on your install.

    There was an error rendering this rich post.

  • whu606whu606 MVP
    edited June 2013

    @Carlo_13

    Setting the default in config.php will do what you want, but will only impact new users.

    You could make an announcement asking users to change their preferences.

    If you wanted to force all your users to have the same preferences, you could set the config as above, then export and import the user DB using Vanilla porter.

    Obviously, make sure you have a proper back up before attempting anything like that!

  • Hi @Tama & @whu606, thanks for your answers guys.

    Is there a way I change those settings in the database for everyone ?

Sign In or Register to comment.