2009-02-09, 11:43 AM
I've been looking for a plugin that would automatically reply to each new thread made in a certain forum.
I would basically like that everytime a new user posts to the Introductions forum, he would receive a standard Welcome reply to it's thread, reply made by a certain user (I created one specifically for this sort of things). However, such a plugin doesn't exist so I tried to do it myself by doing a small modification to the newthread.php file and just inserting that data in the mybb_posts table if the fid of the new thread matches the one I want but it would be kind of tricky, because I guess I should make modifications to other tables too (the mybb_users for start, to increment the post count) and I don't know everything that I must update.
I tried to look trough the newthread.php file and the classes of mybb but I wasn't able to completely understand them.
Can anyone tell how can I manually add a new thread? Or how to make a function that does that? Maybe something like... filling an array with certain values (forum id, thread subject, author etc.) and then use a mybb class with that array as a parameter...
I really don't know what to do...
Can anyone please help me with this? I really need some advice or to be pointed in the right direction
I would basically like that everytime a new user posts to the Introductions forum, he would receive a standard Welcome reply to it's thread, reply made by a certain user (I created one specifically for this sort of things). However, such a plugin doesn't exist so I tried to do it myself by doing a small modification to the newthread.php file and just inserting that data in the mybb_posts table if the fid of the new thread matches the one I want but it would be kind of tricky, because I guess I should make modifications to other tables too (the mybb_users for start, to increment the post count) and I don't know everything that I must update.
I tried to look trough the newthread.php file and the classes of mybb but I wasn't able to completely understand them.
Can anyone tell how can I manually add a new thread? Or how to make a function that does that? Maybe something like... filling an array with certain values (forum id, thread subject, author etc.) and then use a mybb class with that array as a parameter...
I really don't know what to do...
Can anyone please help me with this? I really need some advice or to be pointed in the right direction