plugins/ProfileExtender/class.profileextender.plugin.php
private function ProfileFields($Sender) {
      // Retrieve user's existing profile fields
      $this->ProfileFields = $this->GetProfileFields();

      // Get user-specific data
      $this->UserFields = Gdn::UserModel()->GetMeta($Sender->Data("User.UserID"), 'Profile.%', 'Profile.');

      // Fill in user data on form
      foreach ($this->UserFields as $Field => $Value) {
         $Sender->Form->SetValue($Field, $Value);
      }

      include($this->GetView('profilefields.php'));
   }
private function ProfileFields($Sender) {
      // Retrieve user's existing profile fields
      $this->ProfileFields = $this->GetProfileFields();

      // Get user-specific data
      $this->UserFields = Gdn::UserModel()->GetMeta($Sender->Data("User.UserID"), 'Profile.%', 'Profile.');

      // Fill in user data on form
      foreach ($this->UserFields as $Field => $Value) {
         $Sender->Form->SetValue($Field, $Value);
      }

      include($this->GetView('profilefields.php'));
   }
private function ProfileFields ( $ Sender ) { // Retrieve user's existing profile fields $ this -> ProfileFields = $ this -> GetProfileFields ( ) ; // Get user-specific data $ this -> UserFields = Gdn :: UserModel ( ) -> GetMeta ( $ Sender -> Data ( "User.UserID" ) , 'Profile.%' , 'Profile.' ) ; // Fill in user data on form foreach ( $ this -> UserFields as $ Field => $ Value ) { $ Sender -> Form -> SetValue ( $ Field , $ Value ) ; } include ( $ this -> GetView ( 'profilefields.php' ) ) ; }
Display custom profile fields on form.

@access private
Display custom profile fields on form .