Index: openacs-4/packages/forums/www/forum-view-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/forum-view-oracle.xql,v
diff -u -r1.5.2.1 -r1.5.2.1.2.1
--- openacs-4/packages/forums/www/forum-view-oracle.xql 22 Nov 2002 18:38:32 -0000 1.5.2.1
+++ openacs-4/packages/forums/www/forum-view-oracle.xql 17 Oct 2003 15:53:46 -0000 1.5.2.1.2.1
@@ -14,11 +14,13 @@
from forums_messages_approved 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
- case when fm.last_child_post > (sysdate - 1) then 't' else 'f' end as new_p
- from forums_messages_approved fm
+ to_char(acs_objects.last_modified, 'Mon DD YYYY HH24:MI:SS') as last_modified,
+ case when acs_objects.last_modified > (sysdate - 1) then 't' else 'f' end as new_p
+ from forums_messages_approved fm,
+ acs_objects
where fm.forum_id = :forum_id
and fm.parent_id is null
+ and fm.message_id = acs_objects.object_id
order by fm.posting_date desc
@@ -35,11 +37,13 @@
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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
- case when fm.last_child_post > (sysdate - 1) then 't' else 'f' end as new_p
- from forums_messages fm
+ to_char(acs_objects.last_modified, 'Mon DD YYYY HH24:MI:SS') as last_modified,
+ case when acs_objects.last_modified > (sysdate - 1) then 't' else 'f' end as new_p
+ from forums_messages fm,
+ acs_objects
where fm.forum_id = :forum_id
and fm.parent_id is null
+ and fm.message_id = acs_objects.object_id
order by fm.posting_date desc
Index: openacs-4/packages/forums/www/forum-view-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/forum-view-postgresql.xql,v
diff -u -r1.4.2.3 -r1.4.2.3.2.1
--- openacs-4/packages/forums/www/forum-view-postgresql.xql 16 May 2003 09:17:46 -0000 1.4.2.3
+++ openacs-4/packages/forums/www/forum-view-postgresql.xql 17 Oct 2003 15:53:46 -0000 1.4.2.3.2.1
@@ -11,19 +11,19 @@
fm.posting_date,
fm.state,
(select count(*)
- from forums_messages_approved fm1
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
- case when fm.last_child_post > (now() - interval '1 day') then 't' else 'f' end as new_p
+ to_char(fm.last_child_post, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
order by fm.posting_date desc
-
+
select fm.message_id,
fm.subject,
@@ -32,16 +32,158 @@
fm.posting_date,
fm.state,
(select count(*)
- from forums_messages fm1
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
- case when fm.last_child_post > (now() - interval '1 day') then 't' else 'f' end as new_p
+ to_char(fm.last_child_post, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ and fm.message_id IN (CURRENT_PAGE_SET)
+ order by fm.posting_date desc
+
+
+
+
+
+
+ select fm.message_id,
+ fm.subject,
+ fm.user_id,
+ person__name(fm.user_id) as user_name,
+ fm.posting_date,
+ fm.state,
+ (select count(*)
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ order by fm.last_child_post desc
+
+
+
+
+
+ select fm.message_id,
+ fm.subject,
+ fm.user_id,
+ person__name(fm.user_id) as user_name,
+ fm.posting_date,
+ fm.state,
+ (select count(*)
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ and fm.message_id IN (CURRENT_PAGE_SET)
+ order by fm.last_child_post desc
+
+
+
+
+
+ select fm.message_id,
+ fm.subject,
+ fm.user_id,
+ person__name(fm.user_id) as user_name,
+ fm.posting_date,
+ fm.state,
+ (select count(*)
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ and fm.max_child_sortkey is null
order by fm.posting_date desc
+
+
+ select fm.message_id,
+ fm.subject,
+ fm.user_id,
+ person__name(fm.user_id) as user_name,
+ fm.posting_date,
+ fm.state,
+ (select count(*)
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ and fm.max_child_sortkey is null
+ and fm.message_id IN (CURRENT_PAGE_SET)
+ order by fm.posting_date desc
+
+
+
+
+
+
+ select fm.message_id,
+ fm.subject,
+ fm.user_id,
+ person__name(fm.user_id) as user_name,
+ fm.posting_date,
+ fm.state,
+ (select count(*)
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ and fm.last_child_post > :second_to_last_visit
+ order by fm.last_child_post desc
+
+
+
+
+
+ select fm.message_id,
+ fm.subject,
+ fm.user_id,
+ person__name(fm.user_id) as user_name,
+ fm.posting_date,
+ fm.state,
+ (select count(*)
+ from $forums_table 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, 'Mon DD YYYY HH24:MI:SS') as last_child_post,
+ case when fm.last_child_post > (now() - interval '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
+ and fm.last_child_post > :second_to_last_visit
+ and fm.message_id IN (CURRENT_PAGE_SET)
+ order by fm.last_child_post desc
+
+
+
+
+
+ select second_to_last_visit from cc_users where user_id=:user_id
+
+
+
Index: openacs-4/packages/forums/www/message-chunk.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/message-chunk.adp,v
diff -u -r1.11.2.2 -r1.11.2.2.2.1
--- openacs-4/packages/forums/www/message-chunk.adp 26 Nov 2002 02:38:13 -0000 1.11.2.2
+++ openacs-4/packages/forums/www/message-chunk.adp 17 Oct 2003 15:53:46 -0000 1.11.2.2.2.1
@@ -1,30 +1,42 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
- <%= [ad_text_to_html -- "$message(content)"] %>
-
-
-
- @message.content@
-
- |
- |
-
+
+
Index: openacs-4/packages/forums/www/message-view-flat.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/message-view-flat.adp,v
diff -u -r1.6.2.3 -r1.6.2.3.2.1
--- openacs-4/packages/forums/www/message-view-flat.adp 13 Feb 2003 13:08:26 -0000 1.6.2.3
+++ openacs-4/packages/forums/www/message-view-flat.adp 17 Oct 2003 15:53:46 -0000 1.6.2.3.2.1
@@ -2,45 +2,24 @@
Forum @forum.name@: @message.subject@
@context@
-
+@notification_chunk@
-
-
-
- @notification_chunk@
- |
-
-
-
-
-
-
-
-
Post a Reply
+
Index: openacs-4/packages/forums/www/message-view.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/message-view.adp,v
diff -u -r1.10.2.3 -r1.10.2.3.2.1
--- openacs-4/packages/forums/www/message-view.adp 13 Feb 2003 13:08:26 -0000 1.10.2.3
+++ openacs-4/packages/forums/www/message-view.adp 17 Oct 2003 15:53:46 -0000 1.10.2.3.2.1
@@ -2,70 +2,31 @@
Forum @forum.name@: @message.subject@
@context@
-
-
-
-
-
-
-
+
@notification_chunk@
- |
-
-
-
- Search:
-
- |
-
-
+
-
-
-
-
- <% set width [expr 100 - [expr $responses(tree_level) - 1] * 3] %>
-
-
-
-
- |
-
-
-
-
-
Post a Reply