Was something changed on 3.6? This code no longer works:
PHP Code:
// create the DM to do error checking and insert the new PM
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_SILENT);
$pmdm->set('fromuserid', $fromuser['userid']);
$pmdm->set('fromusername', $fromuser['username']);
$pmdm->set_info('receipt', false);
$pmdm->set_info('savecopy', false);
$pmdm->set('title', "Important information regarding your registration!");
$pmdm->set('message', "[center][b]AUTOGENERATED PM[/b][/center] ");
$pmdm->set_recipients($userinfo['username'], $fromuser['permissions']);
$pmdm->set('dateline', TIMENOW);
$pmdm->save();
I haven't changed any of the code from 3.5 since the upgrade, so something in there no longer works. Any idea what it is?
Okay, I got it working, but there is no popup for the user about a PM. Any ideas?