aboutsummaryrefslogtreecommitdiff
path: root/pages/members/search.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 11:32:39 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-01 11:32:39 +0000
commit3cfad8ca8394976823bbacb728821ca371dfd6d8 (patch)
tree2340be281845fbae688986c7129b84c26e913a0b /pages/members/search.php
parentdf9d347e7d5a316a7f5c85ba284ea68c26fe6d2c (diff)
downloadelgg-3cfad8ca8394976823bbacb728821ca371dfd6d8.tar.gz
elgg-3cfad8ca8394976823bbacb728821ca371dfd6d8.tar.bz2
Fixes #3231 welcome back, members plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8895 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages/members/search.php')
-rw-r--r--pages/members/search.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/pages/members/search.php b/pages/members/search.php
deleted file mode 100644
index e9b4eb170..000000000
--- a/pages/members/search.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/**
- * Members search page
- *
- */
-
-if ($vars['search_type'] == 'tag') {
- $tag = get_input('tag');
-
- $title = elgg_echo('members:title:searchtag', array($tag));
-
- $options = array();
- $options['query'] = $tag;
- $options['type'] = "user";
- $options['offset'] = $offset;
- $options['limit'] = $limit;
- $results = elgg_trigger_plugin_hook('search', 'tags', $options, array());
- $count = $results['count'];
- $users = $results['entities'];
- $content = elgg_view_entity_list($users, $count, $offset, $limit, false, false, true);
-} else {
- $name = get_input('name');
-
- $title = elgg_echo('members:title:searchname', array($name));
-
- global $CONFIG;
- $params = array(
- 'type' => 'user',
- 'full_view' => false,
- 'joins' => array("join {$CONFIG->dbprefix}users_entity u on e.guid=u.guid"),
- 'wheres' => array("(u.name like \"%{$name}%\" or u.username like \"%{$name}%\")"),
- );
- $content .= elgg_list_entities($params);
-}
-
-$params = array(
- 'title' => $title,
- 'content' => $content,
- 'sidebar' => elgg_view('core/members/sidebar'),
-);
-
-$body = elgg_view_layout('one_sidebar', $params);
-
-echo elgg_view_page($title, $body);