[Request] Notification after moderating thread
#3
With the new hooks in class_moderation.php this can't be difficult, the only thing there is ... there are many hooks ^^

***************************************************
DONE
***************************************************
// CLOSE THREAD
$plugins->run_hooks("class_moderation_close_threads", $tids);
// OPEN THREAD
$plugins->run_hooks("class_moderation_open_threads", $tids);
// DELETE THREAD
$plugins->run_hooks("class_moderation_delete_thread", $tid);
// DELETE POLL
$plugins->run_hooks("class_moderation_delete_poll", $pid);
// DELETE POST
$plugins->run_hooks("class_moderation_delete_post", $post['pid']);
// MERGE POSTS
$plugins->run_hooks("class_moderation_merge_posts", array("pids" => $pids, "tid" => $tid));
// COPY THREAD
$plugins->run_hooks("class_moderation_copy_thread", array("tid" => $tid, "new_fid" => $new_fid));
// MOVE THREAD
$plugins->run_hooks("class_moderation_move_simple", array("tid" => $tid, "new_fid" => $new_fid));
// MOVE THREADS
$plugins->run_hooks("class_moderation_move_threads", array("tids" => $tids, "moveto" => $moveto));
// MERGE THREADS
$plugins->run_hooks("class_moderation_merge_threads", array("mergetid" => $tid, "tid" => $tid, "subject" => $subject));
// SPLIT POSTS
$plugins->run_hooks("class_moderation_split_posts", array("pids" => $pids, "tid" => $tid, "moveto" => $moveto, "newsubject" => $newsubject, "destination_tid" => $destination_tid));
***************************************************
In case anyone wants to start with it =P I have no time at this moment Wink

Edit ::

Found a lil' bit of time =P The first two are nearly done, just need to compose the PM "message" with usefull info Wink Now dinnertime ; the rest will be for this afternoon/evening or maybe tomorrow =P

Edit 2 ::

I aint gonna do them all; like the sticky/unsticky aren't necessary i suppose? =P Just the main ones, open/close ; merge/split ; move thread/move post.

Edit 3 ::

All Done =P Just going to run through my code several times for finding possible glitches =P
Reply


Messages In This Thread
RE: [Request] Notification after moderating thread - by LeX- - 2007-07-27, 07:35 AM

Forum Jump:


Users browsing this thread: 15 Guest(s)