Index: openacs-4/packages/forums/forums.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/forums.info,v diff -u -r1.33 -r1.34 --- openacs-4/packages/forums/forums.info 8 Aug 2006 21:26:50 -0000 1.33 +++ openacs-4/packages/forums/forums.info 12 Sep 2006 18:12:36 -0000 1.34 @@ -7,20 +7,20 @@ f f - + OpenACS Online discussion forums. 2006-05-10 OpenACS This online discussion board software is the successor of the original bboard package. The biggest improvement is a scalable datamodel. Forums supports threaded and flat view, moderation, a stand alone search function as well as integration with the OpenACS search package and integration with the notifications package for email alerts. It also supports reply via email. 0 - + - + - + Index: openacs-4/packages/forums/www/admin/forum-edit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/admin/forum-edit.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/forums/www/admin/forum-edit.adp 17 Dec 2003 15:45:31 -0000 1.9 +++ openacs-4/packages/forums/www/admin/forum-edit.adp 12 Sep 2006 18:12:36 -0000 1.10 @@ -8,7 +8,7 @@ #forums.This_forum_is# #forums.disabled#. #forums.You_may# #forums.enable_it#. - +#forums.You_can# #forums.subscribe_others#.

Index: openacs-4/packages/forums/www/admin/subscribe-others-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/admin/subscribe-others-2.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/forums/www/admin/subscribe-others-2.tcl 8 Aug 2006 21:26:53 -0000 1.2 +++ openacs-4/packages/forums/www/admin/subscribe-others-2.tcl 12 Sep 2006 18:12:36 -0000 1.3 @@ -13,7 +13,8 @@ {return_url "."} interval:notnull delivery_method:notnull - emails:notnull + {emails ""} + {subscriber_ids:integer,multiple} {create_new_users_p "f"} } @@ -41,6 +42,21 @@ db_transaction { + # Delete all old requests of this type + foreach request_id [notification::request::request_ids -object_id $forum_id -type_id $type_id] { + notification::request::delete -request_id $request_id + } + + foreach subscriber_id $subscriber_ids { + ns_write "subscribing [party::name -party_id $subscriber_id]
" + notification::request::new \ + -type_id $type_id \ + -user_id $subscriber_id \ + -object_id $forum_id \ + -interval_id $interval \ + -delivery_method_id $delivery_method + } + foreach line $lines { set rows [split $line ","] Index: openacs-4/packages/forums/www/admin/subscribe-others.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/admin/subscribe-others.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/forums/www/admin/subscribe-others.adp 8 Aug 2006 21:26:53 -0000 1.2 +++ openacs-4/packages/forums/www/admin/subscribe-others.adp 12 Sep 2006 18:12:36 -0000 1.3 @@ -5,7 +5,6 @@

#forums.Enter_a_list_of_email# -
 user@example.com, Jane, Austin
 user2@example.com, Emily, Dickinson
@@ -16,7 +15,10 @@
 #forums.If_checked_create_users#
 
 
-
+

+Additionally you can choose from any of the members below: +

@member_html;noquote@ +

#notifications.Frequency#: @interval_html;noquote@
Index: openacs-4/packages/forums/www/admin/subscribe-others.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/admin/subscribe-others.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/forums/www/admin/subscribe-others.tcl 8 Aug 2006 21:26:53 -0000 1.2 +++ openacs-4/packages/forums/www/admin/subscribe-others.tcl 12 Sep 2006 18:12:36 -0000 1.3 @@ -13,6 +13,15 @@ # Select the info set package_id [ad_conn package_id] +set subsite_id [ad_conn subsite_id] +set group_id [application_group::group_id_from_package_id -package_id $subsite_id] + +set member_ids [group::get_members -group_id $group_id] +set member_html "" +foreach member_id $member_ids { + append member_html " [party::name -party_id $member_id]
\n" +} + forum::get -forum_id $forum_id -array forum # Proper scoping? @@ -27,9 +36,25 @@ set type forums_forum_notif set type_id [notification::type::get_type_id -short_name $type] -set hidden_vars [export_vars -form {forum_id type_id}] +# Get the list for the members and the ones already subscribed +set subscribed_members_list [notification::request::subscribers -type_id $type_id -object_id $forum_id] +set member_ids [group::get_members -group_id $group_id] +set member_ids [lsort -integer -unique [concat $subscribed_members_list $member_ids]] +set member_html "" +foreach member_id $member_ids { + if {[lsearch $subscribed_members_list $member_id] > -1} { + set checked_html "checked" + } else { + set checked_html "" + } + append member_html " [party::name -party_id $member_id]
\n" +} + + +set hidden_vars [export_vars -form {forum_id type_id}] + set intervals [notification::get_intervals -type_id $type_id] set interval_html "