PDA

View Full Version : Create Threads Dynamically Using PHP


No Limit
12-12-2011, 02:46 PM
Hello,

I would like to create a PHP script which would create threads on my site based on content pulled from external XML news sources. Are there some code examples or better yet API functions that would allow me to create threads using my own PHP script?

Any help would be greatly apprecaited, thanks!

kh99
12-12-2011, 03:06 PM
There's a vb4 feature that posts items from RSS feeds as threads - to set it up go to "RSS Feeds" in the adminCP. If for some reason you don't want to use that, the code for it is in includes/cron/rssposter.php, so that probably has everything you would need. In particular the part that adds a thread starts at the comment "insert item as thread".