FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » API hooks into post moderation?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: API hooks into post moderation? [message #160674 is a reply to message #160671] Mon, 12 October 2009 15:48 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
You are welcome to prepare a patch. Alternatively, you may want to try something like this:

<?php
include_once 'GLOBALS.php';
fud_use('db.inc');
fud_use('imsg_edt.inc');
fud_use('rev_fmt.inc');
fud_use('cookies.inc');
fud_use('users.inc');
fud_use('th.inc');
fud_use('th_adm.inc');
fud_use('fileio.inc');
fud_use('isearch.inc');
fud_use('iemail.inc');

$i = 0;
$c = q("SELECT id FROM ".$GLOBALS['DBHOST_TBL_PREFIX']."msg WHERE apr=0");
while ($r = db_rowobj($c)) {
      echo "Approve message ID# ". $r->id ."\n";
      fud_msg_edit::approve($r->id);
      $i++;
}
echo $i." messages approved.\n";
?>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "News"
Next Topic: NNTP improvements
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:46:05 GMT 2024

Total time taken to generate the page: 0.04915 seconds