Delete topics and posts using submit_post()

Discussion forum for MOD Writers regarding MOD Development.
souper
Registered User
Posts: 6
Joined: Sun Feb 05, 2012 9:08 pm

Delete topics and posts using submit_post()

Post by souper »

I'm currently using submit_post() on my site to automatically create topics when called upon. I'd also like to automatically delete these topics the same way, without having to go into the control panel. The phpbb wiki says you can change the submit mode to 'delete'.. but I haven't been able to figure it out.

Any help would be appreciated. Thanks

EDIT: submit_post() apparently doesn't allow deleting but I was able to get it to work using the delete_post() function. However for some reason after the topic has been deleted, the quantity of posts still shows the same even though they have all been removed from the database. There is also a warning next to the post count: "At least one topic in this forum has not been approved.".
Last edited by Oyabun1 on Tue Apr 07, 2015 3:03 am, edited 1 time in total.
Reason: Moved from 3.0.x Support forum

Return to “[3.0.x] MOD Writers Discussion”