dam, no go either
PHP Code:
$msgfield = nl2br($vbulletin->options['on_usergroupchange_text']);
this is my whole chunk of code:
Code:
$msgfield = nl2br($vbulletin->options['on_usergroupchange_text']);
$msg = $msgfield[@array_rand($msgfield)];
$pmbodyfield = @str_replace("{username}", $vbulletin->userinfo['username'], $msg);
$pmdm =& datamanager_init('PM', $this->registry, ERRTYPE_SILENT);
$pmdm->set('fromuserid', $vbulletin->options['on_usergroupchange_fromuserid']);
$pmdm->set('fromusername', $vbulletin->options['on_usergroupchange_fromusername']);
eval(fetch_email_phrases('usergroupschanged', $this->fetch_field('languageid')));
$pmdm->set('title', $vbulletin->options['on_usergroupchange_subject']);
$pmdm->set('message', $pmbodyfield);
$botperms = array('adminpermissions' => 2);
$pmdm->set_recipients($this->fetch_field('username'), $botperms); // Ignore PM-Box full
$pmdm->set('dateline', TIMENOW);
$pmdm->save();