4
Actually, although I appreciate it can be circumvented, I have commented out the buttons and it's not a bad solution really, provided you don't use a module that has an explicit 'Send PM' button.
I can't post the exact code now 'cos it's on another PC, but I figured it out so it *must* be easy!
![](https://xoops.org/uploads/smil42e7a44fda194.gif)
If anyone is interested, here's what I did:
Xoops 2.0.10. To remove the PM button from the user profile:
userinfo.php around line 144
Replace the $xoopsTpl->assign line
(the one with with the javascript.open command)
with a copy of the 'else' statement line directly below it
(so they both return a blank space).
To remove the 'Send' button from the inbox (empty and full):
viewpmsg.php around line 89 (if $display== 1)
Remove the formbutton (PM_SEND) code from the first <TD>.
Leave the delete button code in the second <TD>
and leave the rest of the line in place.
And directly below that,
viewpmsg.php around line 91 (the else statement)
Remove the formbutton code from the <TD>.
I generally fill empty TDs with a non-breaking space.
This enables users to reply to messages and delete them and view and delete notifications. Of course webmaster must send PMs from the 'Find Users' admin control.
If for some strange reason you may want to try this
back up first. If it doesn't work, replace original files and vow never to take any notice of me ever again!.