Browse Source

some fixes after cloning to a new site

tags/2.1
Mike Macgirvin 10 years ago
parent
commit
dea552b74f
5 changed files with 17 additions and 6 deletions
  1. +2
    -2
      mod/item.php
  2. +12
    -2
      mod/profile_photo.php
  3. +1
    -1
      mod/profiles.php
  4. +1
    -1
      view/profile_edit.tpl
  5. +1
    -0
      view/sidenote.tpl

+ 2
- 2
mod/item.php View File

@@ -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");


+ 12
- 2
mod/profile_photo.php View File

@@ -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');


+ 1
- 1
mod/profiles.php View File

@@ -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(


+ 1
- 1
view/profile_edit.tpl View File

@@ -18,7 +18,7 @@ $default
<div id="profile-edit-name-end"></div>

<div id="profile-edit-gender-wrapper" >
<label id="profile-edit-gender-label" for="profile-edit-" >Your Gender: </label>
<label id="profile-edit-gender-label" for="gender-select" >Your Gender: </label>
$gender
</div>
<div id="profile-edit-gender-end"></div>


+ 1
- 0
view/sidenote.tpl View File

@@ -14,4 +14,5 @@ Write something

</div>
<div id="sidenote-end"></div>
</form>
</div>

Loading…
Cancel
Save