From 9848b01be937643f79b518246cabfb0d8600e4be Mon Sep 17 00:00:00 2001 From: pete Date: Wed, 9 Jul 2008 12:23:54 +0000 Subject: new avatar crop page and instructions git-svn-id: https://code.elgg.org/elgg/trunk@1354 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/editicon.php | 135 ++++++++++++++++++++++++++++++++++++++----- mod/profile/languages/en.php | 16 ++--- views/default/css.php | 50 ++++++++++++++++ 3 files changed, 179 insertions(+), 22 deletions(-) diff --git a/mod/profile/editicon.php b/mod/profile/editicon.php index 3dc10cc21..0ab550eee 100644 --- a/mod/profile/editicon.php +++ b/mod/profile/editicon.php @@ -1,29 +1,134 @@ + * @author Curverider * @copyright Curverider Ltd 2008 * @link http://elgg.com/ + * + * @uses $vars['entity'] The user entity + * @uses $vars['profile'] Profile items from $CONFIG->profile, defined in profile/start.php for now */ - // Load the Elgg framework - require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - - // Make sure we're logged in - if (!isloggedin()) forward(); +?> + + + +

+ +
- // set title - $area1 = elgg_view_title(elgg_echo('profile:createicon:header')); - $area1 .= elgg_view("profile/editicon"); + + username . "/medium/" . $_SESSION['user']->icontime . ".jpg"; + echo "\"avatar\""; + + ?> + +
+ +
+
+


+ + 'profileicon')); - // Draw the page - page_draw(elgg_echo("profile:editicon"),$body); + ?> +
" /> +

+
+
+ +
+
+

+username . "/master/" . $_SESSION['user']->icontime . ".jpg"; + +?> +

+ + +

+<?php echo elgg_echo(" /> +

+ +
+ +
+ + + + + + " /> +
+ +
+
-?> \ No newline at end of file diff --git a/mod/profile/languages/en.php b/mod/profile/languages/en.php index e9d96e79d..4da311ab1 100644 --- a/mod/profile/languages/en.php +++ b/mod/profile/languages/en.php @@ -21,12 +21,14 @@ 'profile:user' => "%s's profile", 'profile:edit' => "Edit profile", - 'profile:editicon' => "Change your profile picture", - 'profile:icon' => "Profile icon", + 'profile:editicon' => "Upload a new profile picture", + 'profile:profilepictureinstructions' => "The profile picture is the image that's displayed on your profile page.
You can change it as often as you'd like. (File formats accepted: GIF, JPG or PNG)", + 'profile:icon' => "Profile picture", 'profile:createicon' => "Create your avatar", - 'profile:currentavatar' => "Your current avatar", - 'profile:createicon:header' => "Upload your profile picture", - 'profile:createicon:instructions' => "Click and drag to crop your main profile photo into a cool avatar", + 'profile:currentavatar' => "Current avatar", + 'profile:createicon:header' => "Profile picture", + 'profile:profilepicturecroppingtool' => "Profile picture cropping tool", + 'profile:createicon:instructions' => "Click and drag a square below to match how you want your picture cropped. A preview of your cropped picture will appear in the box on the right. When you are happy with the preview, click 'Create your avatar'. This cropped image will be used throughout the site as your avatar. ", 'profile:aboutme' => "About me", 'profile:description' => "About me", @@ -45,7 +47,7 @@ */ 'profile:saved' => "Your profile was successfully saved.", - 'profile:icon:uploaded' => "Your profile icon was successfully uploaded.", + 'profile:icon:uploaded' => "Your profile picture was successfully uploaded.", /** * Error messages @@ -54,7 +56,7 @@ 'profile:noaccess' => "You do not have permission to edit this profile.", 'profile:notfound' => "Sorry; we could not find the specified profile.", 'profile:cantedit' => "Sorry; you do not have permission to edit this profile.", - 'profile:icon:notfound' => "Sorry; there was a problem uploading your profile icon.", + 'profile:icon:notfound' => "Sorry; there was a problem uploading your profile picture.", ); diff --git a/views/default/css.php b/views/default/css.php index 99d8c4f82..7c4b1210e 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -1254,6 +1254,56 @@ table.search_gallery { padding:0 0 0 14px; margin:0; } + +/* page titles */ +#canvas_header { + margin:0 0 20px 0; + padding:0 0 5px 0; + border-bottom:1px solid #4690d6; +} + +#canvas_header #canvas_header_content h2 { + + +} + +/* profile picture upload n crop page */ +#profile_picture_form { + height:145px; +} +#current_user_avatar { + float:left; + width:160px; + height:130px; + border-right:1px solid #cccccc; + margin:0 20px 0 0; +} +#profile_picture_croppingtool { + border-top: 1px solid #cccccc; + margin:20px 0 0 0; + padding:10px 0 0 0; +} +#profile_picture_croppingtool #user_avatar { + float: left; + margin-right: 20px; +} +#profile_picture_croppingtool #applycropping { + +} +#profile_picture_croppingtool #user_avatar_preview { + float: left; + position: relative; + overflow: hidden; + width: 100px; + height: 100px; +} + + + + + + + \ No newline at end of file -- cgit v1.2.3