Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp,v
diff -u -r1.24 -r1.24.2.1
--- openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp 9 Aug 2002 18:39:29 -0000 1.24
+++ openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.adp 17 Oct 2002 10:49:03 -0000 1.24.2.1
@@ -31,32 +31,36 @@
+
Manage Membership - Add/Remove @pretty_name@ members
- Edit properties
-
-
- Customize layout
-
-
-
- Membership
-
+
Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.tcl,v
diff -u -r1.12 -r1.12.2.1
--- openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.tcl 9 Aug 2002 18:39:29 -0000 1.12
+++ openacs-4/packages/dotlrn-portlet/www/dotlrn-admin-portlet.tcl 17 Oct 2002 10:49:03 -0000 1.12.2.1
@@ -36,6 +36,18 @@
set admin_pretty_name [ad_parameter dotlrn_admin_pretty_name dotlrn]
set subcommunity_p [dotlrn_community::subcommunity_p -community_id $community_id]
+#The community_type is dotlrn_club for "communties" and the subject name for classes.
+set comm_type [dotlrn_community::get_community_type_from_community_id $community_id]
+
+if {$comm_type == "dotlrn_club"} {
+ set club_p 1
+} else {
+ set club_p 0
+}
+
+set members_rel_id [dotlrn_community::get_members_rel_id -community_id $community_id]
+set members_can_spam_p [permission::permission_p -party_id $members_rel_id -object_id $community_id -privilege dotlrn_spam_community]
+
# get the community info
db_1row select_community_info {}
Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.adp,v
diff -u -r1.10 -r1.10.2.1
--- openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.adp 9 Aug 2002 18:39:29 -0000 1.10
+++ openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.adp 17 Oct 2002 10:49:03 -0000 1.10.2.1
@@ -18,43 +18,49 @@
%>
-
-
-
+
+
+
+
- -
- <%= [acs_community_member_link -user_id $users(user_id) -label "$users(first_names) $users(last_name)"] %>
-
-
- (@users.email@)
-
- @users.role@
+
+
+
+
+
+
-
- [ deregister ]
-
-
-
- [ deregister ]
-
-
-
-
-
-
+
+ <%= [acs_community_member_link -user_id $users(user_id) -label "$users(first_names) $users(last_name)"] %>
+ |
+ @users.email@
+ |
+ @users.role@
+ |
+
-
-
-
+
+
+
+
-
+ Sorry, this functionality is not available to guests
+
+
+
+
Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.tcl,v
diff -u -r1.9 -r1.9.2.1
--- openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.tcl 9 Aug 2002 18:39:29 -0000 1.9
+++ openacs-4/packages/dotlrn-portlet/www/dotlrn-members-portlet.tcl 17 Oct 2002 10:49:03 -0000 1.9.2.1
@@ -32,6 +32,7 @@
set admin_p [dotlrn::user_can_admin_community_p -user_id $user_id -community_id $community_id]
set read_private_data_p [dotlrn::user_can_read_private_data_p -user_id $user_id]
+set spam_p [dotlrn::user_can_spam_community_p -user_id [ad_get_user_id] -community_id $community_id]
# Get all users for this community, including role
template::util::list_of_ns_sets_to_multirow \
Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp,v
diff -u -r1.11 -r1.11.2.1
--- openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp 9 Aug 2002 18:39:29 -0000 1.11
+++ openacs-4/packages/dotlrn-portlet/www/dotlrn-members-staff-portlet.adp 17 Oct 2002 10:49:03 -0000 1.11.2.1
@@ -80,5 +80,5 @@
-<%= [dotlrn_community::get_role_pretty_plural -community_id $community_id -rel_type dotlrn_student_rel] %> List
+Member List
Index: openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp,v
diff -u -r1.9 -r1.9.2.1
--- openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp 9 Aug 2002 18:39:29 -0000 1.9
+++ openacs-4/packages/dotlrn-portlet/www/dotlrn-portlet.adp 17 Oct 2002 10:49:03 -0000 1.9.2.1
@@ -43,3 +43,6 @@
+
+
+