Rich Smith

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Rich Smith replied on the discussion topic Trying to get a list of blog entities
    OK, so I'm getting further into the nittygritty of my plugin and I'm stumped again!  I would like to be able to filter blog entries that contain ALL of a certain subset of tags. For instance, I want all blog posts that contain BOTH 'tag1' AND... view reply
  • Rich Smith replied on the discussion topic Help!!!
    Matt!  Once again I am in your debt!  I built a quick proof of concept and this will work exactly like I want... Thanks again! view reply
  • Rich Smith added a new discussion topic Help!!! in the group Plugin Development
    Hi All – I need help!  I’m working on my master’s degree and I’m trying to build a slightly different view into ELGG for my final project.  I am a fair to middlin’ java programmer but I’m on the noob...
    • Definitely feasible, there is a hook for 'object', 'create' you can use to alter the blog/file/whatever at the time of creation and tag it (either as a real public-facing tag or by hidden metadata)

      The important thing here is establishing a way to tell that it was created in a 'module' - most easily accomplished by setting a session variable when the user enters the module and removing it when they leave.  If the session variable exists when you inspect the object created then you tag it, otherwise leave it alone.

    • Matt!  Once again I am in your debt!  I built a quick proof of concept and this will work exactly like I want...

      Thanks again!

  • Rich Smith joined the group Plugin Development
  • Rich Smith replied on the discussion topic Trying to get a list of blog entities
    Matt - Thanks so much!!!  That really helped! Cheers, Rich. view reply
  • Rich Smith added a new discussion topic Trying to get a list of blog entities in the group Beginning Developers
    Hi!  I'm very new at elgg and I'm trying to get an array of blog posts filtered by: a particular group a particular tag I think I could use a group guid to search by group and I think I need to use elgg_get_entities_from_metadata...
    • I want to return all blog postings by users who belong to the group mygroup and who have tagged the blog entry with mytag

      Note: this can be interpreted as 'blogs within a group' or 'blogs anywhere posted by members of a group' - and those are two different things.  I'll assume you meant 'blogs within a group'.

      $options = array(

        'type' => 'object',

        'subtype' => 'blog',

        'container_guid' => $group->guid, // this is what limits the search to this group,

        'limit' => 10, // or however many you want, false for all of them, but not recommended

        'metadata_name_value_pairs' => array('name' => 'tags', 'value' => 'mytag'),  // limit to a specific tag

      );

    • Matt - Thanks so much!!!  That really helped!

      Cheers,

      Rich.

    • OK, so I'm getting further into the nittygritty of my plugin and I'm stumped again!  I would like to be able to filter blog entries that contain ALL of a certain subset of tags.

      For instance, I want all blog posts that contain BOTH 'tag1' AND 'tag2'.

      I've been filter on 'tag1' OR 'tag2' but I'd like to filter on 'tag1' AND 'tag2'.

      I'm wondering if there is an easy way to do this?

      Thanks!

      Rich.

  • Rich Smith joined the group Beginning Developers