Log in

View Full Version : Attachment Datamanager: Possible to set the userid?


jwocky
12-25-2011, 08:13 PM
I have a custom script which successfully uploads an attachment to a thread using vbulletin's datamanagers. However, I want the script to assign that attachment to a predefined userid and can't figure it out. Does anyone know if its possible to do this at the time of creating the attachment, or after the fact somehow even?

kh99
12-25-2011, 09:36 PM
I haven't tried it, but after you've created the attacment object, try $obj->set('userid', id).