Modifying user view to display correct gender In Drupal 7.21 with ulogin 7.x-1.10 I get following records in the database for male (having sex=2 in the JSON array below) and female (they have sex=1) users:

  5 | 25583 | facebook      | 597287941             | a:7:{s:3:"sex";s:1:"2";s:7:"profile";s:32:"http://www.facebook.com/farber72";s:3:"uid";s:9:"59728
7941";s:10:"first_name";s:9:"Alexander";s:8:"identity";s:32:"http://www.facebook.com/farber72";s:7:"network";s:8:"facebook";s:5:"photo";s:55:"http://gr
aph.facebook.com/597287941/picture?type=square";}

 10 | 25593 | mailru        | 6189724215193505959   | a:8:{s:7:"network";s:6:"mailru";s:8:"identity";s:36:"http://my.mail.ru/mail/masaeva_alla/";s:3:"u
id";s:19:"6189724215193505959";s:10:"first_name";s:27:"\320\220\320\273\320\273\320\260 \320\220\320\275\320\264\321\200\320\265\320\265\320\262\320\27
5\320\260";s:3:"sex";s:1:"1";s:4:"city";s:31:"\320\222\320\265\320\273\320\270\320\272\320\270\320\271 \320\235\320\276\320\262\320\263\320\276\321\200
\320\276\320\264";s:5:"photo";s:48:"http://avt.appsmail.ru/mail/masaeva_alla/_avatar";s:7:"profile";s:36:"http://my.mail.ru/mail/masaeva_alla/";}


And I have this part in my own custom Drupal module:

function pref_user_view($account, $view_mode, $langcode) {
  global $PREFIX;

  $ulogin = @$account-&gt;data['ulogin'];
  if (isset($ulogin) &amp;&amp; is_array($ulogin) &amp;&amp; array_key_exists($ulogin['network'], $PREFIX)) {
          $uid    = $ulogin['uid'];
          $city   = $ulogin['city'];
          $prefix = $PREFIX[$ulogin['network']];
  } else {
          $uid    = $account-&gt;uid;
          $city   = $account-&gt;field_city['und'][0]['safe_value'];
          $prefix = 'DE';
  }

  $account-&gt;content['stats'] =  array(
    '#type'   =&gt; 'user_profile_item',
    '#title'  =&gt; t('Досье:'),
    '#weight' =&gt; 3,
    '#markup' =&gt; sprintf('&lt;a href="/%s"&gt;Статистика игр и репутация&lt;/a&gt;', $prefix . $uid),
  );
  $account-&gt;content['map'] =  array(
    '#type'   =&gt; 'user_profile_item',
    '#title'  =&gt; t('Карта:'),
    '#weight' =&gt; 4,
    '#markup' =&gt; sprintf('&lt;img width=320 height=240 alt="Карта" src="%s&amp;markers=%s&amp;size=320x240" style="%s"&gt;',
      MAPS_URL, urlencode($city), AVATAR_STYLE),
  );
}


This produces the following user page with wrong gender:



I realise that my question is very chaotic and apologize for the Russian language content here - but I had developed my module over a year ago and don't remember it well.

How could I fix the gender displayed above, do you have any ideas, suggestions?

Please give me a kick start.
Have you checked your Manage fields to make sure your select options are correct?

1|Female
2|Male


Your custom code doesn't do anything with the gender so I'm not quite sure why you posted it.

Also I would verify if you have english to russian translation going on that they map correctly to the right english version.