From 33b3fae7aeaf94b85bba04a7c1633f892292d5b6 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 23 Feb 2009 17:33:43 +0000 Subject: new wire work git-svn-id: https://code.elgg.org/elgg/trunk@2903 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/actions/add.php | 2 +- mod/thewire/everyone.php | 3 +++ mod/thewire/index.php | 3 +++ mod/thewire/languages/en.php | 2 +- mod/thewire/start.php | 2 +- mod/thewire/views/default/thewire/forms/add.php | 3 ++- mod/thewire/views/default/thewire/profile_status.php | 5 ++++- 7 files changed, 15 insertions(+), 5 deletions(-) (limited to 'mod/thewire') diff --git a/mod/thewire/actions/add.php b/mod/thewire/actions/add.php index 8c441c0a2..67aab0600 100644 --- a/mod/thewire/actions/add.php +++ b/mod/thewire/actions/add.php @@ -54,7 +54,7 @@ if($location == "activity") forward("mod/riverdashboard/"); else - forward("mod/thewire/add.php"); + forward("mod/thewire/everyone.php"); } diff --git a/mod/thewire/everyone.php b/mod/thewire/everyone.php index 1ad633655..406e65985 100644 --- a/mod/thewire/everyone.php +++ b/mod/thewire/everyone.php @@ -14,6 +14,9 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); $area2 = elgg_view_title(elgg_echo("thewire:everyone")); + + //add form + $area2 .= elgg_view("thewire/forms/add"); $area2 .= list_entities('object','thewire'); // elgg_view("thewire/view",array('entity' => $thewireposts)); $body = elgg_view_layout("two_column_left_sidebar", '', $area2); diff --git a/mod/thewire/index.php b/mod/thewire/index.php index ffa2ca371..afc68f0b3 100644 --- a/mod/thewire/index.php +++ b/mod/thewire/index.php @@ -23,6 +23,9 @@ // title $area2 = elgg_view_title(elgg_echo("thewire:read")); + //add form + $area2 .= elgg_view("thewire/forms/add"); + // Display the user's wire $area2 .= list_user_objects($page_owner->getGUID(),'thewire'); // elgg_view("thewire/view",array('entity' => $thewire)); diff --git a/mod/thewire/languages/en.php b/mod/thewire/languages/en.php index 62c83df91..2e3771385 100644 --- a/mod/thewire/languages/en.php +++ b/mod/thewire/languages/en.php @@ -23,7 +23,7 @@ 'thewire:charleft' => "characters left", 'item:object:thewire' => "Wire posts", 'thewire:notedeleted' => "note deleted", - + 'thewire:doing' => "What are you doing, tell everyone on the wire?", 'thewire:newpost' => 'New wire post', 'thewire:addpost' => 'Post to the wire', diff --git a/mod/thewire/start.php b/mod/thewire/start.php index 2d65bb517..8af638ada 100644 --- a/mod/thewire/start.php +++ b/mod/thewire/start.php @@ -72,7 +72,7 @@ if ((page_owner() == $_SESSION['guid'] || !page_owner()) && isloggedin()) { add_submenu_item(elgg_echo('thewire:read'),$CONFIG->wwwroot."pg/thewire/" . $_SESSION['user']->username); add_submenu_item(elgg_echo('thewire:everyone'),$CONFIG->wwwroot."mod/thewire/everyone.php"); - add_submenu_item(elgg_echo('thewire:add'),$CONFIG->wwwroot."mod/thewire/add.php"); + //add_submenu_item(elgg_echo('thewire:add'),$CONFIG->wwwroot."mod/thewire/add.php"); } } diff --git a/mod/thewire/views/default/thewire/forms/add.php b/mod/thewire/views/default/thewire/forms/add.php index 00efb61ae..a424e4eb4 100644 --- a/mod/thewire/views/default/thewire/forms/add.php +++ b/mod/thewire/views/default/thewire/forms/add.php @@ -15,7 +15,8 @@ if (!empty($wire_user)) { $msg = '@' . $wire_user . ' '; } else { $msg = ''; } ?> -
+
+