2012-03-05, 12:46 PM
How do I create a post with the post handler located in inc/datahandlers/post.php
Is there a documentation or something?
Thanks
Is there a documentation or something?
Thanks
Post handler
|
2012-03-05, 12:46 PM
How do I create a post with the post handler located in inc/datahandlers/post.php
Is there a documentation or something? Thanks
2012-03-05, 12:58 PM
you may trace a couple of plugins related to automatic posting .. eg. welcome topic , advanced reports ..
2012-03-05, 03:58 PM
Something along this sort of lines ought to work, though I haven't tested it:
2012-03-06, 03:47 AM
(2012-03-05, 03:58 PM)euantor Wrote: Something along this sort of lines ought to work, though I haven't tested it: I will test it ASAP, thank you euantor. If you ever find the time, could you please post similar code for a new thread?
#
MyBB is the best forum software! (2012-03-06, 03:47 AM)seeker Wrote: [...] could you please post similar code for a new thread? Code for inserting a new thread is a lot similar to the code for inserting a new post (pieced together from newthread.php, also untested):
Also, for future reference, if you have a program that is able to search across multiple files (like Notepad++'s find in files feature), you can search for a function and see how it has been used across the mybb core or in other plugins. In this case, searching for something like '$posthandler->insert_' would show up both cases where the $posthandler was used to insert new posts and threads.
2012-03-07, 06:53 AM
"...a program that is able to search across multiple files..."
I've searched through the code many times, but having both these here is a good way to save time. Thanks Beardy.
#
MyBB is the best forum software! |
« Next Oldest | Next Newest »
|