It looks like you're new here. If you want to get involved, click one of these buttons!
I want move discussions to one distinct category based on criteria
must meet all these criteria.
the guts of the plugins are this. admin clicks button in dashboard that calls this routine.
$deldays = 2; SQL->Update('Discussion') ->Set('CategoryID',"70") ->Where(array('CommentCounts<' => "1", 'DateInserted <' => Gdn_Format::ToDateTime(strtotime($deldays), 'Announcement<' => "1" )) ->Put(); Redirect('dashboard/dba/counts');
essentially category id is changed in discussion table and the dba counts is run (theoretically to update counters.).
there are no file attachments in any discussions.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.