diff --git a/mod/item.php b/mod/item.php index 1c1fd50294..2b03ecaa2f 100644 --- a/mod/item.php +++ b/mod/item.php @@ -58,10 +58,10 @@ function item_post(&$a) { intval($post_id)); } - require('notifier.php'); +// require('notifier.php'); - notifier(&$a,$post_id,$parent); +// notifier($a,$post_id,$parent); } goaway($a->get_baseurl() . "/profile/$profile_uid"); diff --git a/mod/profile_photo.php b/mod/profile_photo.php index f7e6825ae7..8b536c2aa9 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -88,9 +88,19 @@ function profile_photo_post(&$a) { $r = q("UPDATE `profile` SET `photo` = '%s', `thumb` = '%s' WHERE `id` = %d LIMIT 1", dbesc($a->get_baseurl() . '/photo/' . $image_id . '-4.jpg'), dbesc($a->get_baseurl() . '/photo/' . $image_id . '-5.jpg'), - intval($profile_id)); - if($r === NULL) + intval($profile_id) + ); + if($r === false) $_SESSION['sysmsg'] .= "Failed to add image to profile." . EOL; +// We should really only do this if requested, or if it is the default profile. The contact +//table images are used in coversations. + $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s' WHERE `uid` = %d AND `self` = 1 LIMIT 1", + dbesc($a->get_baseurl() . '/photo/' . $image_id . '-4.jpg'), + dbesc($a->get_baseurl() . '/photo/' . $image_id . '-5.jpg'), + intval($_SESSION['uid']) + ); + if($r ===false) + notice("Failed to add photo to contact table." .EOL ); } goaway($a->get_baseurl() . '/profiles'); diff --git a/mod/profiles.php b/mod/profiles.php index cba358a67f..a8b6858d79 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -138,7 +138,7 @@ function profiles_content(&$a) { $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl())); - $a->page['aside'] = file_get_contents('view/sidenote.tpl'); +// $a->page['aside'] = file_get_contents('view/sidenote.tpl'); $is_default = (($r[0]['is-default']) ? 1 : 0); $tpl = file_get_contents("view/profile_edit.tpl"); $o .= replace_macros($tpl,array( diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl index 25fc6fd4e4..d895a6b482 100644 --- a/view/profile_edit.tpl +++ b/view/profile_edit.tpl @@ -18,7 +18,7 @@ $default
- + $gender
diff --git a/view/sidenote.tpl b/view/sidenote.tpl index dbc120cc00..44d34bf2a2 100644 --- a/view/sidenote.tpl +++ b/view/sidenote.tpl @@ -14,4 +14,5 @@ Write something
+