content['user_picture']['#weight'] = -21; // Keep the picture at the top like normal $account->content['summary']['#weight'] = -20; // Keep the summary next to the picture $account->content['summary']['#title'] = NULL; // If not NULL, two titles would show up (see line 46 below) $account->content['summary']['member_for']['#title'] = t('Membro da'); $account->content['summary']['member_for']['#weight'] = -19; $account->content['summary']['member_for']['#value'] = check_plain(strftime('%B %Y', $account->created)); $hrsnow = time(); $hrsago = $hrsnow - 300; $hrsago1 = $hrsnow - 1500; $hrsago2 = $hrsago1 - 3600; $hrsago3 = $hrsago2 - 7200; $hrsago4 = $hrsago3 - 10800; if ($hrsago <= $account->access) { $altppimgdir = base_path(); $altppimgdir .= drupal_get_path('module', 'alterprofilepage'); $altppimgdir .= '/online.gif'; $altppurltxt = t('@name รจ online!', array('@name' => $account->name)); $altppalttxt = t('Online'); $lastlogintime = ''. $altppalttxt .''; } elseif ($hrsago1 <= $account->access) { $lastlogintime = t('Meno di mezzora fa'); } elseif ($hrsago2 <= $account->access) { $lastlogintime = t("Circa un'ora fa"); } elseif ($hrsago3 <= $account->access) { $lastlogintime = t('Poche ore fa'); } elseif ($hrsago4 <= $account->access) { $lastlogintime = t('Molte ore fa'); } else { $lastlogintime = strftime('%d/%m/%y', $account->access); } $account->content['summary']['last_access'] = array( '#type' => 'user_profile_item', '#title' => t('Last login'), '#value' => $lastlogintime, '#weight' => -18, ); $titolo=explode('-',$account->name); //drupal_set_title(t('Profilo di @user', array('@user' => $account->name))); drupal_set_title(t('Profilo di '.$titolo[0])); }