<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [2386] trunk/bp-themes: Fixes #1612</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2386</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2010-01-21 09:41:15 +0000 (Thu, 21 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fixes #1612</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpdefaultmemberssingleprofilechangeavatarphp">trunk/bp-themes/bp-default/members/single/profile/change-avatar.php</a></li>
<li><a href="#trunkbpthemesbpsnparentprofilechangeavatarphp">trunk/bp-themes/bp-sn-parent/profile/change-avatar.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpdefaultmemberssingleprofilechangeavatarphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/profile/change-avatar.php (2385 => 2386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/profile/change-avatar.php        2010-01-21 09:31:13 UTC (rev 2385)
+++ trunk/bp-themes/bp-default/members/single/profile/change-avatar.php        2010-01-21 09:41:15 UTC (rev 2386)
</span><span class="lines">@@ -2,51 +2,59 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php do_action( 'bp_before_profile_avatar_upload_content' ) ?&gt;
</span><span class="cx"> 
</span><del>-&lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?&gt;&lt;/p&gt;
</del><ins>+&lt;?php if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;avatar-upload-form&quot; enctype=&quot;multipart/form-data&quot;&gt;
</del><ins>+        &lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-        &lt;?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?&gt;
</del><ins>+        &lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;avatar-upload-form&quot; enctype=&quot;multipart/form-data&quot;&gt;
</ins><span class="cx"> 
</span><del>-                &lt;p&gt;&lt;?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?&gt;&lt;/p&gt;
</del><ins>+                &lt;?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;p id=&quot;avatar-upload&quot;&gt;
-                        &lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot; /&gt;
-                        &lt;input type=&quot;submit&quot; name=&quot;upload&quot; id=&quot;upload&quot; value=&quot;&lt;?php _e( 'Upload Image', 'buddypress' ) ?&gt;&quot; /&gt;
-                        &lt;input type=&quot;hidden&quot; name=&quot;action&quot; id=&quot;action&quot; value=&quot;bp_avatar_upload&quot; /&gt;
-                &lt;/p&gt;
</del><ins>+                        &lt;p&gt;&lt;?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                &lt;?php if ( bp_get_user_has_avatar() ) : ?&gt;
-                        &lt;p&gt;&lt;?php _e( &quot;If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.&quot;, 'buddypress' ) ?&gt;&lt;/p&gt;
-                        &lt;p&gt;&lt;a class=&quot;button edit&quot; href=&quot;&lt;?php bp_avatar_delete_link() ?&gt;&quot; title=&quot;&lt;?php _e( 'Delete Avatar', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Delete My Avatar', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/p&gt;
</del><ins>+                        &lt;p id=&quot;avatar-upload&quot;&gt;
+                                &lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot; /&gt;
+                                &lt;input type=&quot;submit&quot; name=&quot;upload&quot; id=&quot;upload&quot; value=&quot;&lt;?php _e( 'Upload Image', 'buddypress' ) ?&gt;&quot; /&gt;
+                                &lt;input type=&quot;hidden&quot; name=&quot;action&quot; id=&quot;action&quot; value=&quot;bp_avatar_upload&quot; /&gt;
+                        &lt;/p&gt;
+
+                        &lt;?php if ( bp_get_user_has_avatar() ) : ?&gt;
+                                &lt;p&gt;&lt;?php _e( &quot;If you'd like to delete your current avatar but not upload a new one, please use the delete avatar button.&quot;, 'buddypress' ) ?&gt;&lt;/p&gt;
+                                &lt;p&gt;&lt;a class=&quot;button edit&quot; href=&quot;&lt;?php bp_avatar_delete_link() ?&gt;&quot; title=&quot;&lt;?php _e( 'Delete Avatar', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Delete My Avatar', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/p&gt;
+                        &lt;?php endif; ?&gt;
+
+                        &lt;?php wp_nonce_field( 'bp_avatar_upload' ) ?&gt;
+
</ins><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;?php wp_nonce_field( 'bp_avatar_upload' ) ?&gt;
</del><ins>+                &lt;?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?&gt;
</ins><span class="cx"> 
</span><del>-        &lt;?php endif; ?&gt;
</del><ins>+                        &lt;h3&gt;&lt;?php _e( 'Crop Your New Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-        &lt;?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?&gt;
</del><ins>+                        &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-to-crop&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar to crop', 'buddypress' ) ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                &lt;h3&gt;&lt;?php _e( 'Crop Your New Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</del><ins>+                        &lt;div id=&quot;avatar-crop-pane&quot;&gt;
+                                &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-crop-preview&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar preview', 'buddypress' ) ?&gt;&quot; /&gt;
+                        &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-to-crop&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar to crop', 'buddypress' ) ?&gt;&quot; /&gt;
</del><ins>+                        &lt;input type=&quot;submit&quot; name=&quot;avatar-crop-submit&quot; id=&quot;avatar-crop-submit&quot; value=&quot;&lt;?php _e( 'Crop Image', 'buddypress' ) ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                &lt;div id=&quot;avatar-crop-pane&quot;&gt;
-                        &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-crop-preview&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar preview', 'buddypress' ) ?&gt;&quot; /&gt;
-                &lt;/div&gt;
</del><ins>+                        &lt;input type=&quot;hidden&quot; name=&quot;image_src&quot; id=&quot;image_src&quot; value=&quot;&lt;?php bp_avatar_to_crop_src() ?&gt;&quot; /&gt;
+                        &lt;input type=&quot;hidden&quot; id=&quot;x&quot; name=&quot;x&quot; /&gt;
+                        &lt;input type=&quot;hidden&quot; id=&quot;y&quot; name=&quot;y&quot; /&gt;
+                        &lt;input type=&quot;hidden&quot; id=&quot;w&quot; name=&quot;w&quot; /&gt;
+                        &lt;input type=&quot;hidden&quot; id=&quot;h&quot; name=&quot;h&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                &lt;input type=&quot;submit&quot; name=&quot;avatar-crop-submit&quot; id=&quot;avatar-crop-submit&quot; value=&quot;&lt;?php _e( 'Crop Image', 'buddypress' ) ?&gt;&quot; /&gt;
</del><ins>+                        &lt;?php wp_nonce_field( 'bp_avatar_cropstore' ) ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;input type=&quot;hidden&quot; name=&quot;image_src&quot; id=&quot;image_src&quot; value=&quot;&lt;?php bp_avatar_to_crop_src() ?&gt;&quot; /&gt;
-                &lt;input type=&quot;hidden&quot; id=&quot;x&quot; name=&quot;x&quot; /&gt;
-                &lt;input type=&quot;hidden&quot; id=&quot;y&quot; name=&quot;y&quot; /&gt;
-                &lt;input type=&quot;hidden&quot; id=&quot;w&quot; name=&quot;w&quot; /&gt;
-                &lt;input type=&quot;hidden&quot; id=&quot;h&quot; name=&quot;h&quot; /&gt;
</del><ins>+                &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;?php wp_nonce_field( 'bp_avatar_cropstore' ) ?&gt;
</del><ins>+        &lt;/form&gt;
</ins><span class="cx"> 
</span><del>-        &lt;?php endif; ?&gt;
</del><ins>+&lt;?php else : ?&gt;
</ins><span class="cx"> 
</span><del>-&lt;/form&gt;
</del><ins>+        &lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; using the same email address as you used to register with this site.', 'buddypress' ) ?&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><ins>+&lt;?php endif; ?&gt;
+
</ins><span class="cx"> &lt;?php do_action( 'bp_after_profile_avatar_upload_content' ) ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpsnparentprofilechangeavatarphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-parent/profile/change-avatar.php (2385 => 2386)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-parent/profile/change-avatar.php        2010-01-21 09:31:13 UTC (rev 2385)
+++ trunk/bp-themes/bp-sn-parent/profile/change-avatar.php        2010-01-21 09:41:15 UTC (rev 2386)
</span><span class="lines">@@ -12,63 +12,71 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php do_action( 'bp_before_profile_avatar_upload_content' ) ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?&gt;&lt;/p&gt;
</del><ins>+                &lt;?php if ( !(int)get_site_option( 'bp-disable-avatar-uploads' ) ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;avatar-upload-form&quot; enctype=&quot;multipart/form-data&quot;&gt;
</del><ins>+                        &lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?&gt;
</del><ins>+                        &lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;avatar-upload-form&quot; enctype=&quot;multipart/form-data&quot;&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;h3&gt;&lt;?php _e( 'Your Current Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</del><ins>+                                &lt;?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;p id=&quot;current-avatar&quot;&gt;
-                                        &lt;?php bp_displayed_user_avatar( 'type=full') ?&gt;
-                                        &lt;?php bp_displayed_user_avatar( 'type=thumb' ) ?&gt;
-                                &lt;/p&gt;
</del><ins>+                                        &lt;h3&gt;&lt;?php _e( 'Your Current Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;?php if ( bp_get_user_has_avatar() ) : ?&gt;
-                                        &lt;div class=&quot;generic-button&quot; id=&quot;delete-avatar-button&quot;&gt;
-                                                &lt;a class=&quot;edit&quot; href=&quot;&lt;?php bp_avatar_delete_link() ?&gt;&quot; title=&quot;&lt;?php _e( 'Delete Avatar', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Delete Avatar', 'buddypress' ) ?&gt;&lt;/a&gt;
-                                        &lt;/div&gt;
-                                &lt;?php endif; ?&gt;
</del><ins>+                                        &lt;p id=&quot;current-avatar&quot;&gt;
+                                                &lt;?php bp_displayed_user_avatar( 'type=full') ?&gt;
+                                                &lt;?php bp_displayed_user_avatar( 'type=thumb' ) ?&gt;
+                                        &lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;h3&gt;&lt;?php _e( 'Upload a New Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</del><ins>+                                        &lt;?php if ( bp_get_user_has_avatar() ) : ?&gt;
+                                                &lt;div class=&quot;generic-button&quot; id=&quot;delete-avatar-button&quot;&gt;
+                                                        &lt;a class=&quot;edit&quot; href=&quot;&lt;?php bp_avatar_delete_link() ?&gt;&quot; title=&quot;&lt;?php _e( 'Delete Avatar', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Delete Avatar', 'buddypress' ) ?&gt;&lt;/a&gt;
+                                                &lt;/div&gt;
+                                        &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;p&gt;&lt;?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?&gt;&lt;/p&gt;
</del><ins>+                                        &lt;h3&gt;&lt;?php _e( 'Upload a New Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;p id=&quot;avatar-upload&quot;&gt;
-                                        &lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot; /&gt;
-                                        &lt;input type=&quot;submit&quot; name=&quot;upload&quot; id=&quot;upload&quot; value=&quot;&lt;?php _e( 'Upload Image', 'buddypress' ) ?&gt;&quot; /&gt;
-                                        &lt;input type=&quot;hidden&quot; name=&quot;action&quot; id=&quot;action&quot; value=&quot;bp_avatar_upload&quot; /&gt;
-                                &lt;/p&gt;
</del><ins>+                                        &lt;p&gt;&lt;?php _e( 'Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Image\' to proceed.', 'buddypress' ) ?&gt;&lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;?php wp_nonce_field( 'bp_avatar_upload' ) ?&gt;
</del><ins>+                                        &lt;p id=&quot;avatar-upload&quot;&gt;
+                                                &lt;input type=&quot;file&quot; name=&quot;file&quot; id=&quot;file&quot; /&gt;
+                                                &lt;input type=&quot;submit&quot; name=&quot;upload&quot; id=&quot;upload&quot; value=&quot;&lt;?php _e( 'Upload Image', 'buddypress' ) ?&gt;&quot; /&gt;
+                                                &lt;input type=&quot;hidden&quot; name=&quot;action&quot; id=&quot;action&quot; value=&quot;bp_avatar_upload&quot; /&gt;
+                                        &lt;/p&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;?php endif; ?&gt;
</del><ins>+                                        &lt;?php wp_nonce_field( 'bp_avatar_upload' ) ?&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?&gt;
</del><ins>+                                &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;h3&gt;&lt;?php _e( 'Crop Your New Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</del><ins>+                                &lt;?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-to-crop&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar to crop', 'buddypress' ) ?&gt;&quot; /&gt;
</del><ins>+                                        &lt;h3&gt;&lt;?php _e( 'Crop Your New Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;div id=&quot;avatar-crop-pane&quot;&gt;
-                                        &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-crop-preview&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar preview', 'buddypress' ) ?&gt;&quot; /&gt;
-                                &lt;/div&gt;
</del><ins>+                                        &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-to-crop&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar to crop', 'buddypress' ) ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;input type=&quot;submit&quot; name=&quot;avatar-crop-submit&quot; id=&quot;avatar-crop-submit&quot; value=&quot;&lt;?php _e( 'Crop Image', 'buddypress' ) ?&gt;&quot; /&gt;
</del><ins>+                                        &lt;div id=&quot;avatar-crop-pane&quot;&gt;
+                                                &lt;img src=&quot;&lt;?php bp_avatar_to_crop() ?&gt;&quot; id=&quot;avatar-crop-preview&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Avatar preview', 'buddypress' ) ?&gt;&quot; /&gt;
+                                        &lt;/div&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;input type=&quot;hidden&quot; name=&quot;image_src&quot; id=&quot;image_src&quot; value=&quot;&lt;?php bp_avatar_to_crop_src() ?&gt;&quot; /&gt;
-                                &lt;input type=&quot;hidden&quot; id=&quot;x&quot; name=&quot;x&quot; /&gt;
-                                &lt;input type=&quot;hidden&quot; id=&quot;y&quot; name=&quot;y&quot; /&gt;
-                                &lt;input type=&quot;hidden&quot; id=&quot;w&quot; name=&quot;w&quot; /&gt;
-                                &lt;input type=&quot;hidden&quot; id=&quot;h&quot; name=&quot;h&quot; /&gt;
</del><ins>+                                        &lt;input type=&quot;submit&quot; name=&quot;avatar-crop-submit&quot; id=&quot;avatar-crop-submit&quot; value=&quot;&lt;?php _e( 'Crop Image', 'buddypress' ) ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;?php wp_nonce_field( 'bp_avatar_cropstore' ) ?&gt;
</del><ins>+                                        &lt;input type=&quot;hidden&quot; name=&quot;image_src&quot; id=&quot;image_src&quot; value=&quot;&lt;?php bp_avatar_to_crop_src() ?&gt;&quot; /&gt;
+                                        &lt;input type=&quot;hidden&quot; id=&quot;x&quot; name=&quot;x&quot; /&gt;
+                                        &lt;input type=&quot;hidden&quot; id=&quot;y&quot; name=&quot;y&quot; /&gt;
+                                        &lt;input type=&quot;hidden&quot; id=&quot;w&quot; name=&quot;w&quot; /&gt;
+                                        &lt;input type=&quot;hidden&quot; id=&quot;h&quot; name=&quot;h&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                        &lt;?php endif; ?&gt;
</del><ins>+                                        &lt;?php wp_nonce_field( 'bp_avatar_cropstore' ) ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;/form&gt;
</del><ins>+                                &lt;?php endif; ?&gt;
</ins><span class="cx"> 
</span><ins>+                        &lt;/form&gt;
+
+                &lt;?php else : ?&gt;
+
+                        &lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. To change your avatar, please create an account with &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; using the same email address as you used to register with this site.', 'buddypress' ) ?&gt;&lt;/p&gt;
+
+                &lt;?php endif; ?&gt;
+
</ins><span class="cx">                 &lt;?php do_action( 'bp_after_profile_avatar_upload_content' ) ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;/div&gt;
</span></span></pre>
</div>
</div>

</body>
</html>