Quote:
Originally Posted by kh99
It looks like there's an id for the text, then a different id for the message (one for each recipient). I assume you're talking about the second one (pmid in the pm table)? I'm not sure why parentid doesn't work for replys, but if you use hook location pmdata_postsave_recipient it gets called once per recipient, and you can call $this->dbobject->insert_id() to get the pmid.
|
Thanks I will try that, this is for a custom notifications system (Arrowchat)
I was also accessing these variables:
$pmdm->info['recipients']; (recipients array)
$userid (user PM being sent to)
$vbulletin->userinfo[userid] (user PM being sent from)
$vbulletin->userinfo[username] (username PM being sent from)
$pm['title'] (subject of PM)
Will they be accessible too? If not, do you know what the var names are in that hook location?
p.s If so, how do you know these?
Thanks