From d8d6f9adbd8a88d5db77dbdee07d7210651620bc Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 28 Jul 2010 21:02:36 -0700 Subject: [PATCH] profile editor cleanups --- mod/profile.php | 7 ++++++- view/profile_edit.tpl | 16 ++++++++++------ view/style.css | 9 +++++++++ 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/mod/profile.php b/mod/profile.php index b63ec72..07c5357 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -57,7 +57,12 @@ function profile_init(&$a) { unset($_SESSION['authenticated']); } - profile_load($a,$which); + $profile = 0; + if((local_user()) && ($a->argc > 2) && ($a->argv[2] == 'view')) { + $which = $a->user['nickname']; + $profile = $a->argv[1]; + } + profile_load($a,$which,$profile); $a->page['htmlhead'] .= "get_baseurl() . "/profile/%s" . "\" />\r\n"; $dfrn_pages = array('request', 'confirm', 'notify', 'poll'); diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl index 20b9a09..44ca392 100644 --- a/view/profile_edit.tpl +++ b/view/profile_edit.tpl @@ -1,8 +1,14 @@

Edit Profile Details

- + @@ -36,6 +42,8 @@ $dob $age
+$profile_in_dir + $hide_friends
@@ -118,10 +126,6 @@ $sexual
- -$profile_in_dir - -
diff --git a/view/style.css b/view/style.css index fa0f948..8b67be0 100644 --- a/view/style.css +++ b/view/style.css @@ -300,10 +300,19 @@ input#dfrn-url { list-style-type: none; } + #profile-extra-links li { margin-top: 5px; } +#profile-edit-links ul { + list-style-type: none; +} + +#profile-edit-links li { + margin-top: 10px; +} + .view-contact-wrapper { margin-top: 20px; float: left;