- <%= $community_names($messages(package_id)) %>: @messages.forum_name@ |
+ @messages.forum_name@ |
@messages.subject@ |
@messages.posting_date@ |
@@ -70,7 +70,7 @@
- <%= $community_names($messages(package_id)) %>: @messages.forum_name@
|
+ @messages.forum_name@
|
Index: openacs-4/packages/dotlrn-forums/www/user-history.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-forums/www/Attic/user-history.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/dotlrn-forums/www/user-history.tcl 6 Jun 2002 03:43:55 -0000 1.1
+++ openacs-4/packages/dotlrn-forums/www/user-history.tcl 2 Jul 2002 23:02:17 -0000 1.2
@@ -1,6 +1,6 @@
ad_page_contract {
- Posting History for a User across communities
+ Posting History for a User
@author Ben Adida (ben@openforce)
@creation-date 2002-05-29
@@ -11,60 +11,29 @@
{view "date"}
}
-# The biggest issue here is finding all the package IDs
-# that are to be looked at for user history
-set package_user_id $user_id
-set applet_key [dotlrn_forums::applet_key]
-
-# Load up packages and community names
-set user_package_id_list [list]
-db_foreach select_user_package_id_list {} {
- lappend user_package_id_list $package_id
- set community_names($package_id) $community_pretty_name
-}
-
-if {[dotlrn::admin_p]} {
- # If an admin, that's the package ID list
- set package_id_list $user_package_id_list
-} else {
- # If not an admin, we find the communities that the browsing
- # user is a member of
- set package_user_id [ad_conn user_id]
-
- set browser_package_id_list [list]
- db_foreach select_user_package_id_list {} {
- lappend browser_package_id_list $package_id
- }
-
- # We merge the lists
- set package_id_list [list]
- foreach pack_id $user_package_id_list {
- if {[lsearch -exact $browser_package_id_list $pack_id] > -1} {
- lappend package_id_list $pack_id
- }
- }
-}
-
-set package_id_list_sql "([join $package_id_list ","])"
-
# choosing the view
set dimensional_list {
{
view "View:" date {
- {date "by Date" { order by date desc } }
- {forum "by Forum" { order by forums_forums.name, date desc } }
+ {date "by Date" {}}
+ {forum "by Forum" {}}
}
}
}
-set sql_order_by [ad_dimensional_sql $dimensional_list]
+set query select_messages
+if {[string equal $view forum]} {
+ set query select_messages_by_forum
+}
# Select the postings
-db_multirow messages select_messages {}
+db_multirow messages $query {}
# Get user information
oacs::user::get -user_id $user_id -array user
set dimensional_chunk [ad_dimensional $dimensional_list]
+
set context_bar {{Posting History}}
+
ad_return_template
Fisheye: Tag 1.2 refers to a dead (removed) revision in file `openacs-4/packages/dotlrn-forums/www/user-history.xql'.
Fisheye: No comparison available. Pass `N' to diff?