This plugin provides the following features:
View Diego Andrés Ramírez Aragón's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
It removes the Latest Discussion block from the group profile. Is there a minimum of posts needed to get it to display? 3? Is it changeable?
Thanks
The minimum is four like in the default implementation.
This plugin let you configure discussions globally for all groups. Check if you have that setting in off.
Can this plugin change the group owner? And is there any way to lock the group name so that it cannot be changed?
Just updated the plugin. My discussion block is still displayed even with only 1 post.
Also I still can't find the right_column left_column views to be able to alter them.
I can't see and to change the types of groups on Edit group page.
that worked for me, gives types of group , Network, Group and Organization.
I found the problem. This plugin must be below groups plugin. :-)
It seems all ok.
plugin order
1.groups
2.group extended
but latest discussions still disapears when i enable this mod
I have 2 issues,
1. When I try to save the settings first nothing happens for a while and the I end up in a "500 Internal Server Error"
2. In the group profile the grouptype field stay empty whereas in the groups listing the type is displayed.
I have just found an error.
When I create a group page and try to access it I get an error:
Fatal error: Call to a member function getURL() on a non-object in /mod/pages/views/default/pages/pageprofile.php on line 76
The tags display and then I get this error. Any ideas?
For some reason my above error seems to have gone away. However I Still can't display the latest discussions or find where the left_column and right_column information is stored for the group layouts.
I found the right_column left_column code in the plugins.
I still can't seem to get the latest discussions to display.
@E303 maybe you should start a seperate discussion for this? I am interested in what you are trying to accomplish
i think i see what you mean though, or correct me if i am wrong. you wish to create a list of the latest discussions on the group page like with the blogs, pages, etc and when you add a discussion, nothing like that takes place.
@Zakary the Latest Discussions used to be displayed in previous versions of this and in the un-extended group profile. I have looked into the code and seen that the code is actually there but it doesn't seem to display. @skotmiller had this same problem.
@E303 ok, i am just curious. its one of those things i have to get to doing myself, but since i am new to ELGG and starting on 1.5 i don't have an idea about how it was, but that doesn't mean i don't want to figure this out. This is why i am asking if what you want is like how the latest blogs and stuff are displayed on the group profile, that way i can go in and see what i can do to make it like that... or if what you are describing is different, then i would look at it from that point of view. As it is, I turned off group extended and the profile doesn't appear differently in this manner, so it would be a profile thing?
@Zakary I too am new to Elgg and starting out on 1.5. Then yes what I am after is much lick the latest blog stuff you speak of. Turns out the previous version of groupextened didn't seem to effect it at all, yet when I upgraded it the development server was fine yet when I put it over to the live site the latest discussion "widget" has gone. The code is exactly the same.
anyone figured this out yet?
whats the code that was?
I am building a site for singers and choirs. Would like to add a couple of Group Types. I am not familiar with php coding.
I tried to simply edit /mod/groupextended/start.php in the fashion quoted beloe but then the site went blank ;-) so I removed my clueless code:
Any help would be greatly appreciated.
/Peder
Hi Peder,
For add more options to groupextended just create a config.php file inside the groupextended directory.
Then you must copy there the $options array and configure it. You must take in account that the elgg_echo key MUST be the same value of the assosiative array.
For example:
elgg_echo("groupextended:type:choir")=>"groupextended:type:choir"
After configure your custom types you must to insert the translations inside your language file.
Please let me know if you can do that.
Cheers,
Hi, can somebody explain in a few words what the difference is between the "Networks" and "Organizations" default groups in functionality? I not able to see in the corresponding php file i only see that the php code is longer in "networks.php" :-) My php understanding is very very rudimental.
Thanks
hi Diego,
thanks for you advice.
I did exactly as you instructed. I left the $options array as it was in start.php
Now the site is blank. ;-) Just a white page.
/Peder
this is the contents of config.php:
<?php
$options = array(
elgg_echo("groupextended:type:network")=>"groupextended:type:network",
elgg_echo("groupextended:type:organization")=>"groupextended:type:organization",
elgg_echo("groupextended:type:group")=>"groupextended:type:group"
elgg_echo("groupextended:type:choir")=>"groupextended:type:choir"
elgg_echo("groupextended:type:vocalgroup")=>"groupextended:type:vocalgroup"
?>
forum_latest.php located in /mod/groupextended/views/default/groups/
if(get_plugin_setting("enableforum","groupextended")=="yes" && $vars['entity']->forum_enable == 'yes'){
?>
<div class="contentWrapper">
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
$forum = get_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 0, $vars['entity']->guid, 4, 0, "desc", false);
if($forum){
foreach($forum as $f){
$count_annotations = $f->countAnnotations("group_topic_post");
echo "<div class=\"forum_latest\">";
echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny', 'override' => true)) . "</div>";
echo "<div class=\"topic_title\"><p><a href=\"{$vars['url']}mod/groups/topicposts.php?topic={$f->guid}&group_guid={$vars['entity']->guid}\">" . $f->title . "</a></p> <p class=\"topic_replies\"><small>".elgg_echo('groups:posts').": " . $count_annotations . "</small></p></div>";
echo "</div>";
}
} else {
echo "<div class=\"forum_latest\">";
echo elgg_echo("grouptopic:notcreated");
echo "</div>";
}
?>
<br class="clearfloat" />
</div>
<?php
}//end of forum active check
?>