Hugh Barnard

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Activity

  • Hugh Barnard replied on the discussion topic Redirect problem
    Hi folks I've posted this here, because it's another problem with redirect. I'm fairly new to plugin writing. I have an action pay.php that 'works' because it does the action [involving curl and an external server] but it just displays a white page... view reply
  • Hugh Barnard replied on the discussion topic 2 bugs in group forums in the group Elgg Technical Support
    I found 3 really severe bugs on the group forum: When trying to add a comment to a topic you started and you do this not with tinyMCE but remove the editor first, then the comment form is filled with your initial post and any text you add is...
    • 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.

  • Hugh Barnard replied on the discussion topic 2 bugs in group forums in the group Elgg Technical Support
    I found 3 really severe bugs on the group forum: When trying to add a comment to a topic you started and you do this not with tinyMCE but remove the editor first, then the comment form is filled with your initial post and any text you add is...
    • 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.