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 @@