one true profile photo, force nicknames

This commit is contained in:
Mike Macgirvin
2010-07-19 19:09:58 -07:00
parent 6695b4a203
commit c3fd5ed732
16 changed files with 276 additions and 216 deletions

View File

@@ -39,9 +39,10 @@ Please adjust the image cropping for optimum viewing.
</script>
<form action="profile_photo/$profile_id/$resource" id="crop-image-form" method="post" />
<form action="profile_photo/$resource" id="crop-image-form" method="post" />
<input type="hidden" name="imagename" value="$hash" />
<input type="hidden" name="cropfinal" value="1" />
<input type="hidden" name="xstart" id="x1" />
<input type="hidden" name="ystart" id="y1" />
<input type="hidden" name="xfinal" id="x2" />

View File

@@ -2,6 +2,10 @@
<div id="profile-edit-clone-link-wrapper" ><a href="profiles/clone/$profile_id" id="profile-edit-clone-link" title="Create a new profile using these settings">Clone this profile</a></div>
<div id="profile-edit-drop-link-wrapper" ><a href="profiles/drop/$profile_id" id="profile-edit-drop-link" title="Delete this profile" $disabled >Delete this profile</a></div>
<div id="profile-edit-links-end"></div>
$default
<div id="profile-edit-wrapper" >

View File

@@ -1,13 +1,10 @@
<div class="profile-listing" >
<div class="profile-listing-photo-wrapper" >
<a class="profile-listing-photo-edit-link" id="profile-listing-photo-edit-link-$id" title="Edit/Change Profile Photo" href="profile_photo/$id" ><img class="profile-listing-photo" id="profile-listing-photo-$id" src="$photo" alt="Profile Image" /></a>
<a href="profiles/$id" class="profile-listing-edit-link"><img class="profile-listing-photo" id="profile-listing-photo-$id" src="$photo" alt="Profile Image" /></a>
</div>
<div class="profile-listing-photo-end"></div>
<div class="profile-listing-name" id="profile-listing-name-$id">$profile_name</div>
<div class="profile-listing-edit-buttons-wrapper" id="profile-listing-edit-buttons-wrapper-$id">
<a href="profiles/$id" class="profile-listing-edit-link" ><img src="images/b_edit.gif" alt="Edit Profile" title="Edit Profile" /></a>
<a href="profiles/drop/$id" class="profile-listing-drop-link" ><img src="images/b_drop.gif" alt="Delete Profile" title="Delete Profile" /></a>
</div>
</div>
<div class="profile-listing-end"></div>

View File

@@ -1,11 +1,9 @@
<div class="profile-listing" >
<div class="profile-listing-photo-wrapper" >
<a class="profile-listing-photo-edit-link" id="profile-listing-photo-edit-link-$id" title="Edit/Change Profile Photo" href="profile_photo/$id" ><img class="profile-listing-photo" id="profile-listing-photo-$id" src="$photo" alt="Profile Image" /></a>
<a href="profiles/$id" class="profile-listing-edit-link" ><img class="profile-listing-photo" id="profile-listing-photo-$id" src="$photo" alt="Profile Image" /></a>
</div>
<div class="profile-listing-photo-end" ></div>
<div class="profile-listing-name" id="profile-listing-name-$id">$profile_name</div>
<div class="profile-listing-edit-buttons-wrapper" id="profile-listing-edit-buttons-wrapper-$id">
<a href="profiles/$id" class="profile-listing-edit-link" ><img src="images/b_edit.gif" alt="Edit Profile" title="Edit Profile" /></a>
</div>
</div>
<div class="profile-listing-end"></div>

View File

@@ -1,6 +1,6 @@
<h1>Profiles</h1>
<p id="profile-listing-desc" >
Click photo to change profile image or use controls to edit/delete profile details.
<a href="profile_photo" >Change profile photo</a>
</p>
<div id="profile-listing-new-link-wrapper" >
<a href="profiles/new" id="profile-listing-new-link" name="Create New Profile" >Create New Profile</a>

View File

@@ -1,6 +1,6 @@
<h1>Upload Profile Photo</h1>
<form enctype="multipart/form-data" action="profile_photo/$profile_id" method="post">
<form enctype="multipart/form-data" action="profile_photo" method="post">
<div id="profile-photo-upload-wrapper">
<label id="profile-photo-upload-label" for="profile-photo-upload">Upload File: </label>

View File

@@ -1,3 +1,4 @@
<h3>Registration</h3>
<form action="register" method="post" >
$registertext
@@ -6,11 +7,26 @@
<input type="text" maxlength="60" size="32" name="username" id="register-name" value="" >
</div>
<div id="register-name-end" ></div>
<div id="register-email-wrapper" >
<label for="register-email" id="label-register-email" >Your Email Address: </label>
<input type="text" maxlength="60" size="32" name="email" id="register-email" value="" >
</div>
<div id="register-email-end" ></div>
<p id="register-nickname-desc" >
You will use a unique nickname to identify yourself in our social network. This must begin with a text character.
Your profile identifier will then be '<strong>nickname@$sitename</strong>'.
</p>
<div id="register-nickname-wrapper" >
<label for="register-nickname" id="label-register-nickname" >Choose a nickname: </label>
<input type="text" maxlength="60" size="32" name="nickname" id="register-nickname" value="" ><div id="register-sitename">@$sitename</div>
</div>
<div id="register-nickname-end" ></div>
<div id="register-submit-wrapper">
<input type="submit" name="submit" id="register-submit-button" value="Register" />
</div>

View File

@@ -102,24 +102,32 @@ footer {
margin-right: 20px;
}
#label-register-name, #label-register-email {
#label-register-name, #label-register-email, #label-register-nickname {
float: left;
width: 350px;
margin-top: 10px;
}
#register-name, #register-email {
#register-name, #register-email, #register-nickname {
float: left;
margin-top: 10px;
width: 150px;
}
#register-name-end, #register-email-end, #register-submit-end {
#register-name-end, #register-email-end, #register-nickname-end, #register-submit-end {
clear: both;
}
#register-nickname-desc {
margin-top: 30px;
width: 650px;
}
#register-sitename {
float: left;
margin-top: 10px;
}
#register-submit-button {
margin-top: 10px;
margin-top: 50px;
margin-left: 350px;
}
@@ -275,8 +283,22 @@ input#dfrn-url {
}
#profile-edit-clone-link-wrapper {
float: left;
margin-left: 50px;
margin-bottom: 20px;
width: 300px;
}
#profile-edit-drop-link-wrapper {
float: left;
}
#profile-edit-links-end {
clear: both;
}
.profile-listing-photo {
border: none;
}
.profile-edit-submit-wrapper {
@@ -494,7 +516,12 @@ input#dfrn-url {
margin-bottom: 30px;
}
#profile-listing-desc {
margin-left: 30px;
}
#profile-listing-new-link-wrapper {
margin-left: 30px;
margin-bottom: 30px;
}
.profile-listing-photo-wrapper {
@@ -520,7 +547,12 @@ input#dfrn-url {
}
.profile-listing-name {
float: left;
margin-left: 32px;
margin-top: 10px;
color: #3172BD;
font-weight: bold;
width: 200px;
}
.fortune {
margin-top: 50px;