MyBB Community Forums

Full Version: Turn on Private Messages (PM) by default
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I've problem with newly registred users. They have disabled Private Messages by default, we have to change that.

How can we do that?

[attachment=41510]

Regards,
Raintek
Hi,

Admin Control Panel > Templates & Style (tab) > Templates (left colum) > YOUR THEME > Member Templates > member_register.

Search for:
<input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} />

and you could replace it with:

<input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" checked="checked" />
Will it work?

Edit: I can't find such a line in my mybb template.

Also, is it possible to turn it by default for everyone already? I think it can be done by SQL request?
(2019-02-10, 04:17 PM)Raintek Wrote: [ -> ]Will it work?
Yes, that's the reason I'm telling it to you.

(2019-02-10, 04:17 PM)Raintek Wrote: [ -> ]Edit: I can't find such a line in my mybb template.

Please, copy/paste here your member_register template

(2019-02-10, 04:17 PM)Raintek Wrote: [ -> ]Also, is it possible to turn it by default for everyone already? I think it can be done by SQL request?

True, with a SQL request you could turn it on to all users.