MyBB Community Forums

Full Version: PHP Post Function?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there!
I'm planning to adapt the download plugin so that everytime a new download is added, automatically a new post is made to a specified thread or a new thread is added to a specified forum.

now, is there already something like a php add post function implemented or existing?

or has anyone already done something similar?

thanks for your help!
naf
no idea?
something like post_to_thread($threadid, $mytext); ?
check the file called /inc/datahandlers/post.php
its in the functions_post.php file i believe
build_postbit($post, $post_type=0)

is one of the 2 functions inside, that one builds everything, email button, the text, online status, etc.
It builds the post bit so i think thats what you want.
Pirata Nervo Wrote:its in the functions_post.php file i believe
build_postbit($post, $post_type=0)

is one of the 2 functions inside, that one builds everything, email button, the text, online status, etc.
It builds the post bit so i think thats what you want.

build_post is used for displaying the post whereas he wants to post the post.