I am parsing the plugin messages, the file in this folder actions: delete.php
has the following code:
if ($success) {
if ($submit == elgg_echo('delete')) {
system_message(elgg_echo("messages:deleted"));
} else {
system_message(elgg_echo("messages:markedread"));
}
// check to see if it is a sent message to be deleted
if($type == 'sent'){
forward("pg/messages/sent/?offset={$offset}");
}else{
forward("mod/messages/inbox/" . get_loggedin_user()->username . "?offset={$offset}");
}
} else {
register_error(elgg_echo("messages:notfound"));
forward($_SERVER['HTTP_REFERER']);
}
?>
I think the parts in bold are incorrect, most do not know how to change the right way, anyone know?
It will be fixed in Elgg 1.7.6.
The first bold part is not incorrect but in the second part it must be "pg" instead of "mod":
Thanks!!!!
hello, and for separate the groups in categories?
You can add this to group create page:
echo elgg_view('categories', $vars);
You can then display groups in a certain category by:
elgg_view('categories/list', array('baseurl' => $CONFIG->wwwroot . 'pg/categories/list/?subtype=groups'.$context.'&owner_guid='.$page_owner->guid.'&category='));
Thanks Ihayredinov
Where is the page where I add this?
Regards.
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.