From 871395b74470a70e37aeb684b820e289b0930cba Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 28 Mar 2009 14:10:18 +0000 Subject: fixed bug with access levels and improved image and album editing --- views/default/tidypics/forms/edit.php | 82 +++++++++++++++-------------------- 1 file changed, 35 insertions(+), 47 deletions(-) (limited to 'views/default/tidypics') diff --git a/views/default/tidypics/forms/edit.php b/views/default/tidypics/forms/edit.php index d59d029cc..0ed8cffab 100644 --- a/views/default/tidypics/forms/edit.php +++ b/views/default/tidypics/forms/edit.php @@ -1,26 +1,24 @@ title); $action = "tidypics/edit"; $title = $vars['entity']->title; $body = $vars['entity']->description; $tags = $vars['entity']->tags; $access_id = $vars['entity']->access_id; $subtype = $vars['subtype']; - + // if nothing is sent, create new, but only new albums are sent here // new images are sent to upload.php } else { - $title = elgg_echo("album:add"); $action = "tidypics/addalbum"; $tags = ""; $title = ""; @@ -29,87 +27,77 @@ $access_id = ACCESS_DEFAULT; else $access_id = 0; + $subtype = 'album'; } - - // in case we have some cached details - if (isset($vars['albumtitle'])) { - $title = $vars['albumtitle']; - $body = $vars['albumbody']; - $tags = $vars['albumtags']; - } - - $container_guid = get_input('container_guid'); - if (!$container_guid) $container_guid = page_owner(); + + // group or individual + $container_guid = page_owner(); ?>

- "albumtitle", "value" => $title,)); ?> + "title", "value" => $title,)); ?>

-

- "albumbody","value" => $body,)); ?> + "descript","value" => $body,)); ?>

- "albumbody","value" => $body,)); ?> + "descript","value" => $body,)); ?>

- "albumtags","value" => $tags,)); ?> + "tags","value" => $tags,)); ?>

- guid; $container_guid = $vars['entity']->container_guid; $cover_guid = get_entity($container_guid)->cover; - if($cover_guid == $vars['entity']->guid) $cover = 'yes'; - ?> +?>

"cover", "value" => $cover, 'options' => array(elgg_echo('album:cover:yes')))); ?>

- +

- - 'access_id','value' => $access_id)); ?> -

- - + 'access_id','value' => $access_id)); ?> +

+ + - - + + - +?> + +

\ No newline at end of file -- cgit v1.2.3