Thanks for the links Cash!
Currently I'm getting: groupspost:nopost when I try and add a comment to (someone else's existing topic). A big problem and show stopper. This, I think, comes from
<code>
$post = get_input('topic_post');
// Let's see if we can get an entity with the specified GUID, and that it's a group forum topic
if ($topic = get_entity($topic_guid)) {
if ($topic->getSubtype() == "groupforumtopic") {
//check the user posted a message
if($post){
// If posting the comment was successful, say so
if ($topic->annotate('group_topic_post',$post,$topic->access_id, $_SESSION['guid'])) {
system_message(elgg_echo("groupspost:success"));
// add to river
add_to_river('river/forum/create','create',$_SESSION['user']->guid,$topic_guid);
} else {
system_message(elgg_echo("groupspost:failure"));
}
}else{
system_message(elgg_echo("groupspost:nopost"));
}
</code>
I'd be grateful for advice on what to change/patch to fix this.
Best regards Hugh
I'll answer myself, I turned off the tinymce plugin, and I can now post comments to discussion topics.
Thanks for the links Cash!
Currently I'm getting: groupspost:nopost when I try and add a comment to (someone else's existing topic). A big problem and show stopper. This, I think, comes from
<code>
$post = get_input('topic_post');
// Let's see if we can get an entity with the specified GUID, and that it's a group forum topic
if ($topic = get_entity($topic_guid)) {
if ($topic->getSubtype() == "groupforumtopic") {
//check the user posted a message
if($post){
// If posting the comment was successful, say so
if ($topic->annotate('group_topic_post',$post,$topic->access_id, $_SESSION['guid'])) {
system_message(elgg_echo("groupspost:success"));
// add to river
add_to_river('river/forum/create','create',$_SESSION['user']->guid,$topic_guid);
} else {
system_message(elgg_echo("groupspost:failure"));
}
}else{
system_message(elgg_echo("groupspost:nopost"));
}
</code>
I'd be grateful for advice on what to change/patch to fix this.
Best regards Hugh
I'll answer myself, I turned off the tinymce plugin, and I can now post comments to discussion topics.
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.