Index: openacs-4/packages/forums/lib/message/threads-chunk-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/lib/message/Attic/threads-chunk-oracle.xql,v
diff -u -N -r1.1 -r1.1.2.1
--- openacs-4/packages/forums/lib/message/threads-chunk-oracle.xql 17 Dec 2003 15:45:29 -0000 1.1
+++ openacs-4/packages/forums/lib/message/threads-chunk-oracle.xql 4 Dec 2004 03:06:55 -0000 1.1.2.1
@@ -11,39 +11,19 @@
to_char(fm.posting_date, 'YYYY-MM-DD HH24:MI:SS') as posting_date_ansi,
fm.state,
(select count(*)
- from forums_messages_approved fm1
+ from $replies_view fm1
where fm1.forum_id = :forum_id
and fm1.tree_sortkey between tree.left(fm.tree_sortkey) and tree.right(fm.tree_sortkey)) as n_messages,
to_char(fm.last_child_post, 'YYYY-MM-DD HH24:MI:SS') as last_child_post_ansi,
case when fm.last_child_post > (sysdate - 1) then 't' else 'f' end as new_p
from forums_messages_approved fm
where fm.forum_id = :forum_id
and fm.parent_id is null
+ [template::list::page_where_clause -and -name messages -key fm.message_id]
[template::list::orderby_clause -orderby -name "messages"]
-
-
- select fm.message_id,
- fm.subject,
- fm.user_id,
- person.name(fm.user_id) as user_name,
- to_char(fm.posting_date, 'YYYY-MM-DD HH24:MI:SS') as posting_date_ansi,
- fm.state,
- (select count(*)
- from forums_messages fm1
- where fm1.forum_id = :forum_id
- and fm1.tree_sortkey between tree.left(fm.tree_sortkey) and tree.right(fm.tree_sortkey)) as n_messages,
- to_char(fm.last_child_post, 'YYYY-MM-DD HH24:MI:SS') as last_child_post_ansi,
- case when fm.last_child_post > (sysdate - 1) then 't' else 'f' end as new_p
- from forums_messages fm
- where fm.forum_id = :forum_id
- and fm.parent_id is null
- [template::list::orderby_clause -orderby -name "messages"]
-
-
-
user_name desc