User homepage/URL is now displayed on user pages
authorDan
Fri, 15 May 2009 15:56:25 -0400
changeset 986 aa6f26d96577
parent 985 4ecf46e5eeab
child 987 b13a42ebaefb
User homepage/URL is now displayed on user pages
includes/namespaces/user.php
language/english/user.json
--- a/includes/namespaces/user.php	Fri May 15 15:56:10 2009 -0400
+++ b/includes/namespaces/user.php	Fri May 15 15:56:25 2009 -0400
@@ -338,6 +338,12 @@
         echo '<tr><td class="'.$class.'">' . $lang->get('userpage_lbl_email') . ' ' . $email_link . '</td></tr>';
       }
       
+      if ( !empty($userdata['user_homepage']) )
+      {
+        $class = ( $class == 'row1' ) ? 'row3' : 'row1';
+        echo '<tr><td class="' . $class . '">' . $lang->get('userpage_lbl_homepage') . '<br /><a href="' . $userdata['user_homepage'] . '">' . $userdata['user_homepage'] . '</a></td></tr>';
+      }
+      
       $class = ( $class == 'row1' ) ? 'row3' : 'row1';
       if ( $session->user_logged_in )
       {
--- a/language/english/user.json	Fri May 15 15:56:10 2009 -0400
+++ b/language/english/user.json	Fri May 15 15:56:25 2009 -0400
@@ -649,6 +649,7 @@
       msg_no_comments: 'This user has not posted any comments.',
       heading_contact: 'Get in touch',
       lbl_email: 'E-mail address:',
+      lbl_homepage: 'Website:',
       btn_send_pm: 'Send %username% a <a href="%pm_link%">Private Message!</a>',
       btn_send_pm_guest: 'You could send %username% a Private Message if you were <a %login_flags%>logged in</a>.',
       lbl_aim: 'AIM:',