aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r--views/default/tidypics/forms/edit_multi.php1
-rw-r--r--views/default/tidypics/forms/setupFlickr.php17
2 files changed, 18 insertions, 0 deletions
diff --git a/views/default/tidypics/forms/edit_multi.php b/views/default/tidypics/forms/edit_multi.php
index 634c343bb..4c4a111f5 100644
--- a/views/default/tidypics/forms/edit_multi.php
+++ b/views/default/tidypics/forms/edit_multi.php
@@ -17,6 +17,7 @@
$entity = get_entity($file_guid);
$guid = $entity->guid;
$body = $entity->description;
+ $title = $entity->title;
$tags = $entity->tags;
$container_guid = $entity->container_guid;
diff --git a/views/default/tidypics/forms/setupFlickr.php b/views/default/tidypics/forms/setupFlickr.php
new file mode 100644
index 000000000..cee94058e
--- /dev/null
+++ b/views/default/tidypics/forms/setupFlickr.php
@@ -0,0 +1,17 @@
+<?php
+require_once( dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . "/lib/flickr.php";
+
+$user = get_loggedin_user();
+$flickr_username = get_metadata_byname( $user->guid, "flickr_username" );
+
+$action = $vars['url'] . 'action/tidypics/flickrSetup';
+
+$form_body = "<p>";
+$form_body .= "Please enter your Flickr username here:<br /><input style='width: 20%;' type='text' name='flickr_username' value='$flickr_username->value' ' class='input-text' /><br />";
+$form_body .= "<input type='hidden' name='return_url' value='$_SERVER[REQUEST_URI]' />";
+$form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
+
+flickr_menu();
+
+echo elgg_view('input/form', array('action' => $action, 'body' => $form_body));
+?> \ No newline at end of file