From 501af5b28c7fb2ec36658df16849572c14d050a4 Mon Sep 17 00:00:00 2001 From: Greg Froese Date: Mon, 11 May 2009 15:04:43 +0000 Subject: added most viewed and recent for friends and 'yourss' --- yourmostrecent.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 yourmostrecent.php (limited to 'yourmostrecent.php') diff --git a/yourmostrecent.php b/yourmostrecent.php new file mode 100644 index 000000000..68c83cd7e --- /dev/null +++ b/yourmostrecent.php @@ -0,0 +1,33 @@ +guid . " + ORDER BY ent.guid DESC + LIMIT $max"; + + $result = get_data($sql); + $entities = array(); + foreach($result as $entity) { + $entities[] = get_entity($entity->entity_guid); + } + + $title = elgg_echo("tidypics:yourmostrecent"); + $area2 = elgg_view_title($title); + $area2 .= elgg_view_entity_list($entities, $max, 0, $max); + $body = elgg_view_layout('two_column_left_sidebar', '', $area2); + page_draw($title, $body); + +?> \ No newline at end of file -- cgit v1.2.3