Index: openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml,v diff -u -r1.51 -r1.52 --- openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml 9 Nov 2008 23:29:23 -0000 1.51 +++ openacs-4/packages/dotlrn/catalog/dotlrn.en_US.ISO-8859-1.xml 3 Apr 2009 12:13:49 -0000 1.52 @@ -28,6 +28,7 @@ Add User Add users to Add Users to Group + Add your biography Add/Drop Memberships To visit the community's home page, point your browser at %package%, log in, and click on the %community_name% link in the "Groups" portlet. You have been added to the "%community_name%" community at %package% @@ -140,6 +141,7 @@ Confirm: Confirm Drop Confirmation + Contact Us Control Panel 7 Copy @@ -158,6 +160,7 @@ CSV File Format Customize Layout Customize Site Template + Cut and paste or type your biography <p>Database error while trying to create the last user in the list above!<br> The transaction has been aborted, no users have been entered, and no e-mail notifications have been sent.<p> <p>Datafile must include at least the email, first_names, last_name fields.<p> Deactivate ... @@ -219,6 +222,7 @@ Subject Email E-mail + Email: Email Email Cancelled Email Members @@ -240,6 +244,7 @@ First Line The first line of the file must have the following header line: First Name + Firstnames: From fuchsia Full @@ -297,6 +302,7 @@ Key Large Last Name + Last name: Last Visit: Number of days since last visit is more than: On the user search form. What follows the text is a select box for the number of days. @@ -536,13 +542,15 @@ Or or by RGB number or, return to + Or upload a text file Page Parent Parent Type Pending Pending Approval Name: Personal home page: + Personal Information Personal Options Plain Text Please type a keyword @@ -662,6 +670,7 @@ %subcommunities_pretty_name% Memberships Subject Subject key + Support Teaching Assistant Teaching Assistants teal @@ -690,6 +699,7 @@ Unknown Term Update Password upload + File format User You have been added as a user to %system_name% at %system_url%. Login: %user_email% Index: openacs-4/packages/dotlrn/catalog/dotlrn.es_ES.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/catalog/dotlrn.es_ES.ISO-8859-1.xml,v diff -u -r1.21 -r1.22 --- openacs-4/packages/dotlrn/catalog/dotlrn.es_ES.ISO-8859-1.xml 9 Nov 2008 23:29:23 -0000 1.21 +++ openacs-4/packages/dotlrn/catalog/dotlrn.es_ES.ISO-8859-1.xml 3 Apr 2009 12:13:49 -0000 1.22 @@ -27,6 +27,7 @@ A�adir usuario A�adir usuarios a A�adir usuarios al grupo + Su biograf�a Alta/baja en grupos Para visitar la p�gina de la comunidad, vaya con su navegador al %package%, abra una sesi�n, pinche en el enlace %community_name% dentro del portlet &quot;Grupos&quot;. Ha sido a�adido a la comunidad &quot;%community_name%&quot; en %package% @@ -130,6 +131,7 @@ Confirmar: Confirmar borrado Confirmaci�n + Contactar Panel de control 7 Copiar @@ -148,6 +150,7 @@ Formato CSV Personalizar este portal Personalizar plantilla + Corte y pegue o escriba su biograf�a <p>�Ha ocurrido un error en la base de datos mientras se intentaba crear al ultimo usuario de la lista!&<br>La transacci�n ha sido abortada, no se ha a�adido ning�n usuario y no se ha enviado ning�n correo.</p> <p>El archivo de datos debe de incluir al menos los campos "emails, first_names, last_name".<p> Desactivar... @@ -206,6 +209,7 @@ Asignatura Correo electr�nico: Correo electr�nico + Email: Correo electr�nico Correo cancelado Escribir a los miembros @@ -227,6 +231,7 @@ Primera L�nea La primera l�nea del archivo debe contener el siguiente l�nea de t�tulo: Nombre + Nombre: Desde fucsia Ilimitado @@ -284,6 +289,7 @@ Clave Grande Apellidos + Apellidos: �ltima visita: �ltima visita despu�s de �ltima visita antes de @@ -489,13 +495,15 @@ o o por n�meros RGB o, volver a + O suba un fichero de texto P�gina Padre Tipo del padre Pendiente Esperando aprobaci�n Nombre P�gina personal: + Informaci�n personal Opciones personales Texto plano Entrar cadena a buscar @@ -600,6 +608,7 @@ Miembros de %subcommunities_pretty_name% Asunto Llave de Asignatura + Soporte Profesor asociado Profesores asociados turquesa @@ -627,6 +636,7 @@ Per�odo desconocido Actualizar contrase�a subir + Formato del fichero Usuario Ha sido registrado como usuario de %system_name% en %system_url%. Direcci�n de correo: %user_email% Contrase�a: %user_password% Ha sido registrado como usuario de %system_name% en %system_url% 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.25 -r1.26 --- openacs-4/packages/dotlrn/www/community-member.adp 9 Nov 2008 23:29:23 -0000 1.25 +++ openacs-4/packages/dotlrn/www/community-member.adp 3 Apr 2009 12:13:49 -0000 1.26 @@ -19,60 +19,43 @@ %> -@first_names@ @last_name@ +@user.first_names@ @user.last_name@ @context;noquote@ -

-Go back -

-#dotlrn.user_has_been_a_member_since# + +
+ + #acs-subsite.lt_Portrait_of_first_last# + +
+
- +
+

#dotlrn.Personal_info#

+

#dotlrn.this_user_is_deleted#

-
- + + +

#dotlrn.lt_this_user_is_deleted_#

+
+
-

#dotlrn.lt_this_user_is_deleted_#

- -
- -
    -
  • #dotlrn.email#: @email@
  • +
  • #dotlrn.First_names_# @first_names@
  • +
  • #dotlrn.Last_name_# @last_name@
  • +
  • #dotlrn.Email_# @pretty_email;noquote@
  • +
  • #dotlrn.Registration_date# @pretty_creation_date@
  • - -
  • #dotlrn.Personal_home_page# @homepage_url@
  • + +
  • #dotlrn.Personal_home_page# @user.url@
  • - - -
  • @forums.name@ - #dotlrn.Latest_post# @forums.lastest_post@ - - - -

    #dotlrn.Biography# @bio;noquote@ -

-
- - -
  • #dotlrn.Personal_home_page# @url@
-
-
- - - - -
- -
- - - - - + +

#dotlrn.Biography#

+ @user.bio;noquote@
- +
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.18 -r1.19 --- openacs-4/packages/dotlrn/www/community-member.tcl 8 Aug 2006 21:26:24 -0000 1.18 +++ openacs-4/packages/dotlrn/www/community-member.tcl 3 Apr 2009 12:13:49 -0000 1.19 @@ -25,7 +25,6 @@ {community_id ""} {return_url ""} } -properties { - context_bar:onevalue portal_id:onevalue member_state:onevalue first_names:onevalue @@ -52,107 +51,37 @@ auth::require_login -set verified_user_id [ad_verify_and_get_user_id] +acs_user::get -user_id $user_id -array user -include_bio -set user_info_sql { - select first_names, - last_name, - email, - priv_email, - url as homepage_url, - creation_date, - member_state - from cc_users - where user_id = :user_id +foreach name {first_names last_name} { + set $name $user($name) } - -if {![db_0or1row user_information $user_info_sql]} { - ad_return_error "[_ dotlrn.No_user_found]" [_ dotlrn.no_community_member_with_id [list user_id $user_id]] - ad_script_abort +if { $return_url eq "" } { + set return_url [ad_return_url] } -set bio [db_string biography { - select attr_value - from acs_attribute_values - where object_id = :user_id - and attribute_id = (select attribute_id - from acs_attributes - where object_type = 'person' - and attribute_name = 'bio') -} -default ""] +set context [list [_ dotlrn.Community_member]] +set system_name [ad_system_name] +set pretty_creation_date [lc_time_fmt $user(creation_date) "%q"] +set pretty_email [email_image::get_user_email -user_id $user_id -transparent 1 -return_url $return_url] -set weblog_p 0 -#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" +set login_export_vars "return_url=[ns_urlencode [acs_community_member_url -user_id $user_id]]" - 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 -} +# Portrait -set portrait_p 0 -if {[ad_parameter "show_portrait_p" dotlrn] && 0} { - set portrait_p 1 - set inline_portrait_state "" - set portrait_export_vars [export_vars user_id] +set portrait_p [db_0or1row get_item_id { + select c.live_revision, c.item_id, + cr.description as caption + from acs_rels a, cr_items c, cr_revisions cr + where a.object_id_two = c.item_id + and a.object_id_one = :user_id + and a.rel_type = 'user_portrait_rel' + and cr.revision_id = c.live_revision}] - set user_portrait_sql { - select images.width, - images.height, - cr_revisions.title, - cr_revisions.description, - cr_revisions.publish_date - from acs_rels, - cr_items, - cr_revisions, - images - where acs_rels.object_id_two = cr_items.item_id - and cr_items.live_revision = cr_revisions.revision_id - and cr_revisions.revision_id = images.image_id - and acs_rels.object_id_one = :user_id - and acs_rels.rel_type = 'user_portrait_rel' - } - - if {[db_0or1row portrait_info $user_portrait_sql]} { - if {![empty_string_p $width] && $width < 300 } { - set inline_portrait_state "inline" - } else { - set inline_portrait_state "link" - } - } +if { $portrait_p } { + set img_src [export_vars -base "[subsite::get_element -element url]shared/portrait-bits.tcl" { user_id item_id {size thumbnail}}] + set portrait_url [export_vars -base "[subsite::get_element -element url]shared/portrait" { user_id return_url }] } -set show_email_p 0 -#if { $priv_email <= [ad_privacy_threshold] } { -# set show_email_p 1 -#} - -db_multirow user_contributions user_contributions {} - -set folder_id [dotlrn_fs::get_user_shared_folder -user_id $user_id] - -set scope_fs_url "/packages/file-storage/www/folder-chunk" -set n_past_days "" -#set url "[site_node_object_map::get_url -object_id $folder_id]index?folder_id=$folder_id&n_past_days=99999" - -set context_bar [ad_context_bar "[_ dotlrn.Community_member]"] -set context [list "Member Page"] -set system_name [ad_system_name] -set pretty_creation_date [lc_time_fmt $creation_date "%q"] -set login_export_vars "return_url=[ns_urlencode [acs_community_member_url -user_id $user_id]]" - -set return_url_2 [ad_return_url] -if {[empty_string_p $return_url]} { - set return_url [get_referrer] - if {[regexp {\?} $return_url_2]} { - append return_url_2 "&return_url=$return_url" - } else { - append return_url_2 "?return_url=$return_url" - } -} - ad_return_template - Index: openacs-4/packages/dotlrn/www/control-panel.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/control-panel.adp,v diff -u -r1.21 -r1.22 --- openacs-4/packages/dotlrn/www/control-panel.adp 9 Nov 2008 23:29:23 -0000 1.21 +++ openacs-4/packages/dotlrn/www/control-panel.adp 3 Apr 2009 12:13:49 -0000 1.22 @@ -19,7 +19,7 @@ %> -@title@ +doc 0 @context;noquote@ @@ -29,74 +29,54 @@
-

#acs-subsite.My_Account#

+

#acs-subsite.My_Account#

-
- - - #acs-subsite.Account_closed_workspace_msg# - - - #acs-subsite.Manage_your_notifications# - - - #dotlrn.Customize_Template# - - - #dotlrn.Customize_Layout# + + + + +
+ +
+ + @@ -106,44 +86,56 @@
-

#acs-subsite.Privacy#

+

#dotlrn.Preferences#

-

#dotlrn.General_Site_Help#

+

#dotlrn.Support#

- \ No newline at end of file + Index: openacs-4/packages/dotlrn/www/control-panel.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/control-panel.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn/www/control-panel.tcl 9 Nov 2008 23:29:23 -0000 1.13 +++ openacs-4/packages/dotlrn/www/control-panel.tcl 3 Apr 2009 12:13:49 -0000 1.14 @@ -23,65 +23,60 @@ @creation-date 2001-11-10 @version $Id$ -} -query { -} -properties { - title:onevalue - admin_p:onevalue - admin_url:onevalue - referer:onevalue } +# Make sure user is logged in +set user_id [auth::require_login] +acs_user::get -array user -include_bio -user_id $user_id + +# General data set dotlrn_url [dotlrn::get_url] set dotlrn_package_id [dotlrn::get_package_id] -set portal_id [dotlrn::get_portal_id -user_id [ad_get_user_id]] -# Make sure user is logged in -set user_id [auth::require_login -account_status closed] +set return_url [ad_return_url] -set title [parameter::get -localize -parameter admin_page_name] -set context [list [parameter::get -localize -parameter admin_page_name]] -set admin_p [dotlrn::admin_p] -set admin_url "[dotlrn::get_url]/admin" -set cockpit_url "[dotlrn::get_url]/admin/cockpit" -set referer [ns_conn url] -set admin_pretty_name [parameter::get -localize -parameter dotlrn_admin_pretty_name] -set system_owner [ad_system_owner] +set subsite_url [subsite::get_element -element url] -set pvt_home [ad_pvt_home] +set pvt_home_url [ad_pvt_home] set pvt_home_name [ad_pvt_home_name] -acs_user::get -array user -include_bio -user_id $user_id +set system_owner [ad_system_owner] -set account_status [ad_conn account_status] +# Page information +set doc(title) $pvt_home_name +set context [list $doc(title)] -set community_member_url [acs_community_member_url -user_id $user_id] +# Get URLs for options -set notifications_url [lindex [site_node::get_children -node_id [subsite::get_element -element node_id] -package_key "notifications"] 0] +## Your account -set system_name [ad_system_name] +set portrait_p [db_0or1row get_portrait_info {}] +if { $portrait_p } { + set portrait_image_src [export_vars -base "${subsite_url}shared/portrait-bits.tcl" { user_id item_id {size avatar}}] + set portrait_url [export_vars -base "${subsite_url}user/portrait" { return_url }] +} else { + set portrait_url [export_vars -base "${subsite_url}user/portrait/upload" { return_url }] +} +set user_info_template [parameter::get -package_id [ad_conn subsite_id] -parameter UserInfoTemplate -default "/packages/acs-subsite/lib/user-info"] + +set community_member_url [acs_community_member_url -user_id $user_id] + +set edit_bio_url [export_vars -base "bio-update" {return_url}] +set email_privacy_url "${subsite_url}user/email-privacy-level" set change_locale_url [apm_package_url_from_key "acs-lang"] +set change_password_url "${subsite_url}user/password-update" -set whos_online_url "[subsite::get_element -element url]shared/whos-online" -set make_visible_url "[subsite::get_element -element url]shared/make-visible" -set make_invisible_url "[subsite::get_element -element url]shared/make-invisible" -set invisible_p [whos_online::user_invisible_p [ad_conn untrusted_user_id]] +set close_account_url "${subsite_url}pvt/unsubscribe" -if { ![db_0or1row get_portrait_info {}] } { - set portrait_state "upload" -} else { - if { $portrait_title eq "" } { - set portrait_title "[_ acs-subsite.no_portrait_title_message]" - set portrait_state "show" - set portrait_publish_date [lc_time_fmt $publish_date "%q"] - } -} -set portrait_upload_url [export_vars -base "../user/portrait/upload" { { return_url [ad_return_url] } }] -set subsite_url [ad_conn vhost_subsite_url] -set pvt_home_url [ad_pvt_home] +## Preferences +set notifications_url [lindex [site_node::get_children -node_id [subsite::get_element -element node_id] -package_key "notifications"] 0] -set allowed_to_change_site_template_p [parameter::get -package_id $dotlrn_package_id -parameter "UserChangeSiteTemplate_p" \ - -default 0] +set allowed_to_change_site_template_p [parameter::get -package_id $dotlrn_package_id -parameter "UserChangeSiteTemplate_p" -default 0] +set site_template_url [export_vars -base "change-site-template" {{referer $return_url}}] -set user_info_template [parameter::get -package_id [ad_conn subsite_id] -parameter UserInfoTemplate -default "/packages/acs-subsite/lib/user-info"] \ No newline at end of file +set invisible_p [whos_online::user_invisible_p [ad_conn untrusted_user_id]] +set make_visible_url "${subsite_url}shared/make-visible" +set make_invisible_url "${subsite_url}shared/make-invisible" +set whos_online_url "${subsite_url}shared/whos-online" Index: openacs-4/packages/dotlrn/www/control-panel.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn/www/control-panel.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn/www/control-panel.xql 8 Aug 2006 21:26:24 -0000 1.2 +++ openacs-4/packages/dotlrn/www/control-panel.xql 3 Apr 2009 12:13:49 -0000 1.3 @@ -3,10 +3,11 @@ - select cr.publish_date, cr.title as portrait_title, cr.description as portrait_description - from cr_revisions cr, cr_items ci, acs_rels a - where cr.revision_id = ci.live_revision - and ci.item_id = a.object_id_two + select cr.publish_date, cr.title as portrait_title, cr.description as portrait_description, i.width, i.height, ci.item_id + from cr_revisions cr, cr_items ci, acs_rels a, images i + where i.image_id = cr.revision_id + and cr.revision_id = ci.live_revision + and ci.item_id = a.object_id_two and a.object_id_one = :user_id and a.rel_type = 'user_portrait_rel'