Currently Volunteer module allows to associate a signup process to one civicrm group. By theming, I suppose, would possible to use the module not just for volunteers but for attendee, partecipants and so on.

But if you are interested to associate 2 or more kind of users (says either volunteers and partecipants) simply you can't.

Modifying the code (according to attached file) is possible to manage different group, subscriptions, different default messages.

Suggestion

There are a lot of changes around in the file that could allows to achieve this result:

  • volunteer_settings() s on 'defauilt settings' adding a filed to change the number of groups/type managed bye the module; clearly setting this value allows to use the module exactly as for now
  • some change is needed in db structure as follows:
    ALTER TABLE `volunteer` ADD `vid` INT( 10 ) UNSIGNED NOT NULL AFTER `nid`;
    ALTER TABLE `volunteer` DROP PRIMARY KEY , ADD PRIMARY KEY ( `nid` , `vid` )
    
    ALTER TABLE `volunteer_contact_event` ADD `vid` INT( 10 ) UNSIGNED NOT NULL AFTER `nid`;
    ALTER TABLE `volunteer` DROP PRIMARY KEY , ADD PRIMARY KEY ( `nid` , `vid` , `cid`);
    
  • addictional parameter $div
  • , to take in account different groups, will be introduced in almost every function

It works in my local copy. If someone is interested I could upload the file or apply for CVS access and commit changes.

ema

CommentFileSizeAuthor
#2 file_7.patch117.1 KBEmanueleQuinto
screenfh471.png70.51 KBEmanueleQuinto

Comments

robin monks’s picture

Yes, please create a patch of your changes ( http://drupal.org/diffandpatch ) and upload the result to this issue for review. It sounds like a worthwhile feature.

Robin

EmanueleQuinto’s picture

StatusFileSize
new117.1 KB

Patch attached. But probably not so useful, because "diff -uF^function created just one big change (@@ -1,1394 +1,1281 @@).

Diffed with

// $Id: volunteer.module,v 1.58 2006/05/16 20:22:37 killes Exp $

ema