PDA

View Full Version : PM recipient variable?


BlueNinjaGo
05-01-2009, 03:45 PM
I'm writing a plug-in and I was wondering if there's a variable for a PM recipient... (would it be "$recipient"?)
Also, if I wanted to pull the recipient's profile field info, any suggestions?

I was thinking $recipient['field5'] but i wasn't sure

Also, what would the variable be for the sender of the PM?

Thanks for any input

Dismounted
05-02-2009, 12:44 AM
I don't think the info of the PM's recipient is fetched in the first place. It's just a user ID or username.

THe sender would be the current user - $vbulletin->userinfo.