aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/members/index.php84
-rw-r--r--mod/members/languages/en.php21
-rw-r--r--mod/members/manifest.xml12
-rw-r--r--mod/members/start.php14
-rw-r--r--mod/members/views/default/members/css.php24
-rw-r--r--mod/members/views/default/members/members_navigation.php23
-rw-r--r--mod/members/views/default/members/search.php26
7 files changed, 0 insertions, 204 deletions
diff --git a/mod/members/index.php b/mod/members/index.php
deleted file mode 100644
index 8e6141dfa..000000000
--- a/mod/members/index.php
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-/**
- * Elgg members index page
- *
- * @package ElggMembers
- */
-
-require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
-
-// Get the current page's owner
-$page_owner = elgg_get_page_owner();
-if ($page_owner === false || is_null($page_owner)) {
- $page_owner = get_loggedin_user();
- //set_page_owner($page_owner->getGUID());
-}
-
-// get filter parameters
-$limit = get_input('limit', 10);
-$offset = get_input('offset', 0);
-$filter = get_input("filter", "newest");
-
-// search options
-$tag = get_input('tag');
-
-// friends links
-$area1 = "<ul class='submenu page_navigation'><li><a href=\"" . elgg_get_site_url()."pg/friends/" . elgg_get_page_owner()->username . "\">". elgg_echo('friends') . "</a></li>";
-$area1 .= "<li><a href=\"" . elgg_get_site_url()."pg/friendsof/" . elgg_get_page_owner()->username . "\">". elgg_echo('friends:of') . "</a></li>";
-$area1 .= "<li class='selected'><a href=\"" . elgg_get_site_url()."mod/members/index.php\">". elgg_echo('members:browse') . "</a></li>";
-$area1 .= "</ul>";
-
-//search members
-$area1 .= elgg_view("members/search");
-
-// count members
-$members = get_number_users();
-
-// title
-$pagetitle = elgg_echo("members:members")." ({$members})";
-$area2 = elgg_view_title($pagetitle);
-
-//get the correct view based on filter
-switch($filter){
- case "newest":
- $filter_content = elgg_list_entities(array('type' => 'user', 'offset' => $offset, 'full_view' => FALSE));
- break;
- case "pop":
- $filter_content = list_entities_by_relationship_count('friend', true, '', '', 0, 10, false);
- break;
- case "active":
- $filter_content = get_online_users();
- break;
- // search based on name
- case "search":
- elgg_set_context('search');
- $filter_content = list_user_search($tag);
- break;
- // search based on tags
- case "search_tags":
- $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'];
- $filter_content = elgg_view_entity_list($users, $count, $offset, $limit, false, false, true);
- break;
- case 'default':
- $filter_content = elgg_list_entities(array('type' => 'user', 'offset' => $offset, 'full_view' => FALSE));
- break;
-}
-
-$area2 .= elgg_view('page/elements/content', array('body' => elgg_view("members/members_navigation", array("count" => $members, "filter" => $filter)) . "<div class='members-list'>".$filter_content."</div>", 'subclass' => 'members'));
-
-//select the correct canvas area
-$params = array(
- 'content' => $area2,
- 'sidebar' => $area1
-);
-$body = elgg_view_layout("one_column_with_sidebar", $params);
-
-// Display page
-echo elgg_view_page(elgg_echo('members:members', array($page_owner->name)), $body); \ No newline at end of file
diff --git a/mod/members/languages/en.php b/mod/members/languages/en.php
deleted file mode 100644
index bb1701928..000000000
--- a/mod/members/languages/en.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * Elgg members language
- *
- * @package ElggMembers
- */
-
-$english = array(
- 'members:members' => "Site members",
- 'members:online' => "Members active now",
- 'members:browse' => "Browse members",
- 'members:active' => "site members",
- 'members:searchtag' => "Member search via tag",
- 'members:searchname' => "Member search via name",
-
- 'members:label:newest' => 'Newest',
- 'members:label:popular' => 'Popular',
- 'members:label:active' => 'Active',
-);
-
-add_translation('en', $english); \ No newline at end of file
diff --git a/mod/members/manifest.xml b/mod/members/manifest.xml
deleted file mode 100644
index 37959b66e..000000000
--- a/mod/members/manifest.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin_manifest>
- <field key="author" value="Curverider" />
- <field key="version" value="1.7" />
- <field key="description" value="A simple plugin to let users browser other members." />
- <field key="website" value="http://www.elgg.org/" />
- <field key="copyright" value="(C) Curverider 2008-2010" />
- <field key="licence" value="GNU Public License version 2" />
- <field key="elgg_version" value="2010030101" />
- <field key="elgg_install_state" value="enabled" />
- <field key="admin_interface" value="simple" />
-</plugin_manifest>
diff --git a/mod/members/start.php b/mod/members/start.php
deleted file mode 100644
index 4158f1aa2..000000000
--- a/mod/members/start.php
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-/**
- * Elgg members plugin
- *
- * @package Elggmembers
- */
-
-function members_init() {
- elgg_extend_view('css/screen', 'members/css');
-}
-
-// @todo - use page handler for members index
-elgg_register_event_handler('pagesetup','system','members_pagesetup');
-elgg_register_event_handler('init','system','members_init'); \ No newline at end of file
diff --git a/mod/members/views/default/members/css.php b/mod/members/views/default/members/css.php
deleted file mode 100644
index 6695537a2..000000000
--- a/mod/members/views/default/members/css.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-/**
- * Elgg Members Css
- *
- * @package Members
- */
-?>
-.members .group_count {
- font-weight: bold;
- color: #666666;
- margin:0 0 5px 4px;
-}
-#memberssearchform {
- border-bottom: 1px solid #cccccc;
- margin-bottom: 10px;
-}
-#memberssearchform input[type="submit"] {
- padding:2px;
- height:auto;
- margin:4px 0 5px 0;
-}
-#memberssearchform .search-input {
- width:196px;
-} \ No newline at end of file
diff --git a/mod/members/views/default/members/members_navigation.php b/mod/members/views/default/members/members_navigation.php
deleted file mode 100644
index c866e194d..000000000
--- a/mod/members/views/default/members/members_navigation.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
- /**
- * A simple view to provide the user with group filters and the number of group on the site
- **/
-
- $members = $vars['count'];
- if(!$num_groups)
- $num_groups = 0;
-
- $filter = $vars['filter'];
-
- //url
- $url = elgg_get_site_url() . "mod/members/index.php";
-
-?>
-<div class="elgg-horizontal-tabbed-nav margin-top">
-<ul>
- <li <?php if($filter == "newest") echo "class='selected'"; ?>><a href="<?php echo $url; ?>?filter=newest"><?php echo elgg_echo('members:label:newest'); ?></a></li>
- <li <?php if($filter == "pop") echo "class='selected'"; ?>><a href="<?php echo $url; ?>?filter=pop"><?php echo elgg_echo('members:label:popular'); ?></a></li>
- <li <?php if($filter == "active") echo "class='selected'"; ?>><a href="<?php echo $url; ?>?filter=active"><?php echo elgg_echo('members:label:active'); ?></a></li>
-</ul>
-</div> \ No newline at end of file
diff --git a/mod/members/views/default/members/search.php b/mod/members/views/default/members/search.php
deleted file mode 100644
index 98ec20549..000000000
--- a/mod/members/views/default/members/search.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-/**
- * Elgg Members search
- *
- * @package Members
- */
-?>
-<div class="sidebar_container">
-
-<h3><?php echo elgg_echo('members:searchtag'); ?></h3>
-<form id="memberssearchform" class="member_tags" action="<?php echo elgg_get_site_url(); ?>mod/members/index.php?" method="get">
- <input type="text" name="tag" value="Member tags" onclick="if (this.value=='Member tags') { this.value='' }" class="search-input" />
- <input type="hidden" name="filter" value="search_tags" />
- <input type="submit" value="<?php echo elgg_echo('search:go'); ?>" />
-</form>
-
-<h3><?php echo elgg_echo('members:searchname'); ?></h3>
-<form id="memberssearchform" class="member_name" action="<?php echo elgg_get_site_url(); ?>mod/members/index.php?" method="get">
- <input type="text" name="tag" value="Members name" onclick="if (this.value=='Members name') { this.value='' }" class="search-input" />
- <input type="hidden" name="subtype" value="" />
- <input type="hidden" name="object" value="user" />
- <input type="hidden" name="filter" value="search" />
- <input type="submit" value="<?php echo elgg_echo('search:go'); ?>" />
-</form>
-
-</div>