The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Ok I followed the tutorial for this to the letter. When I send the pm it is received just fine. The problem that I'm having is that it is not updating the pmtotal or the pmunread like it should. I can't for the life of me figure out why. I have looked all through the code and I can't find a reason why it is not updating those fields. Normal pm's work just fine. Below is the code I currently have in. It is a far stretch from what it was @ the beginning, but it should still work none-the-less. Any help with this problem would be very much appreciated.
Code:
$id = 4; $fromuser = fetch_userinfo($id); $permissions = fetch_permissions(0, $id, $fromuser); $registry =& $vbulletin; $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', $title); $pmdm->set('message', $pm); $pmdm->set_recipients($username, $permissions); $pmdm->set('dateline', TIMENOW); $pmdm->save(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|