From 893364a28955358ad259bfb75798560616ab3d49 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Mon, 25 Oct 2010 00:22:20 +0000 Subject: supporting both basic and flash uploader --- views/default/tidypics/css.php | 27 +++++++++++++++++++-- views/default/tidypics/forms/ajax_upload.php | 36 +++++++++++++++++++++------- views/default/tidypics/forms/edit_multi.php | 23 +++++++++--------- views/default/tidypics/forms/upload.php | 7 +++--- 4 files changed, 66 insertions(+), 27 deletions(-) (limited to 'views/default') diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php index 9e5a5c68d..ea2081da6 100644 --- a/views/default/tidypics/css.php +++ b/views/default/tidypics/css.php @@ -304,7 +304,7 @@ list-style: none; .uploadifyQueueItem { background-color:#F5F5F5; border:2px solid #E5E5E5; -font:11px Verdana,Geneva,sans-serif; +font-size:11px; margin-top:5px; padding:10px; width:350px; @@ -322,4 +322,27 @@ width:100%; background-color: #0099FF; width: 1px; height: 3px; -} \ No newline at end of file +} + +#tidypics_uploader { +position:relative; +width:400px; +} + +#tidypics_choose_button { +position:absolute; +top:0; +left:0; +z-index:0; +display:block; +float:left; +} + +#tidypics_flash_uploader { +position:relative; +z-index:100; +} + +#uploadifyQueue { +margin-bottom: 20px; +} diff --git a/views/default/tidypics/forms/ajax_upload.php b/views/default/tidypics/forms/ajax_upload.php index b71068a13..25c658570 100644 --- a/views/default/tidypics/forms/ajax_upload.php +++ b/views/default/tidypics/forms/ajax_upload.php @@ -2,13 +2,14 @@ extend_view('metatags', 'tidypics/js/uploader'); -$container_guid = get_input('container_guid'); -$album = get_entity($vars['album']); +$album = $vars['album']; $access_id = $album->access_id; $ts = time(); $token = generate_action_token($ts); +$batch = time(); + $maxfilesize = (float) get_plugin_setting('maxfilesize','tidypics'); if (!$maxfilesize) { @@ -36,29 +37,46 @@ if ($quota) {
-

Instructions here for uploading images using Ajax/Flash

- -Upload Files | -Clear Queue +

Instructions here for uploading images using Ajax/Flash

+ +
+ Choose images +
+ +
+
+ +Upload Files + +
+Add titles and descriptions +
+Basic uploader +
diff --git a/views/default/tidypics/forms/edit_multi.php b/views/default/tidypics/forms/edit_multi.php index 8c3e40242..aba6fd324 100644 --- a/views/default/tidypics/forms/edit_multi.php +++ b/views/default/tidypics/forms/edit_multi.php @@ -2,26 +2,25 @@ /** * form for mass editing all uploaded images */ + +$images = $vars['images']; +$album = get_entity($images[0]->container_guid); + ?>
getCoverImageGuid()) { + if (!$album->getCoverImageGuid()) { $no_cover = true; } - foreach ($file_array as $key => $file_guid) { - $entity = get_entity($file_guid); - $guid = $entity->guid; - $body = $entity->description; - $title = $entity->title; - $tags = $entity->tags; - $container_guid = $entity->container_guid; + foreach ($images as $key => $image) { + $guid = $image->guid; + $body = $image->description; + $title = $image->title; + $tags = $image->tags; // first one is default cover if there isn't one already if ($no_cover) { @@ -54,7 +53,7 @@ } ?> - +

\ No newline at end of file diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php index 691d9701b..5a9703171 100644 --- a/views/default/tidypics/forms/upload.php +++ b/views/default/tidypics/forms/upload.php @@ -3,8 +3,7 @@ global $CONFIG; //this is for image uploads only. Image edits are handled by edit.php form -$container_guid = get_input('container_guid'); -$album = get_entity($vars['album']); +$album = $vars['album']; $access_id = $album->access_id; $maxfilesize = (float) get_plugin_setting('maxfilesize','tidypics'); @@ -59,8 +58,8 @@ if ($quota) {

'; + if ($album) { + echo ''; } if ($access_id) { echo ''; -- cgit v1.2.3