The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Sending a user a pm.
So I made this code,
Code:
$from = 0; $fromname = ''; $title = 'Test PM'; $message = 'this is a test pm'; $sendpermissions = array( pmpermissions => 7, pmsendmax => 0, pmquota => 0, pmthrottlequantity => 0, ); $pmdm = datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY); $pmdm->set('fromuserid', $from); $pmdm->set('fromusername', $fromname); $pmdm->setr('title', $title); $pmdm->set_recipients($vbulletin->userinfo['username'], $sendpermissoins); $pmdm->setr('message', $message); $pmdm->set('dateline', TIMENOW); $pmdm->save(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|