diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-10-08 04:38:19 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-10-08 04:38:19 +0000 |
commit | 24f3f2f0d304254451c46a3b28a8e1f4678bc02f (patch) | |
tree | c95dc02130267e6c2d7053faf7546089c1c744b1 /views/default/tidypics | |
parent | 6b00bdba17af611726eb950fb51758556694e80f (diff) | |
download | elgg-24f3f2f0d304254451c46a3b28a8e1f4678bc02f.tar.gz elgg-24f3f2f0d304254451c46a3b28a8e1f4678bc02f.tar.bz2 |
flickr integration
Diffstat (limited to 'views/default/tidypics')
-rw-r--r-- | views/default/tidypics/forms/edit_multi.php | 1 | ||||
-rw-r--r-- | views/default/tidypics/forms/setupFlickr.php | 17 |
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 |