Currently, there are no active communities.-
+ @description@ ++ + + +
++ + + ++
++ + Index: openacs-4/packages/dotlrn/www/community-type.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-type.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/dotlrn/www/community-type.tcl 11 Dec 2001 00:45:15 -0000 1.1 @@ -0,0 +1,27 @@ +ad_page_contract { + Displays a community type + + @author Ben Adida (ben@openforce.net) + @author yon (yon@openforce.net) + @creation-date 2001-10-04 +} -query { +} -properties { +} + +# Check that this is a community type +if {[ad_parameter community_type_level_p] != 1} { + ad_returnredirect "./" + ad_script_abort +} + +set user_id [ad_conn user_id] + +# What community type are we at? +set community_type [dotlrn_community::get_community_type] + +# Load some community type info +db_1row select_community_type_info {} + +set context_bar {View} + +ad_return_template Index: openacs-4/packages/dotlrn/www/community-type.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-type.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/dotlrn/www/community-type.xql 11 Dec 2001 00:45:15 -0000 1.1 @@ -0,0 +1,13 @@ + + ++
Currently, there are no active community types.-
+Configure this page.
+
+
+@rendered_page@
Index: openacs-4/packages/dotlrn/www/community.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/community.tcl 11 Dec 2001 00:45:15 -0000 1.1
@@ -0,0 +1,53 @@
+
+ad_page_contract {
+ Displays a community
+
+ @author Ben Adida (ben@openforce.net)
+ @creation-date 2001-10-04
+} {
+}
+
+ns_log Notice "BEN TEST!"
+
+
+# Check that this is a community type
+if {[ad_parameter community_level_p] != 1} {
+ ns_returnredirect "./"
+ return
+}
+
+set user_id [ad_conn user_id]
+
+# What community type are we at?
+set community_id [dotlrn_community::get_community_id]
+
+# Get basic information
+db_1row select_community_info {}
+
+# Check that this user is a member
+if {![dotlrn_community::member_p $community_id $user_id]} {
+ set context_bar [list "Not a member"]
+
+ set portal_id [dotlrn_community::get_community_non_members_portal_id $community_id]
+
+ # Possible that there is no portal page for non-members
+ if {! [empty_string_p $portal_id]} {
+ set rendered_page [dotlrn::render_page $portal_id]
+ } else {
+ set rendered_page ""
+ }
+
+ ad_return_template one-community-not-member
+ return
+} else {
+ # Pull out the NPP page ID and render it!
+ set portal_id [dotlrn_community::get_portal_id $community_id $user_id]
+
+ set rendered_page [dotlrn::render_page $portal_id]
+
+ set context_bar {View}
+
+ set admin_p [dotlrn::user_can_admin_community_p $community_id]
+
+ ad_return_template
+}
Index: openacs-4/packages/dotlrn/www/community.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/Attic/community.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/dotlrn/www/community.xql 11 Dec 2001 00:45:15 -0000 1.1
@@ -0,0 +1,11 @@
+
+
+