Log in

View Full Version : inserting pm into db


feras
02-03-2009, 09:47 PM
I'm writing a custom feature for my website, and one part involves sending the specified user a PM from another user (Such as the admin).

Is there any simple way this can be done?
I was considering just inserting the data into the mysql DB (1 row into PM table, and another corresponding row into the pmtext table). Are there any details on doing it this way? If I do this, will it affect anything else?

If anyone has any suggestions, I'm open to other methods.
Thanks

Dismounted
02-04-2009, 05:37 AM
You should use the vBulletin data managers (http://www.vbulletin.com/docs/html/data_managers) (the PM data manager in this case). There may be more than just adding a few rows.