PDA

View Full Version : Create new post with an attachment via cron


acroplex
03-29-2009, 04:04 AM
Greetings.

I run a cron once a day via CPanel (inside the vBulletin path) that generates a text file.

How can I automatically create a new post - in a particular forum, with a title, post etc. and attach that text file? Is there a way to also specify the user that makes this post?

Your help is greatly appreciated.

Dismounted
03-29-2009, 04:08 AM
vBulletin data managers can do this, however, the "easier" way is to use build_new_post() (functions_newpost.php).

acroplex
03-29-2009, 04:34 AM
Hmm. Thanks Dismounted. Any pointers to *how* one can use these function hooks?