2013-03-26, 05:23 PM
2013-03-26, 05:31 PM
Go to your ACP -> Themes & Templates -> Templates -> YOUR THEME ->User control Panel Templates -> usercp_options
Find this line:
Replace with:
Nobody will be able to see this option, so no one can Disable/Enable it It is by Defauld enabled, that means USERS can Receive messages.
Enjoy
Find this line:
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} /></td>
<td><span class="smalltext"><label for="receivepms">{$lang->receive_pms}</label></span></td>
</tr>
Replace with:
<tr style="display:none;">
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} /></td>
<td><span class="smalltext"><label for="receivepms">{$lang->receive_pms}</label></span></td>
</tr>
Nobody will be able to see this option, so no one can Disable/Enable it It is by Defauld enabled, that means USERS can Receive messages.
Enjoy
2013-03-26, 05:33 PM
ACP -> Templates and styles -> templates -> <your template theme set> -> User control panel template -> usercp_options template and remove
This will disable "receive pm" checkbox in UserCP.
For users who have unchecked that option run this query
Technically it's still there but it's only hidden, anybody with sufficient html knowledge and browser with dev tools (firebug, element inspector, dragonfly) can remove style="display:none;" from tr tag and check / uncheck that checkbox.
<tr>
<td valign="top" width="1"><input type="checkbox" class="checkbox" name="receivepms" id="receivepms" value="1" {$receivepmscheck} /></td>
<td><span class="smalltext"><label for="receivepms">{$lang->receive_pms}</label></span></td>
</tr>
This will disable "receive pm" checkbox in UserCP.
For users who have unchecked that option run this query
UPDATE `mybb_users` SET `receivepms` = 'yes'
Nobody will be able to see this option, so no one can Disable/Enable it It is by Defauld enabled, that means USERS can Receive messages.
Technically it's still there but it's only hidden, anybody with sufficient html knowledge and browser with dev tools (firebug, element inspector, dragonfly) can remove style="display:none;" from tr tag and check / uncheck that checkbox.
2013-03-26, 05:37 PM
Removing it is not actually a good idea. Maybe somehow the VALUE gets to '0' then what? Since you haven't specified any value for recievepms.
Better to hide it.
Better to hide it.
2013-03-26, 07:08 PM
thanks so much!
2013-03-27, 07:23 AM
You are welcome dude