| 1 |
README for volunteer timeslots module for Drupal 5.x:
|
| 2 |
|
| 3 |
Installation:
|
| 4 |
----------
|
| 5 |
|
| 6 |
The event module *must* be installed and configured before you install this
|
| 7 |
module. This module depends upon the event module to function.
|
| 8 |
|
| 9 |
Upload this module's folder with all files to your modules directory and
|
| 10 |
activate at admin/modules. The new table will be created automatically and
|
| 11 |
options set using the install file.
|
| 12 |
|
| 13 |
This module can also use information in user profiles created using the profile
|
| 14 |
module. However, the profile module is not required and may be activated or
|
| 15 |
configured after this module is installed.
|
| 16 |
|
| 17 |
Using the module:
|
| 18 |
----------
|
| 19 |
|
| 20 |
This module defines a new node type "event with volunteer timeslots". Assign
|
| 21 |
permissions to create and edit this content type at admin/access. Users with
|
| 22 |
the "administer volunteer events" permission will be able to edit all events
|
| 23 |
created with this module, regardless of who the original author is. In
|
| 24 |
addition, users with this permission can clear all volunteers from the event
|
| 25 |
via a check box on the node edit form. Finally, users with this permission
|
| 26 |
as well as the node's author and the event's organizers can remove or add
|
| 27 |
individual volunteers when viewing the event's time slots. The event's
|
| 28 |
organizers may also all edit the event.
|
| 29 |
|
| 30 |
Change the settings at admin/settings/volunteer_timeslots to prevent the
|
| 31 |
node author from adding or removing volunteers, or change the setting to
|
| 32 |
prevent organizers from being able to edit the event. You can also change
|
| 33 |
the timing of reminder e-mails (see below). Finally, if the profile module
|
| 34 |
is enabled you can choose from among the public and private (but not hidden)
|
| 35 |
profile fields to disaply along with the user name in the volunteer roster for
|
| 36 |
each event. This might be used, for example, to dsiplay the real name and phone
|
| 37 |
number of each user who volunteered if you wish to contact the volunteers
|
| 38 |
before the event.
|
| 39 |
|
| 40 |
When creating a new event, be sure to set both the start and end times. You
|
| 41 |
will also need to supply at least one local username as an organizer, choose
|
| 42 |
the duration of each time slot, and the maximum number of volunteers for each
|
| 43 |
slot. The last time slot may be shorter than the others if the time between the
|
| 44 |
event start and end is not an integer multiple of the selected duration per slot.
|
| 45 |
This module enforces a minimum event duration equal to the duration of one slot.
|
| 46 |
|
| 47 |
All registered users of your site will be able to sign up for one or more
|
| 48 |
time slots for each event. After checking/unchecking the box in that
|
| 49 |
time slot, they submit the form. A new revision of the node is saved with
|
| 50 |
the updated volunteer information, and the user will receive an e-mail with
|
| 51 |
the event's information if the checkbox at the bottom of the form is set.
|
| 52 |
The e-mail address of the first organizer is used as the return address.
|
| 53 |
|
| 54 |
This module implements a cron hook to send a reminder e-mail in advance
|
| 55 |
to all users who have volunteered for an event. The timing of the e-mail
|
| 56 |
depends upon the value set in the module settings, as well as when and how often
|
| 57 |
cron.php is run on your site. The e-mail address of the first organizer is
|
| 58 |
used as the return address. Only one reminder is sent- users who sign up
|
| 59 |
after this point will not get a reminder.
|
| 60 |
|
| 61 |
Theming:
|
| 62 |
-------
|
| 63 |
|
| 64 |
The file volunteer_timeslots.css contains CSS that is added to every page.
|
| 65 |
This will be more efficient if you turn on the CSS aggregator at
|
| 66 |
admin/settings/performance
|
| 67 |
|
| 68 |
This module only defines two themable functions:
|
| 69 |
|
| 70 |
theme_timeslots_signup_form
|
| 71 |
This function organizes the form elements of the signup form so that they are
|
| 72 |
displayed in a table, and adds the class "volunteer-timeslots" to the table.
|
| 73 |
|
| 74 |
theme_timeslots_roster_form
|
| 75 |
This function organized the volunteer roster and the texfields for notes that
|
| 76 |
are visible to admins below the signup form.
|
| 77 |
|
| 78 |
Trouble shooting:
|
| 79 |
--------
|
| 80 |
Some users have experienced an error where only one time slot is shown or
|
| 81 |
created in the event form. The reason for this is that this modules
|
| 82 |
requeries some processing of the date fields by the event module to
|
| 83 |
occur before it can understand/manipulate them.
|
| 84 |
|
| 85 |
If you experience this problem, check the {system} table and make sure
|
| 86 |
that this module's weight is set to be equal to or greater than that of
|
| 87 |
the event module. If you are not familiar with the necessary SQL, you
|
| 88 |
can try using the module weight module:
|
| 89 |
http://drupal.org/project/moduleweight
|