applications/dashboard/models/class.vbulletinimportmodel.php
public function ProfileExtenderPrep() {
      $ProfileKeyData = $this->SQL->Select('m.Name')->Distinct()->From('UserMeta m')->Like('m.Name', 'Profile_%')->Get();
      $ExistingKeys = array_filter((array)explode(',', C('Plugins.ProfileExtender.ProfileFields', '')));
      foreach ($ProfileKeyData->Result() as $Key) {
         $Name = str_replace('Profile.', '', $Key->Name);
         if (!in_array($Name, $ExistingKeys)) {
            $ExistingKeys[] = $Name;
         }
      }
      if (count($ExistingKeys))
         SaveToConfig('Plugins.ProfileExtender.ProfileFields', implode(',', $ExistingKeys));
   }
public function ProfileExtenderPrep() {
      $ProfileKeyData = $this->SQL->Select('m.Name')->Distinct()->From('UserMeta m')->Like('m.Name', 'Profile_%')->Get();
      $ExistingKeys = array_filter((array)explode(',', C('Plugins.ProfileExtender.ProfileFields', '')));
      foreach ($ProfileKeyData->Result() as $Key) {
         $Name = str_replace('Profile.', '', $Key->Name);
         if (!in_array($Name, $ExistingKeys)) {
            $ExistingKeys[] = $Name;
         }
      }
      if (count($ExistingKeys))
         SaveToConfig('Plugins.ProfileExtender.ProfileFields', implode(',', $ExistingKeys));
   }
public function ProfileExtenderPrep ( ) { $ ProfileKeyData = $ this -> SQL -> Select ( 'm.Name' ) -> Distinct ( ) -> From ( 'UserMeta m' ) -> Like ( 'm.Name' , 'Profile_%' ) -> Get ( ) ; $ ExistingKeys = array_filter ( ( array ) explode ( ',' , C ( 'Plugins.ProfileExtender.ProfileFields' , '' ) ) ) ; foreach ( $ ProfileKeyData -> Result ( ) as $ Key ) { $ Name = str_replace ( 'Profile.' , '' , $ Key -> Name ) ; if ( ! in_array ( $ Name , $ ExistingKeys ) ) { $ ExistingKeys [ ] = $ Name ; } } if ( count ( $ ExistingKeys ) ) SaveToConfig ( 'Plugins.ProfileExtender.ProfileFields' , implode ( ',' , $ ExistingKeys ) ) ; }
Get profile fields imported and add to ProfileFields list.
Get profile fields imported and add to ProfileFields list .