Quote:
Originally Posted by MicroHellas
By the way, a question. By using the datamanager I've to follow permissions rules for messages (eg Receive PMs or not, Ignore lists etc)? I think yes. But this is what I want to avoid. I want to give to those who have turn off PMs to avoid messages from forums, to be able to receive message for their auctions.
|
If you set the overridequota, it will work
PHP Code:
$botpermissions = 2;
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', 1);
$pmdm->set('fromusername', 'username');
$pmdm->set('title', 'title of message');
$pmdm->set('message', "youre message");
$pmdm->set_recipients('newuser', $botpermissions);
$pmdm->set('dateline', TIMENOW);
$pmdm->overridequota = true;
$pmdm->save();