Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • gspera commented on the plugin Digest
    FYI, I was going crazy trying to figure out why this wouldn't work on my site (elgg v. 1.8). The problem was not with the plugin, but with my crontab setup--Elgg uses GET to retrieve a page and trigger the crontab, but I didn't have GET installed on...
  • gspera replied on the discussion topic elgg_access_collections
    Steve, A belated thank you--I think this will work much better than my workaround (a function that manually lists group ids, and which would quickly become unwieldy). --Gabe view reply
  • gspera added a new discussion topic elgg_access_collections in the group Plugin Development
    Hello all! Can someone tell me how to grab the id from the elgg_access_collections when all I have is the owner_guid? (The function get_access_collection() seems to require the id, which is the one piece of info that I'm trying to get.) I'm trying...
    • Within most forms, elgg_get_page_owner_entity() will return the group. So:

      $owner = elgg_get_page_owner_entity();
      if ($owner instanceof ElggGroup) {
          $acl = $owner->group_acl;
      }

      I have a brand new plugin that may help you though. It gives you a cleaner (in my opinion) API to modify the default access level and the options. You create a modifier class (this is the default one that comes with the plugin) and it gets passed useful context info about the page owner/group and all the data passed to the input/access view.

    • Steve,

      A belated thank you--I think this will work much better than my workaround (a function that manually lists group ids, and which would quickly become unwieldy).

      --Gabe

  • gspera joined the group Plugin Development