A lot of events happen as a team, such as intramural sports teams or competitions. I think it would be great if this module supported signing up as a group, either by using organic groups or by providing just a simple groups interface of a group name and users.

Comments

Susurrus’s picture

I think providing the feature w/o OG support first would be a great first step. Just allow a user to specify other users (by username or UID) in a textfield on the signup page, possibly with a textfield for team name. Probably going to want to restrict members to a single group though.

If people are interested in this, I can try to whip up a patch. I'd like to get this setup for competitions at my events.

dww’s picture

Sounds related to #45248: Ability to signup for a friend. It's not *exactly* duplicate, but close.

However, I don't know that I like the approach of signing up as a group of users all at once. What if someone in the group can't make it? Shouldn't they have to signup themselves to confirm they can make it or not? I don't think it makes sense to commit code to the "core" signup module to handle this (apparently, rare) use-case.

Perhaps you should write this as a separate module that you contribute and maintain, which provides whatever group-specific UI you want, and just invokes the appropriate signup API calls to actually signup each user to the given node...

Susurrus’s picture

As I already have two modules to maintain, I can't start to maintain another module. I could, however, provide another submodule that could be part of signup called "signup-group" that could handle group signups and even possibly Organic Group registration. I'm not sure how easy it would be to alter things to get that functionality, but I might give it a shot if I have time.

The reason I'd want a single group to signup is its many possibilities for student events at a school or university. Whenever you have something like that, the registration process is pretty casual and it's really just a single person emails a coordinator with a list of names or student IDs to all register as a group, sometimes with a team name. I'm in uni and I end up doing this all the time for engineering events or intramural sports.

I would think that having group registration an option would be pretty standard for a registration module. I actually thought this module would allow that functionality from the start, but maybe I'm not very familiar with how this module is commonly used.

dww’s picture

@Susurrus: Check out the list of modules I maintain at http://drupal.org/project/user/dww (which doesn't even include many of the ones I co-maintain). ;) You're not going to convince me to add more code to signup.module for myself to support and maintain going forward on the basis of your 2 modules and not wanting to maintain a 3rd. ;)

I guess we'll see if anyone else cares about this functionality and is willing to make it happen.

dww’s picture

Status: Active » Closed (won't fix)

Seems no one else cares about this. Feel free to post a link in here to the project page for your new module, should you choose to go that route. ;) Thanks.

scottrigby’s picture

Version: 5.x-2.x-dev » 6.x-1.x-dev
Assigned: Unassigned » scottrigby
Status: Closed (won't fix) » Active

This is a pretty old issue but we needed to provide the Signup OG feature for a site.

We're also working on #45248: Ability to signup for a friend to signup multiple seats. But I see the current issue as a separate feature - allowing event admins (who are also OG admins) to signup all members of the OG groups to an event (only OGs which they also administer of course). This is a very specific case as dww points out, and wouldn't be a good idea for most groups - but like Susurrus mentions above there are some cases where this makes a lot of sense for certain types of groups/sites.

Also working on an automated option for this - so members of selected OGs will be automatically signed up for Signup-able events that are posted to specified contexts (other OG groups etc). I'm not sure if this belongs in the same module or not...

Anyway -- based on dww's suggestion above, I'm working on a submodule for this (signup_og sound ok?). I'll be cleaning out the site-specific stuff this week & will post here for advice/review :)

scottrigby’s picture

Title: Support for signing up as a group with restrictions » Sign up OG members to an event

Probably should disambiguate the issue title...

psynaptic’s picture

StatusFileSize
new1.52 KB

I've done this in a custom module if you're interested.

m_roosa’s picture

I had to make two small changes to psynaptic's module to get it to work

function og_members_signup_form($form_state, $node) {

to

function og_members_signup_form($form_state, $node=null) {

and

    $node = node_load($nid);

to

    $node = node_load(array(nid=>$nid));

But, I am also looking for a possible solution for a group sign up to an event (as opposed to signing everyone in the group up, it would treat the group as a user who is signing up for an event). The group has a set of technical information (such as the manager of the group), and allows users to sign up to the group. Any user in the group can then sign up the group for the event, instead of just themselves (but not necessarily signing up the other members of the group).

I dont know if this goes away from the original idea with the post, but I believe Susurrus was hinting at the same functionality.

jenlampton’s picture

StatusFileSize
new1.93 KB

I had to make the following changes to the module to get it working on my site...

1) the same change @m_roosa reported above setting the default value of node to null on line 28:

function og_members_signup_form($form_state, $node=NULL) {

2) On line 46 I also removed the line:

'#disabled' => $default,

I think line 46 was in there because there was no code which removed signups if you un-check a the box for a group. I fixed this by adding the following code at line 75.

  if ($value === 0) { 
      if (og_members_signup_get($gnid, $nid)) { 
        // Remove the group.
        og_members_signup_remove($gnid); 
        // Get all the users in this group who were signed up.
        $query = db_query("SELECT DISTINCT s.sid FROM {signup_log} s 
          INNER JOIN {og_uid} u ON s.uid = u.uid WHERE u.nid = %d", $gnid);
        while ($row = db_fetch_object($query)){
          // Remove each user in the group.
          signup_cancel_signup($row->sid);
        }
      }
    } 
  }

re-rolled tar of module attached.

dpi’s picture

sub

dalla777’s picture

Title: Sign up OG members to an event » Sign up group to an event

Wondering if anyone has had any luck registering a group to an event--not the individual users but the actual group node. Thanks!

ambereyes’s picture

subscribing

avpaderno’s picture

Assigned: scottrigby » Unassigned
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, as it has been created for a release that is now not supported.