From 24f3f2f0d304254451c46a3b28a8e1f4678bc02f Mon Sep 17 00:00:00 2001 From: Greg Froese Date: Thu, 8 Oct 2009 04:38:19 +0000 Subject: flickr integration --- start.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'start.php') diff --git a/start.php b/start.php index f0c35c62f..76daca066 100644 --- a/start.php +++ b/start.php @@ -185,6 +185,11 @@ add_submenu_item( elgg_echo('tidypics:recentlycommented'), $CONFIG->wwwroot . 'pg/photos/recentlycommented', 'tidypics-z'); + if( get_loggedin_userid() == 9 ) { + add_submenu_item( 'Flickr Integration', + $CONFIG->wwwroot . 'mod/tidypics/pages/setupFlickr.php', + 'tidypics-z'); + } } @@ -315,6 +320,11 @@ if (isset($page[1])) set_input('guid',$page[1]); include($CONFIG->pluginspath . "tidypics/pages/lists/highestrated.php"); break; + + case "flickr": + if (isset($page[1])) set_input('username',$page[1]); + include($CONFIG->pluginspath . "tidypics/pages/lists/flickr.php"); + break; } } else @@ -414,7 +424,9 @@ return $slideshow_link; } - + function tp_mostrecentimages($max = 8, $pagination = true) { + return list_entities("object", "image", 0, $max, false, false, $pagination); + } /** * Called before validating the security token on a download link * We don't need security as this is not a true action (it doesn't change any data) @@ -446,5 +458,6 @@ register_action("tidypics/download", true, $CONFIG->pluginspath . "tidypics/actions/download.php"); register_action("tidypics/addtag", true, $CONFIG->pluginspath . "tidypics/actions/addtag.php"); register_action("tidypics/deletetag", true, $CONFIG->pluginspath . "tidypics/actions/deletetag.php"); + register_action("tidypics/setupFlickr", true, $CONFIG->pluginspath . "tidypics/actions/setupFlickr.php"); ?> \ No newline at end of file -- cgit v1.2.3