MyBB Community Forums
PHP Post Function? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: PHP Post Function? (/thread-23464.html)



PHP Post Function? - naf - 2007-07-03

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


RE: PHP Post Function? - naf - 2007-07-14

no idea?
something like post_to_thread($threadid, $mytext); ?


RE: PHP Post Function? - goughy000 - 2007-07-16

check the file called /inc/datahandlers/post.php


RE: PHP Post Function? - Diogo Parrinha - 2007-09-08

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.


RE: PHP Post Function? - goughy000 - 2007-09-30

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.