PHP Post Function?
#1
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
Reply
#2
no idea?
something like post_to_thread($threadid, $mytext); ?
Reply
#3
check the file called /inc/datahandlers/post.php
Reply
#4
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.
All my plugins are available for free at MyBB Extend and on my GitHub. MyBB-Plugins.com has been closed and none of my plugins are officially maintained or supported.
Reply
#5
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)