From b6f99468651309e0b58dbe000958540809df5dcc Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 18:31:27 +0000 Subject: Fixes #2226 moves riverdashboard into secondary plugins from core plugins - most of riverdashboard functionality is now in core (except for displaying who has liked stuff and ajax refreshes) git-svn-id: http://code.elgg.org/elgg/trunk@7750 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/endpoint/get_comments.php | 40 ------------------- mod/riverdashboard/endpoint/get_likes.php | 22 ----------- mod/riverdashboard/endpoint/ping.php | 59 ---------------------------- 3 files changed, 121 deletions(-) delete mode 100644 mod/riverdashboard/endpoint/get_comments.php delete mode 100644 mod/riverdashboard/endpoint/get_likes.php delete mode 100644 mod/riverdashboard/endpoint/ping.php (limited to 'mod/riverdashboard/endpoint') diff --git a/mod/riverdashboard/endpoint/get_comments.php b/mod/riverdashboard/endpoint/get_comments.php deleted file mode 100644 index f130cfd3c..000000000 --- a/mod/riverdashboard/endpoint/get_comments.php +++ /dev/null @@ -1,40 +0,0 @@ -owner_guid); - //get the comment owner's profile url - $comment_owner_url = $comment_owner->getURL(); - - //display comment - echo "
"; - echo ""; - echo elgg_view("profile/icon", array('entity' => $comment_owner, 'size' => 'tiny')); - echo ""; - - //truncate comment to 150 characters and strip tags - $contents = elgg_get_excerpt($comment->value, 150); - - echo "
"; - echo "" . $comment_owner->name . ' '; - echo "" . elgg_view_friendly_time($comment->time_created) . ""; - echo "
"; -} \ No newline at end of file diff --git a/mod/riverdashboard/endpoint/get_likes.php b/mod/riverdashboard/endpoint/get_likes.php deleted file mode 100644 index cc9e83aaf..000000000 --- a/mod/riverdashboard/endpoint/get_likes.php +++ /dev/null @@ -1,22 +0,0 @@ -getAnnotations('likes', $limit, $offset); - -if (is_array($annotations) && sizeof($annotations) > 0) { - foreach($annotations as $annotation) { - echo elgg_view_annotation($annotation, "", false); - } -} diff --git a/mod/riverdashboard/endpoint/ping.php b/mod/riverdashboard/endpoint/ping.php deleted file mode 100644 index 94c6fe377..000000000 --- a/mod/riverdashboard/endpoint/ping.php +++ /dev/null @@ -1,59 +0,0 @@ - TRUE and not group by object_guid - -// river table does not have columns expected by get_access_sql_suffix so we modify its output -$access = str_replace("and enabled='yes'", '', str_replace('owner_guid', 'subject_guid', riverdashboard_get_access_sql_suffix('r', 'e'))); - -$q = "SELECT COUNT(id) as all_activity FROM {$CONFIG->dbprefix}river r, {$CONFIG->dbprefix}entities e - WHERE r.posted > $last_reload AND r.object_guid = e.guid AND ($access)"; - -if ($d = get_data($q)) { - $all_activity = $d[0]->all_activity; -} else { - $all_activity = 0; -} - -if ($all_activity > 0) { - $s = ($all_activity == 1) ? '' : 's'; - echo "$all_activity update$s!"; -?> - - -