show y/o in General Info

Hello, can someone tell me how can add years old in General information in Profile view?

Quote · 19 Sep 2009

Hi there,

 

I found this free mod on expertzzz for displaying y/o insted of dob.  In the modern climate with identity fraud would be better.  Hope this helps

 

===================================== INSTALLATION ====================================

IMPORTANT !!!!!!!
Always backup your files before installing any mod.

---------------------------------------------------------------------------------------

In templates/base/scripts/BxBaseProfileView.php

In function showBlockPFBlock,
       
 STEP 1-------------------------------------------------
 Find :
  
  foreach( $aItems as $aItem ) {
   $sValue1 = $this -> oPF -> getViewableValue( $aItem, $this -> _aProfile[ $aItem['Name'] ] );
   if( !$sValue1 ) //if empty, do not draw
    continue;

 Just below, Add :
 
   
   if($aItem['Name'] == "DateOfBirth")
   {
 
    $sRet .= '<tr>';
    $sRet .=         '<td class="profile_info_label">' . _t( "_Age" ) . ':</td>';
   
    $ageValue1 = age($sValue1);
    if( $this -> bCouple ) {
     if( in_array( $aItem['Name'], $this -> aCoupleMutualItems ) ) {
      $sRet .= '<td class="profile_info_value" colspan="2">' . $ageValue1 . '</td>';
     } else {
      $sValue2 = $this -> oPF -> getViewableValue( $aItem, $this -> _aCouple[ $aItem['Name'] ] );

      $ageValue2 = age($sValue2);
      
      $sRet .= '<td class="profile_info_value1">' . $ageValue1 . '</td>';
      $sRet .= '<td class="profile_info_value2">' . $ageValue2 . '</td>';
     }
    } else {
     $sRet .=     '<td class="profile_info_value" >' . $ageValue1 . '</td>';
    }

   }else{


 STEP 2-------------------------------------------------
 Find :

  $sRet .= '</tr>';
 
 Just above, Add :
 
  }
 
---------------------------------------- END -----------------------------------------------------------

Professional Installation is available (See http://www.expertzzz.com/Downloadz/view/2550) and will usually be done within 24 hours of notification

If you have any issues please contact me immediately at dolphinmods@gmail.com

I am also available for paid dolphin customisation and custom development.

Quote · 21 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.