" . elgg_echo( 'flickr:desc' ) . ""; $viewer = get_loggedin_user(); require_once dirname(dirname(dirname(__FILE__))) . "/lib/phpFlickr/phpFlickr.php"; require_once( dirname(dirname(dirname(__FILE__)))) . "/lib/flickr.php"; $f = new phpFlickr("26b2abba37182aca62fe0eb2c7782050"); $viewer = get_loggedin_user(); $flickr_username = get_metadata_byname( $viewer->guid, "flickr_username" ); $flickr_id = get_metadata_byname( $viewer->guid, "flickr_id" ); $album_id = get_metadata_byname( $viewer->guid, "flickr_album_id" ); if( intval( $album_id->value ) <= 0 ) { register_error( sprintf( elgg_echo( 'flickr:errornoalbum' ), $album_id->value )); forward( "/mod/tidypics/pages/flickr/setup.php" ); } $photosets = $f->photosets_getList( $flickr_id->value ); foreach( $photosets["photoset"] as $photoset ) { $body .= "
"; var_dump( $photoset ); echo ""; die; } // $body .= elgg_view("tidypics/forms/setupFlickr", array(), false, true ); flickr_menu(); page_draw( elgg_echo( 'flickr:importmanager' ), elgg_view_layout("two_column_left_sidebar", '', $body)); ?>