'SELECT p.subject, p.body, p.topic, p.parent, p.poster, p.deleted, '.db_format_tsfield('p.ctime','ctime').', m.user AS moderator, t.id AS topic, t.forum, t.closed AS topicclosed, p2.subject AS topicsubject, f.group AS "group", f.title AS forumtitle, g.name AS groupname, COUNT(p3.id)
'SELECT p.subject, p.body, p.topic, p.parent, p.poster, p.approved, p.deleted, '.db_format_tsfield('p.ctime','ctime').', m.user AS moderator, t.id AS topic, t.forum, t.closed AS topicclosed, p2.subject AS topicsubject, f.group AS "group", f.title AS forumtitle, g.name AS groupname, COUNT(p3.id)
FROM {interaction_forum_post} p
INNER JOIN {interaction_forum_topic} t ON (p.topic = t.id AND t.deleted != 1)
INNER JOIN {interaction_forum_post} p2 ON (p2.topic = t.id AND p2.parent IS NULL)
...
...
@@ -67,7 +67,7 @@ $parent = get_record_sql(
INNER JOIN {interaction_forum_topic} t2 ON (t2.deleted != 1 AND p3.topic = t2.id)
INNER JOIN {interaction_instance} f2 ON (t2.forum = f2.id AND f2.deleted != 1 AND f2.group = f.group)
WHERE p.id = ?
GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15',
GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16',
array(0,$parentid)
);
...
...
@@ -240,6 +240,24 @@ function get_groupid_from_postid($postid) {
return$groupid;
}
functionreply_needs_approval($topicid){
$needsapproval=get_field_sql("SELECT c.value FROM {interaction_forum_instance_config} c
INNER JOIN {interaction_forum_topic} t
ON t.forum = c.forum WHERE field = 'moderateposts' AND t.id = ?",array($topicid));
$string['reasonempty']=' Reason field cannot be empty';
$string['objectionablepostdeletedsubject']='Objectionable post in forum topic "%s" was deleted by %s.';
$string['objectionablepostdeletedbody']='%s has looked at post by %s previously reported as objectionable and deleted it.
...
...
@@ -154,7 +159,9 @@ $string['Order'] = 'Order';
$string['orderdescription']='Choose at which position this forum shall appear in the list of forums';
$string['Post']='Post';
$string['postaftertimeout']='You have submitted your change after the timeout of %s minutes. Your change has not been applied.';
$string['postapprovesuccessful']='Post approved';
$string['postbyuserwasdeleted']='A post by %s was deleted';
$string['postnotapprovederror']='There was an error while trying to mark the post as approved';
$string['postsbyuserweredeleted']='%s posts by %s were deleted';
$string['postdelay']='Post delay';
$string['postdelaydescription']='The minimum time (in minutes) that must pass before a new post can be mailed out to forum subscribers. The author of a post may make edits during this time.';