Commit e576e104 by Scott Vivian

Update user profile page to include exact join date

parent adc56dfb
......@@ -166,6 +166,7 @@
'search_title' => 'Search results',
'selected' => 'selected',
'send_button' => 'Send',
'since_x' => 'since ^',
'suggest_ask' => 'Help get things started by ^1asking a question^2.',
'suggest_category_qs' => 'To see more, click for all the ^1questions in this category^2.',
'suggest_qs_tags' => 'To see more, click for the ^1full list of questions^2 or ^3popular tags^4.',
......
......@@ -355,6 +355,9 @@
// General information about the user, only available if we're using internal user management
if (!QA_FINAL_EXTERNAL_USERS) {
$membertime = qa_time_to_string(qa_opt('db_time')-$useraccount['created']);
$joindate = qa_when_to_html($useraccount['created'], 0);
$qa_content['form_profile']=array(
'tags' => 'method="post" action="'.qa_self_html().'"',
......@@ -375,7 +378,7 @@
'duration' => array(
'type' => 'static',
'label' => qa_lang_html('users/member_for'),
'value' => qa_html(qa_time_to_string(qa_opt('db_time')-$useraccount['created'])),
'value' => qa_html( $membertime . ' (' . qa_lang_sub('main/since_x', $joindate['data']) . ')' ),
'id' => 'duration',
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment