]> git.mxchange.org Git - friendica.git/commitdiff
option to not post photos to status stream
authorFriendika <info@friendika.com>
Sat, 1 Oct 2011 13:20:41 +0000 (06:20 -0700)
committerFriendika <info@friendika.com>
Sat, 1 Oct 2011 13:20:41 +0000 (06:20 -0700)
mod/photos.php
view/photos_upload.tpl
view/theme/duepuntozero/style.css

index b6be8d025ad93995679f36c02bbef3721de0cb47..1321af1920408ab32edb1f9da28798f74d53edc5 100644 (file)
@@ -92,15 +92,11 @@ EOT;
 
 function photos_post(&$a) {
 
-       logger('mod/photos.php: photos_post(): begin' , 'LOGGER_DEBUG');
+       logger('mod-photos: photos_post(): begin' , 'LOGGER_DEBUG');
 
-       foreach($_REQUEST AS $key => $val) {
-               logger('mod/photos.php: photos_post(): $_REQUEST key: ' . $key . ' val: ' . $val , 'LOGGER_DEBUG');
-       }
 
-       foreach($_FILES AS $key => $val) {
-               logger('mod/photos.php: photos_post(): $_FILES key: ' . $key . ' val: ' . $val , 'LOGGER_DEBUG');
-       }
+       logger('mod_photos: REQUEST ' . print_r($_REQUEST,true), LOGGER_DATA);
+       logger('mod_photos: FILES '   . print_r($_FILES,true), LOGGER_DATA);
 
        $can_post  = false;
        $visitor   = 0;
@@ -585,7 +581,7 @@ function photos_post(&$a) {
        else
                $visible = 0;
 
-       if(intval($_REQUEST,'not_visible'))
+       if(intval($_REQUEST['not_visible']))
                $visible = 0;
 
        $str_group_allow   = perms2str(((is_array($_REQUEST['group_allow']))   ? $_REQUEST['group_allow']   : explode(',',$_REQUEST['group_allow'])));
@@ -895,6 +891,7 @@ function photos_content(&$a) {
                        '$nickname' => $a->data['user']['nickname'],
                        '$newalbum' => t('New album name: '),
                        '$existalbumtext' => t('or existing album name: '),
+                       '$nosharetext' => t('Do not show a status post for this upload'),
                        '$albumselect' => template_escape($albumselect),
                        '$permissions' => t('Permissions'),
                        '$aclselect' => (($visitor) ? '' : template_escape(populate_acl($a->user, $celeb))),
index c7c61c6db0c8f2c9b8c5905ac791735e125c27e2..318a9242771ecaf8c84f72266d0e80fa1748a7f7 100644 (file)
        </div>
        <div id="photos-upload-exist-end"></div>
 
+       <div id="photos-upload-noshare-div" class="photos-upload-noshare-div" >
+               <input id="photos-upload-noshare" type="checkbox" name="not_visible" value="1" />
+               <label id="photos-upload-noshare-text" for="photos-upload-noshare" >$nosharetext</label>
+       </div>
+
 
        <div id="photos-upload-perms" class="photos-upload-perms" >
                <a href="#photos-upload-permissions-wrapper" id="photos-upload-perms-menu" class="button" />
index 1fe8fb2f4832c313f3c1b548a2ecfb0ae6bb6b90..4769da8afcb00f8d93ddc3f8f0f7e0e885effa48 100644 (file)
@@ -1559,6 +1559,8 @@ input#dfrn-url {
        display:block!important;
 }
 
+
+
 #acl-wrapper {
        width: 690px;
        float:left;
@@ -1917,6 +1919,10 @@ a.mail-list-link {
        float: left;
        width: 175px;
 }
+
+#photos-upload-noshare {
+       margin-bottom: 10px;
+}
 #photos-upload-existing-album-text {
        float: left;
        width: 175px;