PDA

View Full Version : How To Send PM From Non vb-pages ?


absofts
10-11-2011, 06:11 AM
Hi developers,

Can anyone tell me that how can I send PM to vbulletin registered users from non vb-pages ?

Thanks in Advance.

kh99
10-15-2011, 12:00 PM
Well, you could copy the PM sending form to see what data needs to be posted, the just use that. But a user would have to be logged in to be able to send (unless guests can send PMs - I don't even know offhand if that's an option). Or you could look at the pm datamanager (includes/class_dm_pm.php) and figure out which database fields get set, then write code to write your message directly to the database. And maybe a third option would be to write your own vb script (php file) that you can call to post a message (which I guess would work like private.php except it would somehow handle the issue of needing to be logged in).