rev update + multiple profile photos

This commit is contained in:
friendica 2012-09-11 18:51:17 -07:00
parent fa65db9aa1
commit a8d12061ca
5 changed files with 150 additions and 78 deletions

View file

@ -11,7 +11,7 @@ require_once('include/cache.php');
require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('library/Mobile_Detect/Mobile_Detect.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.0.1462' ); define ( 'FRIENDICA_VERSION', '3.0.1463' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1154 ); define ( 'DB_UPDATE_VERSION', 1154 );

View file

@ -24,6 +24,20 @@ function profile_photo_post(&$a) {
if((x($_POST,'cropfinal')) && ($_POST['cropfinal'] == 1)) { if((x($_POST,'cropfinal')) && ($_POST['cropfinal'] == 1)) {
// unless proven otherwise
$is_default_profile = 1;
if($_REQUEST['profile']) {
$r = q("select id, `is-default` from profile where id = %d and uid = %d limit 1",
intval($_REQUEST['profile']),
intval(local_user())
);
if(count($r) && (! intval($r[0]['is-default'])))
$is_default_profile = 0;
}
// phase 2 - we have finished cropping // phase 2 - we have finished cropping
if($a->argc != 2) { if($a->argc != 2) {
@ -57,31 +71,44 @@ function profile_photo_post(&$a) {
if($im->is_valid()) { if($im->is_valid()) {
$im->cropImage(175,$srcX,$srcY,$srcW,$srcH); $im->cropImage(175,$srcX,$srcY,$srcW,$srcH);
$r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 4, 1); $r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 4, $is_default_profile);
if($r === false) if($r === false)
notice ( sprintf(t('Image size reduction [%s] failed.'),"175") . EOL ); notice ( sprintf(t('Image size reduction [%s] failed.'),"175") . EOL );
$im->scaleImage(80); $im->scaleImage(80);
$r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 5, 1); $r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 5, $is_default_profile);
if($r === false) if($r === false)
notice( sprintf(t('Image size reduction [%s] failed.'),"80") . EOL ); notice( sprintf(t('Image size reduction [%s] failed.'),"80") . EOL );
$im->scaleImage(48); $im->scaleImage(48);
$r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 6, 1); $r = $im->store(local_user(), 0, $base_image['resource-id'],$base_image['filename'], t('Profile Photos'), 6, $is_default_profile);
if($r === false) if($r === false)
notice( sprintf(t('Image size reduction [%s] failed.'),"48") . EOL ); notice( sprintf(t('Image size reduction [%s] failed.'),"48") . EOL );
// Unset the profile photo flag from any other photos I own // If setting for the default profile, unset the profile photo flag from any other photos I own
$r = q("UPDATE `photo` SET `profile` = 0 WHERE `profile` = 1 AND `resource-id` != '%s' AND `uid` = %d", if($is_default_profile) {
dbesc($base_image['resource-id']), $r = q("UPDATE `photo` SET `profile` = 0 WHERE `profile` = 1 AND `resource-id` != '%s' AND `uid` = %d",
intval(local_user()) dbesc($base_image['resource-id']),
); intval(local_user())
);
}
else {
$r = q("update profile set photo = '%s', thumb = '%s' where id = %d and uid = %d limit 1",
dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-4'),
dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-5'),
intval($_REQUEST['profile']),
intval(local_user())
);
}
// we'll set the updated profile-photo timestamp even if it isn't the default profile,
// so that browsers will do a cache update unconditionally
$r = q("UPDATE `contact` SET `avatar-date` = '%s' WHERE `self` = 1 AND `uid` = %d LIMIT 1", $r = q("UPDATE `contact` SET `avatar-date` = '%s' WHERE `self` = 1 AND `uid` = %d LIMIT 1",
dbesc(datetime_convert()), dbesc(datetime_convert()),
@ -201,6 +228,11 @@ function profile_photo_content(&$a) {
// go ahead as we have jus uploaded a new photo to crop // go ahead as we have jus uploaded a new photo to crop
} }
$profiles = q("select `id`,`profile-name` as `name`,`is-default` as `default` from profile where uid = %d",
intval(local_user())
);
if(! x($a->config,'imagecrop')) { if(! x($a->config,'imagecrop')) {
$tpl = get_markup_template('profile_photo.tpl'); $tpl = get_markup_template('profile_photo.tpl');
@ -208,8 +240,10 @@ function profile_photo_content(&$a) {
$o .= replace_macros($tpl,array( $o .= replace_macros($tpl,array(
'$user' => $a->user['nickname'], '$user' => $a->user['nickname'],
'$lbl_upfile' => t('Upload File:'), '$lbl_upfile' => t('Upload File:'),
'$lbl_profiles' => t('Select a profile:'),
'$title' => t('Upload Profile Photo'), '$title' => t('Upload Profile Photo'),
'$submit' => t('Upload'), '$submit' => t('Upload'),
'$profiles' => $profiles,
'$form_security_token' => get_form_security_token("profile_photo"), '$form_security_token' => get_form_security_token("profile_photo"),
'$select' => sprintf('%s %s', t('or'), ($newuser) ? '<a href="' . $a->get_baseurl() . '">' . t('skip this step') . '</a>' : '<a href="'. $a->get_baseurl() . '/photos/' . $a->user['nickname'] . '">' . t('select a photo from your photo albums') . '</a>') '$select' => sprintf('%s %s', t('or'), ($newuser) ? '<a href="' . $a->get_baseurl() . '">' . t('skip this step') . '</a>' : '<a href="'. $a->get_baseurl() . '/photos/' . $a->user['nickname'] . '">' . t('select a photo from your photo albums') . '</a>')
)); ));
@ -222,6 +256,7 @@ function profile_photo_content(&$a) {
$tpl = get_markup_template("cropbody.tpl"); $tpl = get_markup_template("cropbody.tpl");
$o .= replace_macros($tpl,array( $o .= replace_macros($tpl,array(
'$filename' => $filename, '$filename' => $filename,
'$profile' => intval($_REQUEST['profile']),
'$resource' => $a->config['imagecrop'] . '-' . $a->config['imagecrop_resolution'], '$resource' => $a->config['imagecrop'] . '-' . $a->config['imagecrop_resolution'],
'$image_url' => $a->get_baseurl() . '/photo/' . $filename, '$image_url' => $a->get_baseurl() . '/photo/' . $filename,
'$title' => t('Crop Image'), '$title' => t('Crop Image'),
@ -236,7 +271,7 @@ function profile_photo_content(&$a) {
}} }}
if(! function_exists('_crop_ui_head')) { if(! function_exists('profile_photo_crop_ui_head')) {
function profile_photo_crop_ui_head(&$a, $ph){ function profile_photo_crop_ui_head(&$a, $ph){
$max_length = get_config('system','max_image_length'); $max_length = get_config('system','max_image_length');
if(! $max_length) if(! $max_length)

View file

@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 3.0.1462\n" "Project-Id-Version: 3.0.1463\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-09-10 10:00-0700\n" "POT-Creation-Date: 2012-09-11 10:00-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -57,8 +57,8 @@ msgstr ""
#: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81 #: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81
#: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:510 #: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:510
#: ../../addon/facebook/facebook.php:516 #: ../../addon/facebook/facebook.php:516
#: ../../addon/dav/friendica/layout.fnk.php:354 ../../include/items.php:3834 #: ../../addon/dav/friendica/layout.fnk.php:354 ../../include/items.php:3844
#: ../../index.php:315 #: ../../index.php:317
msgid "Permission denied." msgid "Permission denied."
msgstr "" msgstr ""
@ -175,7 +175,7 @@ msgstr ""
#: ../../view/theme/diabook/theme.php:757 #: ../../view/theme/diabook/theme.php:757
#: ../../view/theme/diabook/config.php:190 #: ../../view/theme/diabook/config.php:190
#: ../../view/theme/quattro/config.php:52 ../../view/theme/dispy/config.php:70 #: ../../view/theme/quattro/config.php:52 ../../view/theme/dispy/config.php:70
#: ../../include/conversation.php:591 #: ../../include/conversation.php:591 ../../object/Item.php:532
msgid "Submit" msgid "Submit"
msgstr "" msgstr ""
@ -188,11 +188,11 @@ msgstr ""
msgid "Help" msgid "Help"
msgstr "" msgstr ""
#: ../../mod/help.php:38 ../../index.php:224 #: ../../mod/help.php:38 ../../index.php:226
msgid "Not Found" msgid "Not Found"
msgstr "" msgstr ""
#: ../../mod/help.php:41 ../../index.php:227 #: ../../mod/help.php:41 ../../index.php:229
msgid "Page not found." msgid "Page not found."
msgstr "" msgstr ""
@ -535,7 +535,7 @@ msgid "Use as profile photo"
msgstr "" msgstr ""
#: ../../mod/photos.php:1224 ../../mod/content.php:601 #: ../../mod/photos.php:1224 ../../mod/content.php:601
#: ../../include/conversation.php:428 #: ../../include/conversation.php:428 ../../object/Item.php:103
msgid "Private Message" msgid "Private Message"
msgstr "" msgstr ""
@ -576,16 +576,16 @@ msgid "Example: @bob, @Barbara_Jensen, @jim@example.com, #California, #camping"
msgstr "" msgstr ""
#: ../../mod/photos.php:1356 ../../mod/content.php:665 #: ../../mod/photos.php:1356 ../../mod/content.php:665
#: ../../include/conversation.php:565 #: ../../include/conversation.php:565 ../../object/Item.php:185
msgid "I like this (toggle)" msgid "I like this (toggle)"
msgstr "" msgstr ""
#: ../../mod/photos.php:1357 ../../mod/content.php:666 #: ../../mod/photos.php:1357 ../../mod/content.php:666
#: ../../include/conversation.php:566 #: ../../include/conversation.php:566 ../../object/Item.php:186
msgid "I don't like this (toggle)" msgid "I don't like this (toggle)"
msgstr "" msgstr ""
#: ../../mod/photos.php:1358 ../../include/conversation.php:1195 #: ../../mod/photos.php:1358 ../../include/conversation.php:1214
msgid "Share" msgid "Share"
msgstr "" msgstr ""
@ -593,25 +593,27 @@ msgstr ""
#: ../../mod/content.php:482 ../../mod/content.php:843 #: ../../mod/content.php:482 ../../mod/content.php:843
#: ../../mod/wallmessage.php:152 ../../mod/message.php:293 #: ../../mod/wallmessage.php:152 ../../mod/message.php:293
#: ../../mod/message.php:481 ../../include/conversation.php:659 #: ../../mod/message.php:481 ../../include/conversation.php:659
#: ../../include/conversation.php:891 ../../include/conversation.php:1214 #: ../../include/conversation.php:891 ../../include/conversation.php:1233
#: ../../object/Item.php:237
msgid "Please wait" msgid "Please wait"
msgstr "" msgstr ""
#: ../../mod/photos.php:1375 ../../mod/photos.php:1416 #: ../../mod/photos.php:1375 ../../mod/photos.php:1416
#: ../../mod/photos.php:1448 ../../mod/content.php:688 #: ../../mod/photos.php:1448 ../../mod/content.php:688
#: ../../include/conversation.php:588 #: ../../include/conversation.php:588 ../../object/Item.php:529
msgid "This is you" msgid "This is you"
msgstr "" msgstr ""
#: ../../mod/photos.php:1377 ../../mod/photos.php:1418 #: ../../mod/photos.php:1377 ../../mod/photos.php:1418
#: ../../mod/photos.php:1450 ../../mod/content.php:690 #: ../../mod/photos.php:1450 ../../mod/content.php:690
#: ../../include/conversation.php:590 ../../boot.php:574 #: ../../include/conversation.php:590 ../../boot.php:574
#: ../../object/Item.php:531
msgid "Comment" msgid "Comment"
msgstr "" msgstr ""
#: ../../mod/photos.php:1379 ../../mod/editpost.php:133 #: ../../mod/photos.php:1379 ../../mod/editpost.php:133
#: ../../mod/content.php:700 ../../include/conversation.php:600 #: ../../mod/content.php:700 ../../include/conversation.php:600
#: ../../include/conversation.php:1232 #: ../../include/conversation.php:1251 ../../object/Item.php:541
msgid "Preview" msgid "Preview"
msgstr "" msgstr ""
@ -619,6 +621,7 @@ msgstr ""
#: ../../mod/content.php:721 ../../mod/settings.php:606 #: ../../mod/content.php:721 ../../mod/settings.php:606
#: ../../mod/settings.php:695 ../../mod/group.php:168 ../../mod/admin.php:694 #: ../../mod/settings.php:695 ../../mod/group.php:168 ../../mod/admin.php:694
#: ../../include/conversation.php:440 ../../include/conversation.php:847 #: ../../include/conversation.php:440 ../../include/conversation.php:847
#: ../../object/Item.php:116
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
@ -684,28 +687,29 @@ msgstr ""
msgid "Edit post" msgid "Edit post"
msgstr "" msgstr ""
#: ../../mod/editpost.php:88 ../../include/conversation.php:1181 #: ../../mod/editpost.php:88 ../../include/conversation.php:1200
msgid "Post to Email" msgid "Post to Email"
msgstr "" msgstr ""
#: ../../mod/editpost.php:103 ../../mod/content.php:708 #: ../../mod/editpost.php:103 ../../mod/content.php:708
#: ../../mod/settings.php:605 ../../include/conversation.php:433 #: ../../mod/settings.php:605 ../../include/conversation.php:433
#: ../../object/Item.php:107
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
#: ../../mod/editpost.php:104 ../../mod/wallmessage.php:150 #: ../../mod/editpost.php:104 ../../mod/wallmessage.php:150
#: ../../mod/message.php:291 ../../mod/message.php:478 #: ../../mod/message.php:291 ../../mod/message.php:478
#: ../../include/conversation.php:1196 #: ../../include/conversation.php:1215
msgid "Upload photo" msgid "Upload photo"
msgstr "" msgstr ""
#: ../../mod/editpost.php:105 ../../include/conversation.php:1198 #: ../../mod/editpost.php:105 ../../include/conversation.php:1217
msgid "Attach file" msgid "Attach file"
msgstr "" msgstr ""
#: ../../mod/editpost.php:106 ../../mod/wallmessage.php:151 #: ../../mod/editpost.php:106 ../../mod/wallmessage.php:151
#: ../../mod/message.php:292 ../../mod/message.php:479 #: ../../mod/message.php:292 ../../mod/message.php:479
#: ../../include/conversation.php:1200 #: ../../include/conversation.php:1219
msgid "Insert web link" msgid "Insert web link"
msgstr "" msgstr ""
@ -721,35 +725,35 @@ msgstr ""
msgid "Insert Vorbis [.ogg] audio" msgid "Insert Vorbis [.ogg] audio"
msgstr "" msgstr ""
#: ../../mod/editpost.php:110 ../../include/conversation.php:1206 #: ../../mod/editpost.php:110 ../../include/conversation.php:1225
msgid "Set your location" msgid "Set your location"
msgstr "" msgstr ""
#: ../../mod/editpost.php:111 ../../include/conversation.php:1208 #: ../../mod/editpost.php:111 ../../include/conversation.php:1227
msgid "Clear browser location" msgid "Clear browser location"
msgstr "" msgstr ""
#: ../../mod/editpost.php:113 ../../include/conversation.php:1215 #: ../../mod/editpost.php:113 ../../include/conversation.php:1234
msgid "Permission settings" msgid "Permission settings"
msgstr "" msgstr ""
#: ../../mod/editpost.php:121 ../../include/conversation.php:1224 #: ../../mod/editpost.php:121 ../../include/conversation.php:1243
msgid "CC: email addresses" msgid "CC: email addresses"
msgstr "" msgstr ""
#: ../../mod/editpost.php:122 ../../include/conversation.php:1225 #: ../../mod/editpost.php:122 ../../include/conversation.php:1244
msgid "Public post" msgid "Public post"
msgstr "" msgstr ""
#: ../../mod/editpost.php:125 ../../include/conversation.php:1211 #: ../../mod/editpost.php:125 ../../include/conversation.php:1230
msgid "Set title" msgid "Set title"
msgstr "" msgstr ""
#: ../../mod/editpost.php:127 ../../include/conversation.php:1213 #: ../../mod/editpost.php:127 ../../include/conversation.php:1232
msgid "Categories (comma-separated list)" msgid "Categories (comma-separated list)"
msgstr "" msgstr ""
#: ../../mod/editpost.php:128 ../../include/conversation.php:1227 #: ../../mod/editpost.php:128 ../../include/conversation.php:1246
msgid "Example: bob@example.com, mary@example.com" msgid "Example: bob@example.com, mary@example.com"
msgstr "" msgstr ""
@ -870,7 +874,7 @@ msgstr ""
msgid "Confirm" msgid "Confirm"
msgstr "" msgstr ""
#: ../../mod/dfrn_request.php:715 ../../include/items.php:3213 #: ../../mod/dfrn_request.php:715 ../../include/items.php:3223
msgid "[Name Withheld]" msgid "[Name Withheld]"
msgstr "" msgstr ""
@ -1292,18 +1296,21 @@ msgstr ""
#: ../../mod/content.php:438 ../../mod/content.php:720 #: ../../mod/content.php:438 ../../mod/content.php:720
#: ../../include/conversation.php:439 ../../include/conversation.php:846 #: ../../include/conversation.php:439 ../../include/conversation.php:846
#: ../../object/Item.php:115
msgid "Select" msgid "Select"
msgstr "" msgstr ""
#: ../../mod/content.php:455 ../../mod/content.php:813 #: ../../mod/content.php:455 ../../mod/content.php:813
#: ../../mod/content.php:814 ../../include/conversation.php:627 #: ../../mod/content.php:814 ../../include/conversation.php:627
#: ../../include/conversation.php:628 ../../include/conversation.php:863 #: ../../include/conversation.php:628 ../../include/conversation.php:863
#: ../../object/Item.php:206 ../../object/Item.php:207
#, php-format #, php-format
msgid "View %s's profile @ %s" msgid "View %s's profile @ %s"
msgstr "" msgstr ""
#: ../../mod/content.php:465 ../../mod/content.php:825 #: ../../mod/content.php:465 ../../mod/content.php:825
#: ../../include/conversation.php:641 ../../include/conversation.php:874 #: ../../include/conversation.php:641 ../../include/conversation.php:874
#: ../../object/Item.php:219
#, php-format #, php-format
msgid "%s from %s" msgid "%s from %s"
msgstr "" msgstr ""
@ -1313,6 +1320,7 @@ msgid "View in context"
msgstr "" msgstr ""
#: ../../mod/content.php:586 ../../include/conversation.php:668 #: ../../mod/content.php:586 ../../include/conversation.php:668
#: ../../object/Item.php:256
#, php-format #, php-format
msgid "%d comment" msgid "%d comment"
msgid_plural "%d comments" msgid_plural "%d comments"
@ -1322,91 +1330,112 @@ msgstr[1] ""
#: ../../mod/content.php:587 ../../addon/page/page.php:76 #: ../../mod/content.php:587 ../../addon/page/page.php:76
#: ../../addon/page/page.php:110 ../../addon/showmore/showmore.php:119 #: ../../addon/page/page.php:110 ../../addon/showmore/showmore.php:119
#: ../../include/contact_widgets.php:195 ../../include/conversation.php:669 #: ../../include/contact_widgets.php:195 ../../include/conversation.php:669
#: ../../boot.php:575 #: ../../boot.php:575 ../../object/Item.php:257
msgid "show more" msgid "show more"
msgstr "" msgstr ""
#: ../../mod/content.php:665 ../../include/conversation.php:565 #: ../../mod/content.php:665 ../../include/conversation.php:565
#: ../../object/Item.php:185
msgid "like" msgid "like"
msgstr "" msgstr ""
#: ../../mod/content.php:666 ../../include/conversation.php:566 #: ../../mod/content.php:666 ../../include/conversation.php:566
#: ../../object/Item.php:186
msgid "dislike" msgid "dislike"
msgstr "" msgstr ""
#: ../../mod/content.php:668 ../../include/conversation.php:568 #: ../../mod/content.php:668 ../../include/conversation.php:568
#: ../../object/Item.php:188
msgid "Share this" msgid "Share this"
msgstr "" msgstr ""
#: ../../mod/content.php:668 ../../include/conversation.php:568 #: ../../mod/content.php:668 ../../include/conversation.php:568
#: ../../object/Item.php:188
msgid "share" msgid "share"
msgstr "" msgstr ""
#: ../../mod/content.php:692 ../../include/conversation.php:592 #: ../../mod/content.php:692 ../../include/conversation.php:592
#: ../../object/Item.php:533
msgid "Bold" msgid "Bold"
msgstr "" msgstr ""
#: ../../mod/content.php:693 ../../include/conversation.php:593 #: ../../mod/content.php:693 ../../include/conversation.php:593
#: ../../object/Item.php:534
msgid "Italic" msgid "Italic"
msgstr "" msgstr ""
#: ../../mod/content.php:694 ../../include/conversation.php:594 #: ../../mod/content.php:694 ../../include/conversation.php:594
#: ../../object/Item.php:535
msgid "Underline" msgid "Underline"
msgstr "" msgstr ""
#: ../../mod/content.php:695 ../../include/conversation.php:595 #: ../../mod/content.php:695 ../../include/conversation.php:595
#: ../../object/Item.php:536
msgid "Quote" msgid "Quote"
msgstr "" msgstr ""
#: ../../mod/content.php:696 ../../include/conversation.php:596 #: ../../mod/content.php:696 ../../include/conversation.php:596
#: ../../object/Item.php:537
msgid "Code" msgid "Code"
msgstr "" msgstr ""
#: ../../mod/content.php:697 ../../include/conversation.php:597 #: ../../mod/content.php:697 ../../include/conversation.php:597
#: ../../object/Item.php:538
msgid "Image" msgid "Image"
msgstr "" msgstr ""
#: ../../mod/content.php:698 ../../include/conversation.php:598 #: ../../mod/content.php:698 ../../include/conversation.php:598
#: ../../object/Item.php:539
msgid "Link" msgid "Link"
msgstr "" msgstr ""
#: ../../mod/content.php:699 ../../include/conversation.php:599 #: ../../mod/content.php:699 ../../include/conversation.php:599
#: ../../object/Item.php:540
msgid "Video" msgid "Video"
msgstr "" msgstr ""
#: ../../mod/content.php:733 ../../include/conversation.php:529 #: ../../mod/content.php:733 ../../include/conversation.php:529
#: ../../object/Item.php:169
msgid "add star" msgid "add star"
msgstr "" msgstr ""
#: ../../mod/content.php:734 ../../include/conversation.php:530 #: ../../mod/content.php:734 ../../include/conversation.php:530
#: ../../object/Item.php:170
msgid "remove star" msgid "remove star"
msgstr "" msgstr ""
#: ../../mod/content.php:735 ../../include/conversation.php:531 #: ../../mod/content.php:735 ../../include/conversation.php:531
#: ../../object/Item.php:171
msgid "toggle star status" msgid "toggle star status"
msgstr "" msgstr ""
#: ../../mod/content.php:738 ../../include/conversation.php:534 #: ../../mod/content.php:738 ../../include/conversation.php:534
#: ../../object/Item.php:174
msgid "starred" msgid "starred"
msgstr "" msgstr ""
#: ../../mod/content.php:739 ../../include/conversation.php:535 #: ../../mod/content.php:739 ../../include/conversation.php:535
#: ../../object/Item.php:175
msgid "add tag" msgid "add tag"
msgstr "" msgstr ""
#: ../../mod/content.php:743 ../../include/conversation.php:443 #: ../../mod/content.php:743 ../../include/conversation.php:443
#: ../../object/Item.php:119
msgid "save to folder" msgid "save to folder"
msgstr "" msgstr ""
#: ../../mod/content.php:815 ../../include/conversation.php:629 #: ../../mod/content.php:815 ../../include/conversation.php:629
#: ../../object/Item.php:208
msgid "to" msgid "to"
msgstr "" msgstr ""
#: ../../mod/content.php:816 ../../include/conversation.php:630 #: ../../mod/content.php:816 ../../include/conversation.php:630
#: ../../object/Item.php:209
msgid "Wall-to-Wall" msgid "Wall-to-Wall"
msgstr "" msgstr ""
#: ../../mod/content.php:817 ../../include/conversation.php:631 #: ../../mod/content.php:817 ../../include/conversation.php:631
#: ../../object/Item.php:210
msgid "via Wall-To-Wall:" msgid "via Wall-To-Wall:"
msgstr "" msgstr ""
@ -1924,7 +1953,7 @@ msgstr ""
#: ../../addon/facebook/facebook.php:702 #: ../../addon/facebook/facebook.php:702
#: ../../addon/facebook/facebook.php:1200 #: ../../addon/facebook/facebook.php:1200
#: ../../addon/public_server/public_server.php:62 #: ../../addon/public_server/public_server.php:62
#: ../../addon/testdrive/testdrive.php:67 ../../include/items.php:3222 #: ../../addon/testdrive/testdrive.php:67 ../../include/items.php:3232
#: ../../boot.php:788 #: ../../boot.php:788
msgid "Administrator" msgid "Administrator"
msgstr "" msgstr ""
@ -2655,7 +2684,7 @@ msgstr ""
#: ../../mod/wallmessage.php:123 ../../mod/wallmessage.php:131 #: ../../mod/wallmessage.php:123 ../../mod/wallmessage.php:131
#: ../../mod/message.php:242 ../../mod/message.php:250 #: ../../mod/message.php:242 ../../mod/message.php:250
#: ../../include/conversation.php:1132 ../../include/conversation.php:1149 #: ../../include/conversation.php:1151 ../../include/conversation.php:1168
msgid "Please enter a link URL:" msgid "Please enter a link URL:"
msgstr "" msgstr ""
@ -2907,7 +2936,7 @@ msgstr ""
msgid "Group name changed." msgid "Group name changed."
msgstr "" msgstr ""
#: ../../mod/group.php:72 ../../mod/profperm.php:19 ../../index.php:314 #: ../../mod/group.php:72 ../../mod/profperm.php:19 ../../index.php:316
msgid "Permission denied" msgid "Permission denied"
msgstr "" msgstr ""
@ -3081,7 +3110,7 @@ msgstr ""
#: ../../mod/notice.php:15 ../../mod/viewsrc.php:15 ../../mod/admin.php:159 #: ../../mod/notice.php:15 ../../mod/viewsrc.php:15 ../../mod/admin.php:159
#: ../../mod/admin.php:731 ../../mod/admin.php:930 ../../mod/display.php:29 #: ../../mod/admin.php:731 ../../mod/admin.php:930 ../../mod/display.php:29
#: ../../mod/display.php:145 ../../include/items.php:3700 #: ../../mod/display.php:145 ../../include/items.php:3710
msgid "Item not found." msgid "Item not found."
msgstr "" msgstr ""
@ -4372,8 +4401,8 @@ msgstr ""
msgid "Edit visibility" msgid "Edit visibility"
msgstr "" msgstr ""
#: ../../mod/filer.php:29 ../../include/conversation.php:1136 #: ../../mod/filer.php:29 ../../include/conversation.php:1155
#: ../../include/conversation.php:1153 #: ../../include/conversation.php:1172
msgid "Save to Folder:" msgid "Save to Folder:"
msgstr "" msgstr ""
@ -8308,15 +8337,15 @@ msgstr ""
msgid "following" msgid "following"
msgstr "" msgstr ""
#: ../../include/items.php:3220 #: ../../include/items.php:3230
msgid "A new person is sharing with you at " msgid "A new person is sharing with you at "
msgstr "" msgstr ""
#: ../../include/items.php:3220 #: ../../include/items.php:3230
msgid "You have a new follower at " msgid "You have a new follower at "
msgstr "" msgstr ""
#: ../../include/items.php:3901 #: ../../include/items.php:3911
msgid "Archives" msgid "Archives"
msgstr "" msgstr ""
@ -8410,34 +8439,34 @@ msgstr ""
msgid "stopped following" msgid "stopped following"
msgstr "" msgstr ""
#: ../../include/Contact.php:220 ../../include/conversation.php:1033 #: ../../include/Contact.php:220 ../../include/conversation.php:1052
msgid "Poke" msgid "Poke"
msgstr "" msgstr ""
#: ../../include/Contact.php:221 ../../include/conversation.php:1027 #: ../../include/Contact.php:221 ../../include/conversation.php:1046
msgid "View Status" msgid "View Status"
msgstr "" msgstr ""
#: ../../include/Contact.php:222 ../../include/conversation.php:1028 #: ../../include/Contact.php:222 ../../include/conversation.php:1047
msgid "View Profile" msgid "View Profile"
msgstr "" msgstr ""
#: ../../include/Contact.php:223 ../../include/conversation.php:1029 #: ../../include/Contact.php:223 ../../include/conversation.php:1048
msgid "View Photos" msgid "View Photos"
msgstr "" msgstr ""
#: ../../include/Contact.php:224 ../../include/Contact.php:237 #: ../../include/Contact.php:224 ../../include/Contact.php:237
#: ../../include/conversation.php:1030 #: ../../include/conversation.php:1049
msgid "Network Posts" msgid "Network Posts"
msgstr "" msgstr ""
#: ../../include/Contact.php:225 ../../include/Contact.php:237 #: ../../include/Contact.php:225 ../../include/Contact.php:237
#: ../../include/conversation.php:1031 #: ../../include/conversation.php:1050
msgid "Edit Contact" msgid "Edit Contact"
msgstr "" msgstr ""
#: ../../include/Contact.php:226 ../../include/Contact.php:237 #: ../../include/Contact.php:226 ../../include/Contact.php:237
#: ../../include/conversation.php:1032 #: ../../include/conversation.php:1051
msgid "Send PM" msgid "Send PM"
msgstr "" msgstr ""
@ -8455,106 +8484,106 @@ msgstr ""
msgid "%1$s marked %2$s's %3$s as favorite" msgid "%1$s marked %2$s's %3$s as favorite"
msgstr "" msgstr ""
#: ../../include/conversation.php:933 #: ../../include/conversation.php:952
msgid "Delete Selected Items" msgid "Delete Selected Items"
msgstr "" msgstr ""
#: ../../include/conversation.php:1091 #: ../../include/conversation.php:1110
#, php-format #, php-format
msgid "%s likes this." msgid "%s likes this."
msgstr "" msgstr ""
#: ../../include/conversation.php:1091 #: ../../include/conversation.php:1110
#, php-format #, php-format
msgid "%s doesn't like this." msgid "%s doesn't like this."
msgstr "" msgstr ""
#: ../../include/conversation.php:1095 #: ../../include/conversation.php:1114
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> like this." msgid "<span %1$s>%2$d people</span> like this."
msgstr "" msgstr ""
#: ../../include/conversation.php:1097 #: ../../include/conversation.php:1116
#, php-format #, php-format
msgid "<span %1$s>%2$d people</span> don't like this." msgid "<span %1$s>%2$d people</span> don't like this."
msgstr "" msgstr ""
#: ../../include/conversation.php:1103 #: ../../include/conversation.php:1122
msgid "and" msgid "and"
msgstr "" msgstr ""
#: ../../include/conversation.php:1106 #: ../../include/conversation.php:1125
#, php-format #, php-format
msgid ", and %d other people" msgid ", and %d other people"
msgstr "" msgstr ""
#: ../../include/conversation.php:1107 #: ../../include/conversation.php:1126
#, php-format #, php-format
msgid "%s like this." msgid "%s like this."
msgstr "" msgstr ""
#: ../../include/conversation.php:1107 #: ../../include/conversation.php:1126
#, php-format #, php-format
msgid "%s don't like this." msgid "%s don't like this."
msgstr "" msgstr ""
#: ../../include/conversation.php:1131 ../../include/conversation.php:1148 #: ../../include/conversation.php:1150 ../../include/conversation.php:1167
msgid "Visible to <strong>everybody</strong>" msgid "Visible to <strong>everybody</strong>"
msgstr "" msgstr ""
#: ../../include/conversation.php:1133 ../../include/conversation.php:1150 #: ../../include/conversation.php:1152 ../../include/conversation.php:1169
msgid "Please enter a video link/URL:" msgid "Please enter a video link/URL:"
msgstr "" msgstr ""
#: ../../include/conversation.php:1134 ../../include/conversation.php:1151 #: ../../include/conversation.php:1153 ../../include/conversation.php:1170
msgid "Please enter an audio link/URL:" msgid "Please enter an audio link/URL:"
msgstr "" msgstr ""
#: ../../include/conversation.php:1135 ../../include/conversation.php:1152 #: ../../include/conversation.php:1154 ../../include/conversation.php:1171
msgid "Tag term:" msgid "Tag term:"
msgstr "" msgstr ""
#: ../../include/conversation.php:1137 ../../include/conversation.php:1154 #: ../../include/conversation.php:1156 ../../include/conversation.php:1173
msgid "Where are you right now?" msgid "Where are you right now?"
msgstr "" msgstr ""
#: ../../include/conversation.php:1197 #: ../../include/conversation.php:1216
msgid "upload photo" msgid "upload photo"
msgstr "" msgstr ""
#: ../../include/conversation.php:1199 #: ../../include/conversation.php:1218
msgid "attach file" msgid "attach file"
msgstr "" msgstr ""
#: ../../include/conversation.php:1201 #: ../../include/conversation.php:1220
msgid "web link" msgid "web link"
msgstr "" msgstr ""
#: ../../include/conversation.php:1202 #: ../../include/conversation.php:1221
msgid "Insert video link" msgid "Insert video link"
msgstr "" msgstr ""
#: ../../include/conversation.php:1203 #: ../../include/conversation.php:1222
msgid "video link" msgid "video link"
msgstr "" msgstr ""
#: ../../include/conversation.php:1204 #: ../../include/conversation.php:1223
msgid "Insert audio link" msgid "Insert audio link"
msgstr "" msgstr ""
#: ../../include/conversation.php:1205 #: ../../include/conversation.php:1224
msgid "audio link" msgid "audio link"
msgstr "" msgstr ""
#: ../../include/conversation.php:1207 #: ../../include/conversation.php:1226
msgid "set location" msgid "set location"
msgstr "" msgstr ""
#: ../../include/conversation.php:1209 #: ../../include/conversation.php:1228
msgid "clear location" msgid "clear location"
msgstr "" msgstr ""
#: ../../include/conversation.php:1216 #: ../../include/conversation.php:1235
msgid "permissions" msgid "permissions"
msgstr "" msgstr ""

View file

@ -42,6 +42,7 @@ $desc
<form action="profile_photo/$resource" id="crop-image-form" method="post" /> <form action="profile_photo/$resource" id="crop-image-form" method="post" />
<input type='hidden' name='form_security_token' value='$form_security_token'> <input type='hidden' name='form_security_token' value='$form_security_token'>
<input type='hidden' name='profile' value='$profile'>
<input type="hidden" name="cropfinal" value="1" /> <input type="hidden" name="cropfinal" value="1" />
<input type="hidden" name="xstart" id="x1" /> <input type="hidden" name="xstart" id="x1" />
<input type="hidden" name="ystart" id="y1" /> <input type="hidden" name="ystart" id="y1" />

View file

@ -8,6 +8,13 @@
<input name="userfile" type="file" id="profile-photo-upload" size="48" /> <input name="userfile" type="file" id="profile-photo-upload" size="48" />
</div> </div>
<label id="profile-photo-profiles-label" for="profile-photo-profiles">$lbl_profiles </label>
<select name="profile" id="profile-photo-profiles" />
{{ for $profiles as $p }}
<option value="$p.id" {{ if $p.default }}selected="selected"{{ endif }}>$p.name</option>
{{ endfor }}
</select>
<div id="profile-photo-submit-wrapper"> <div id="profile-photo-submit-wrapper">
<input type="submit" name="submit" id="profile-photo-submit" value="$submit"> <input type="submit" name="submit" id="profile-photo-submit" value="$submit">
</div> </div>