MyBB Community Forums

Full Version: auto submit to thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi

I would like to know how I can set submit to thread automatically
so the checkbox submit to thread is always vinked on except when they change it mannually.

So each time someone posts in their thread they receive an email.

can anyone help me here?
They can go to the bottom and click "Subscribe to this Thread"
yes but I mean that it has to be activated automatically.
no one?
To automatically subscribe:
User CP --> Your Profile --> Edit Options --> Automatically subscribe to threads you post in.

To unsubscribe from threads:
User CP --> Miscellaneous --> Subscribed Threads
Yes but then each member has to do it himself.

I mean that this option is activated automatically in the script.
no one?
In inc/datahandlers/user.php, find:
$this->verify_yesno_option($options, 'emailnotify', 'no');
Replace with:
$this->verify_yesno_option($options, 'emailnotify', 'yes');

That should make the "Email notification" option selected by default for new members. For existing members you can run this SQL query in phpMyAdmin:
UPDATE mybb_users SET emailnotify='yes'