by Diego Andrés Ramírez Aragón
First uploaded 464 days ago
1
Recommendations
Summary:
Extends the group plugin with some nice extra features!
Full description:
Group extended
(Edit your project's description!)
This plugin provides the following features:
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.
Diego Andrés Ramírez Aragón 361 days ago
Can this plugin change the group owner? And is there any way to lock the group name so that it cannot be changed?
Kev 361 days ago
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.
E303 361 days ago
I can't see and to change the types of groups on Edit group page.
Pavel M 361 days ago
that worked for me, gives types of group , Network, Group and Organization.
SeasluG 361 days ago
I found the problem. This plugin must be below groups plugin. :-)
It seems all ok.
Pavel M 361 days ago
plugin order
1.groups
2.group extended
but latest discussions still disapears when i enable this mod
SeasluG 361 days ago
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.
Dahaniel 361 days ago
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?
E303 361 days ago
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.
E303 360 days ago
I found the right_column left_column code in the plugins.
I still can't seem to get the latest discussions to display.
E303 360 days ago
@E303 maybe you should start a seperate discussion for this? I am interested in what you are trying to accomplish
Zakary Venturo 360 days ago
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 Venturo 360 days ago
@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 360 days ago
@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 Venturo 360 days ago
@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.
E303 360 days ago
whats the code that was?
Zakary Venturo 359 days ago
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:
function groupextended_fields($hook, $entity_type, $returnvalue, $params){
//@todo Make this configurable via Web with cache handling
$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:group")=>"groupextended:type:singer"
elgg_echo("groupextended:type:group")=>"groupextended:type:choir"
Any help would be greatly appreciated.
/Peder
Peder Karlsson 358 days ago
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,
Diego Andrés Ramírez Aragón 358 days ago
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
zwiebel_sondermann 358 days ago
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
Peder Karlsson 358 days ago
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"
?>
Peder Karlsson 358 days ago
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
?>
E303 358 days ago

skotmiller
Profile
Friends
Friends of
Pages
Plugins
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
skotmiller 361 days ago