Index: openacs-4/packages/dotlrn/www/community-member.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-member.adp,v diff -u -r1.22.2.1 -r1.22.2.2 --- openacs-4/packages/dotlrn/www/community-member.adp 31 May 2005 23:13:06 -0000 1.22.2.1 +++ openacs-4/packages/dotlrn/www/community-member.adp 16 Sep 2005 15:41:22 -0000 1.22.2.2 @@ -45,9 +45,9 @@
  • #dotlrn.Personal_home_page# @homepage_url@
  • - - -
  • @weblogs.name@ - #dotlrn.Latest_post# @weblogs.lastest_post@ + + +
  • @forums.name@ - #dotlrn.Latest_post# @forums.lastest_post@ Index: openacs-4/packages/dotlrn/www/community-member.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/community-member.tcl,v diff -u -r1.17.2.1 -r1.17.2.2 --- openacs-4/packages/dotlrn/www/community-member.tcl 31 May 2005 23:13:06 -0000 1.17.2.1 +++ openacs-4/packages/dotlrn/www/community-member.tcl 16 Sep 2005 15:41:22 -0000 1.17.2.2 @@ -83,14 +83,14 @@ } -default ""] set weblog_p 0 -if {1} { - set weblog_package_id [site_node_apm_integration::get_child_package_id -package_key "forums"] - set weblog_url "[dotlrn_community::get_url -package_id $weblog_package_id]/forum-view" -#set to check if you are using webloggers +#set to check if you are using forums +if {[apm_package_installed_p "forums"]} { + set forums_package_id [site_node_apm_integration::get_child_package_id -package_key "forums"] + set forums_url "[dotlrn_community::get_url -package_id $forums_package_id]/forum-view" - db_multirow weblogs weblogs {select name, forum_id, to_char(o.last_modified, 'Mon DD, YYYY') as lastest_post from forums_forums_enabled f, acs_objects o where o.object_id = forum_id - and o.creation_user = :user_id and f.package_id = :weblog_package_id} - set weblog_p 1 + db_multirow forums forums {select name, forum_id, to_char(o.last_modified, 'Mon DD, YYYY') as lastest_post from forums_forums_enabled f, acs_objects o where o.object_id = forum_id + and o.creation_user = :user_id and f.package_id = :forums_package_id} + set forums_p 1 } set portrait_p 0