From 856dc92ef07c9fe06339349224533a12898b31d7 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 19 Jun 2010 16:31:35 +0000 Subject: There was no point in group discussions having their own comment annotations, better to use the generic comments so this has been changed and a full group activity stream added. For v1.8, there will need to be an upgrade script which will change 'group_topic_post' -> 'generic_comment' and on all existing topics, take the first annotation of type 'group_topic_post' and populate the topic's description. git-svn-id: http://code.elgg.org/elgg/trunk@6526 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/forum/maintopic.php | 56 ++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 mod/groups/views/default/forum/maintopic.php (limited to 'mod/groups/views/default/forum/maintopic.php') diff --git a/mod/groups/views/default/forum/maintopic.php b/mod/groups/views/default/forum/maintopic.php new file mode 100644 index 000000000..7a4a86da7 --- /dev/null +++ b/mod/groups/views/default/forum/maintopic.php @@ -0,0 +1,56 @@ + + * @copyright Curverider Ltd 2008-2010 + * @link http://elgg.com/ + * + * @uses $vars['entity'] The post + */ + + $topic = get_input('topic'); + $group_guid = get_input('group_guid'); + +?> + +
+ + owner_guid)) { + // display the user icon + echo "
" . elgg_view("profile/icon",array('entity' => $post_owner, 'size' => 'tiny')) . "
"; + // display the user name + echo "
"; + // if comment owner, group owner, or site admin - display edit and delete options + if (groups_can_edit_discussion($vars['entity'], page_owner_entity()->owner_guid)) { + echo ""; + + } + + echo "

" . $post_owner->name . "

"; + } else { + echo "
"; + echo "

" . elgg_echo('profile:deleteduser') . "

"; + } + + //display the date of the comment + echo "

" . friendly_time($vars['entity']->time_created) . "

"; + + //display the actual message posted + echo parse_urls(elgg_view("output/longtext",array("value" => $vars['entity']->description))); + echo "
"; // close entity_listing_info +?> + +
\ No newline at end of file -- cgit v1.2.3