Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • nalonso replied on the discussion topic Get a group field created with Profile Manager
    Answering my own question: Just leave the query like it is, and check for the metatag "AllowDirectRegistration" before including the options in the dropdown box, like: foreach($groups as $group){     if... view reply
  • nalonso added a new discussion topic Get a group field created with Profile Manager in the group Beginning Developers
    Hi all! I'm developing a plugin that modifies the registration form, by allowing the new users to directly subscribe to some groups, previously tagged with a Group Profile Fields, created with Jeroen Dalsem's Profile Manager...
    • Answering my own question:

      Just leave the query like it is, and check for the metatag "AllowDirectRegistration" before including the options in the dropdown box, like:

      foreach($groups as $group){

          if ($group->AllowDirectRegistration == 'yes') {
                    $options_values[$group->guid] = $group->name;
          }
      }

      Best regards,

      nalonso

  • nalonso joined the group Beginning Developers
  • nalonso replied on the discussion topic Tags on Groups
    Stan: Thank you very much for the quick answer. I'll try your advice and let you know.  I'm aware that this "closed group policy" is against the "social" concept of elgg, but that's a requirement from the... view reply
  • nalonso added a new discussion topic Tags on Groups in the group General Discussion
    Hi all: I'm working on a project that requires a special behavior for groups. In my site, all groups are closed by definition, but you should be able to subscribe directly to one (and only one) of them. I've modified the registration form...
    • I believe that the subgroups concept will get you 90% of the way there - for example, you can make subgroups closed (moderated) and visible to group members only, so you'd have to join the parent group in order to see anything inside. Keep in mind that this goes against the "social" concept of Elgg - others can't see what's being posted to closed groups, so it takes away from the community aspect.

      Regarding your question around tagging groups: you can set a metadata flag and look groups up by that flag when displaying the registration page (see http://learn.elgg.org/en/stable/design/database.html#metadata). Personally, I'm not a huge fan of how metadata is stored, so I would be tempted to use relationships (http://learn.elgg.org/en/stable/design/database.html#relationships) even if it feels like a stretch.

    • Stan:

      Thank you very much for the quick answer. I'll try your advice and let you know.  I'm aware that this "closed group policy" is against the "social" concept of elgg, but that's a requirement from the owner of the site, due to the nature of the community intended.

      Best regards,

      nalonso

       

    • I agree with Stan, relationships are probably what you want. E.g. a "home_display" relationship between the group and the site entity, then use that via elgg_get_entities_from_relationships().