MyBB Community Forums

Full Version: Turn on PM's for registered members.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Starting a new thread because people may be too lazy to read updated thread on my previous thread!  it might be confusing and this is a separate issue.

I have quite a few members of my forum who do NOT have the PM facility.  Reason being I inadvertently turned off the option when I shortened the registration forum found in member_register template a month or so ago.  

So every user who has registered since then does NOT have PM's enabled. 

I have subsequently turned them back ON as default (without even displaying the option when registering) by inserting the following code  the member_register template:

<td valign="top" width="1" style="display: none;"><input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} /></td>
<td valign="top" style="display: none;"><span class="smalltext"><label for="receivepms">{$lang->receive_pms}</label></span></td>

None

It works perfectly.  

However I am now stuck with a large number of users who have no PM option. Is there any way to "mop up" existing users WITHOUT the PM option, and force it to be turned back on?

Thanks in advance.
You can force it with a sql query (in phpmyadmin or whatever you can use to access your DB):
update mybb_users set receivepms=1 where receivepms=0

You can also update the pmnotice, pmnotify and buddyrequestspm to force default values:
update mybb_users set receivepms=1, pmnotice=1, pmnotify=1, buddyrequestspm=1 where receivepms=0
(2019-12-12, 03:26 PM)Crazycat Wrote: [ -> ]You can force it with a sql query (in phpmyadmin or whatever you can use to access your DB):
update mybb_users set receivepms=1 where receivepms=0

You can also update the pmnotice, pmnotify and buddyrequestspm to force default values:
update mybb_users set receivepms=1, pmnotice=1, pmnotify=1, buddyrequestspm=1 where receivepms=0
This worked.  Thanks so much!