The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
PHP code to create new thread in existing forum
Hello,
We have a custom PHP script that was written for vBulletin 4 that I wrote within the vBulletin installation directory. It accepts a POST request and uses the Thread_FirstPost and AttachmentFiledata data managers to create a new thread in an existing forum. We have recently upgraded to vBulletin 5. Does anyone know how to code PHP, using the vBulletin 5 API to create a new thread with attachments. I can't seem to find anything and the support team was of absolutely no help whatsoever. They just pointed me to the severely lacking API documentation without any direction as to which classes I should be looking at. Any help would be greatly appreciated. I could not find a thread that had already answered this question so I apologize is this is a duplicate, but if it is, please direct me to the thread that has already answered this question (if it exists). Thank you! |
#2
|
||||
|
||||
You will find the classes you are looking for in includes/vb5/frontend/controller/createcontent.php. Be prepared, this is a busy script. I've called it from the command line with curl and successfully created threads posts and comments. I have never tried adding attachments or photos, butt this is where it is all done. CKEditor submits multi-part binary formdata to accomplish attachment uploads. Hope this helps.
|
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
@Replicant. It definitely gives me a place to start. I appreciate the help. Thank you.
|
#4
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|