Hugh Barnard

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Activity

  • Hugh Barnard commented on the plugin OAuth
    Hi Justin Making some progress, got some of the code from the wiki into my plugin and set some dummy parameters into the oauth plugin itself...now I've got my plugin, oauth etc. enabled and I've logged in as a 'user'. I go to...
  • Hugh Barnard commented on the plugin OAuth
    Sorry, answered my own question, I think: http://docs.elgg.org/wiki/OAuth#Using_your_Consumer
  • Hugh Barnard commented on the plugin OAuth
    Hi Justin Got the plugin installed (after dealing with twitterservice goetcha) and thank you for it. I'm planning to use it outbound to consume a remote service. I've found the Registered Consumer Applications and think I understand how to register...
  • 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 commented on the plugin Site Access
    Hi folks I just added this as a quick hack in start.php to prevent spam from info and cn domains on a UK website. It's beneath:   if (extension_loaded("gd")) {        if (!siteaccess_validate_captcha())...
  • 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.