1
This was born out of the need to send news notifications to users without allowing them to communicate with one another.
If you find any errors or have any comments please let me know.
Files Involved
viewpmsg.php
readpmsg.php
open viewpmsg.php
find
-------------------------
$send_button = new XoopsFormButton('', 'send', _PM_SEND);
insert before
-------------------------
if($xoopsUser->isAdmin()){
find
-------------------------
pm/pmlite.php?send=1\",\"pmlite\",550,450);'");
insert after
-------------------------
}
find
-------------------------
$pmform->addElement($send_button);
Replace with
-------------------------
if($xoopsUser->isAdmin()){
$pmform->addElement($send_button);
}
open readpmsg.php
find
-------------------------
if($pm->getVar('from_userid') != $xoopsUser->getVar('uid')){
Replace with
-------------------------
if($xoopsUser->isAdmin() && $pm->getVar('from_userid') != $xoopsUser->getVar('uid')){
Then only Admin (standard setting for Webmasters) can send and reply to PM's
Shawn Beasley
The Dig"IT"al Ninja