$profile = get_profiledata_by_nick($nick, $a->profile_uid);
- if((x($profile['page-flags']) == 1)
- || (x($profile['page-flags']) == 2)
- || (x($profile['page-flags']) == 5))
- $account_type = page_type_translate($profile['page-flags']);
+ $account_type = account_type($profile);
$tpl = get_markup_template("vcard-widget.tpl");
$vcard_widget .= replace_macros($tpl, array(
- '$name' => $profile[name],
- '$photo' => $profile[photo],
- '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''),
+ '$name' => $profile['name'],
+ '$photo' => $profile['photo'],
+ '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""),
'$account_type' => $account_type,
+ '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""),
));
$albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
if($albums_visible) {
- $o .= '<div id="side-bar-photos-albums" class="widget">';
+ $o .= '<div id="sidebar-photos-albums" class="widget">';
$o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';
$o .= '<ul>';
$drop_id = intval($i[0]['id']);
if($i[0]['visible'])
- proc_run('php',"include/notifier.php","drop","$drop_id");
+ proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
}
}
$can_post = true;
$contact = $r[0];
$remote_contact = true;
- $visitor = $cid;
+ $visitor = $contact_id;
}
}
}