}
$sexual = notags(trim($_POST['sexual']));
+ $xmpp = notags(trim($_POST['xmpp']));
$homepage = notags(trim($_POST['homepage']));
if ((strpos($homepage, 'http') !== 0) && (strlen($homepage))) {
// neither http nor https in URL, add them
$changes[] = t('Sexual Preference');
$value = $sexual;
}
+ if($xmpp != $orig[0]['xmpp']) {
+ $changes[] = t('XMPP');
+ $value = $xmpp;
+ }
if($homepage != $orig[0]['homepage']) {
$changes[] = t('Homepage');
$value = $homepage;
`with` = '%s',
`howlong` = '%s',
`sexual` = '%s',
+ `xmpp` = '%s',
`homepage` = '%s',
`hometown` = '%s',
`politic` = '%s',
dbesc($with),
dbesc($howlong),
dbesc($sexual),
+ dbesc($xmpp),
dbesc($homepage),
dbesc($hometown),
dbesc($politic),
'$howlong' => array('howlong', t('Since [date]:'), ($r[0]['howlong'] === '0000-00-00 00:00:00' ? '' : datetime_convert('UTC',date_default_timezone_get(),$r[0]['howlong']))),
'$sexual' => sexpref_selector($r[0]['sexual']),
'$about' => array('about', t('Tell us about yourself...'), $r[0]['about']),
+ '$xmpp' => array('xmpp', t('XMPP (Jabber) address:'), $r[0]['xmpp'], t("The XMPP address will be propagated to your contacts so that they can follow you.")),
'$homepage' => array('homepage', t('Homepage URL:'), $r[0]['homepage']),
'$hometown' => array('hometown', t('Hometown:'), $r[0]['hometown']),
'$politic' => array('politic', t('Political Views:'), $r[0]['politic']),