remove "online reputation" section on contact editing - nobody ever uses it, and there is no interface to query it.
This commit is contained in:
parent
454882812e
commit
22d9d97d71
|
@ -87,25 +87,15 @@ function contacts_post(&$a) {
|
||||||
|
|
||||||
|
|
||||||
$priority = intval($_POST['poll']);
|
$priority = intval($_POST['poll']);
|
||||||
if($priority == (-1))
|
|
||||||
|
|
||||||
if($priority > 5 || $priority < 0)
|
if($priority > 5 || $priority < 0)
|
||||||
$priority = 0;
|
$priority = 0;
|
||||||
|
|
||||||
$rating = intval($_POST['reputation']);
|
|
||||||
if($rating > 5 || $rating < 0)
|
|
||||||
$rating = 0;
|
|
||||||
|
|
||||||
$reason = notags(trim($_POST['reason']));
|
|
||||||
|
|
||||||
$info = escape_tags(trim($_POST['info']));
|
$info = escape_tags(trim($_POST['info']));
|
||||||
|
|
||||||
$r = q("UPDATE `contact` SET `profile-id` = %d, `priority` = %d , `rating` = %d, `reason` = '%s', `info` = '%s'
|
$r = q("UPDATE `contact` SET `profile-id` = %d, `priority` = %d , `info` = '%s'
|
||||||
WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($profile_id),
|
intval($profile_id),
|
||||||
intval($priority),
|
intval($priority),
|
||||||
intval($rating),
|
|
||||||
dbesc($reason),
|
|
||||||
dbesc($info),
|
dbesc($info),
|
||||||
intval($contact_id),
|
intval($contact_id),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
|
@ -277,8 +267,6 @@ function contacts_content(&$a) {
|
||||||
$sparkle = '';
|
$sparkle = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$grps = '';
|
|
||||||
|
|
||||||
$insecure = '<div id="profile-edit-insecure"><p><img src="images/unlock_icon.gif" alt="' . t('Privacy Unavailable') . '" /> '
|
$insecure = '<div id="profile-edit-insecure"><p><img src="images/unlock_icon.gif" alt="' . t('Privacy Unavailable') . '" /> '
|
||||||
. t('Private communications are not available for this contact.') . '</p></div>';
|
. t('Private communications are not available for this contact.') . '</p></div>';
|
||||||
|
|
||||||
|
@ -313,7 +301,6 @@ function contacts_content(&$a) {
|
||||||
'$lblcrepair' => t("Repair contact URL settings \x28WARNING: Advanced\x29"),
|
'$lblcrepair' => t("Repair contact URL settings \x28WARNING: Advanced\x29"),
|
||||||
'$lblrecent' => t('View conversations'),
|
'$lblrecent' => t('View conversations'),
|
||||||
'$lblsuggest' => $lblsuggest,
|
'$lblsuggest' => $lblsuggest,
|
||||||
'$grps' => $grps,
|
|
||||||
'$delete' => t('Delete contact'),
|
'$delete' => t('Delete contact'),
|
||||||
'$nettype' => $nettype,
|
'$nettype' => $nettype,
|
||||||
'$poll_interval' => contact_poll_interval($r[0]['priority'],(! $poll_enabled)),
|
'$poll_interval' => contact_poll_interval($r[0]['priority'],(! $poll_enabled)),
|
||||||
|
@ -330,9 +317,6 @@ function contacts_content(&$a) {
|
||||||
'$info' => $r[0]['info'],
|
'$info' => $r[0]['info'],
|
||||||
'$blocked' => (($r[0]['blocked']) ? '<div id="block-message">' . t('Currently blocked') . '</div>' : ''),
|
'$blocked' => (($r[0]['blocked']) ? '<div id="block-message">' . t('Currently blocked') . '</div>' : ''),
|
||||||
'$ignored' => (($r[0]['readonly']) ? '<div id="ignore-message">' . t('Currently ignored') . '</div>' : ''),
|
'$ignored' => (($r[0]['readonly']) ? '<div id="ignore-message">' . t('Currently ignored') . '</div>' : ''),
|
||||||
'$rating' => contact_reputation($r[0]['rating']),
|
|
||||||
'$reason' => $r[0]['reason'],
|
|
||||||
'$groups' => '', // group_selector(),
|
|
||||||
'$photo' => $r[0]['photo'],
|
'$photo' => $r[0]['photo'],
|
||||||
'$name' => $r[0]['name'],
|
'$name' => $r[0]['name'],
|
||||||
'$dir_icon' => $dir_icon,
|
'$dir_icon' => $dir_icon,
|
||||||
|
|
|
@ -45,8 +45,6 @@ $insecure
|
||||||
$blocked
|
$blocked
|
||||||
$ignored
|
$ignored
|
||||||
|
|
||||||
$grps
|
|
||||||
|
|
||||||
<div id="view-recent-wrapper"><a href="network/?cid=$contact_id" id="contact-view-recent">$lblrecent</a></div>
|
<div id="view-recent-wrapper"><a href="network/?cid=$contact_id" id="contact-view-recent">$lblrecent</a></div>
|
||||||
$lblsuggest
|
$lblsuggest
|
||||||
|
|
||||||
|
@ -68,24 +66,5 @@ $profile_select
|
||||||
|
|
||||||
<input class="contact-edit-submit" type="submit" name="submit" value="$submit" />
|
<input class="contact-edit-submit" type="submit" name="submit" value="$submit" />
|
||||||
|
|
||||||
|
|
||||||
<div id="contact-edit-rating-wrapper">
|
|
||||||
<h4>$lbl_rep1</h4>
|
|
||||||
<p>
|
|
||||||
$lbl_rep2 $lbl_rep3
|
|
||||||
</p>
|
|
||||||
<div id="contact-edit-rating-select-wrapper">
|
|
||||||
$rating
|
|
||||||
</div>
|
|
||||||
<div id="contact-edit-rating-explain">
|
|
||||||
<p>
|
|
||||||
$lbl_rep4
|
|
||||||
</p>
|
|
||||||
<textarea id="contact-edit-rating-text" name="reason" rows="3" cols="64" >$reason</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
$groups
|
|
||||||
|
|
||||||
<input class="contact-edit-submit" type="submit" name="submit" value="$submit" />
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue