News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to enable "Allow the administrators to send me..." on registration page

Started by Massl, April 05, 2019, 01:24:31 PM

Previous topic - Next topic

Massl

Hi, there is a way to enable by default "Allow the administrators to send me important news by email" on registration page with SMF 2.1 RC2?

After conversion to SMF all users have this option disabled, I searched with phpmyadmin on smf_members but can't find the value, where is saved this option?

Thanks

Arantor

Where are you or your users based? If you or your users are in the EU, you can't just do that without asking them.

Massl

Quote from: Arantor on April 05, 2019, 02:05:14 PM
Where are you or your users based?

Is a private intranet forum and all users (informed) needs this option checked.

Massl

Enabled on the registration page

Registrer.template.php line 142
Before
<input type="checkbox" name="notify_announcements" id="notify_announcements" tabindex="', $context['tabindex']++, '"', $context['notify_announcements'] ? ' checked="checked"' : '', '>

After
<input type="checkbox" checked="checked" name="notify_announcements" id="notify_announcements" tabindex="', $context['tabindex']++, '"', $context['notify_announcements'] ? ' checked="checked"' : '', '>

But now how I can change this option for all users?

live627

In the notification preferences page, Features and options area of the admin.

...that will set it for those users who haven't set it themselves.


live627

which version are you running? Beta 3, RC1, RC2?

Is "Allow users to disable announcements" unchecked/off?

Massl

Quote from: live627 on April 06, 2019, 03:23:36 PM
which version are you running? Beta 3, RC1, RC2?
RC2

Quote from: live627 on April 06, 2019, 03:23:36 PM
Is "Allow users to disable announcements" unchecked/off?
No, is cheked.

With this https://github.com/SimpleMachines/SMF2.1/pull/5583 I solved all the problems  ;)
Thank you!

Advertisement: