Download & Extend

Make individual timeslots visible in the calendar

Project:Event with volunteer time slots
Version:4.7.x-1.0
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

Hi there,
great module. I just wondered wether there would be the chance to display all the timeslots that are allocated to somebody in the event calendar as well. I have slightly changed the wording inside the module as I would like to use it as a scheduling tool for individual supervsions during a one-week seminar. The seminar events show up in the calendar already and I would like the allocated supervision (i.e. volunteer) timeslots to display as well.

Comments

#1

Sorry, I don't really understand the question - especially "allocated to someone".

#2

To explain the "allocation: as I understand (and experienced it) in your module volunteers can either choose a specific time-slot or an event admin allocates specific slots to a specific user. But that is not really my issue. I was simply wondering whether it is possible to also display those time slots with the names of the volunteer users in a normal calender view? Currently it seems one can only use the specific overview which your module provides or have I got that wrong?

#3

I'm not sure which "normal" calender view you are referring to- you mean the single day view of the event module? Or, are you using some other module to see events (like the Views module)? Are you essentially looking for a teaser that contains the volunteer roster?

Possibly the solution would be to change hook_view() so that a teaser can be generated at the theme level:

<?php
/**
* Implementation of hook_view().
*
*/
function volunteer_timeslots_view(&$node, $teaser = FALSE, $page = FALSE) {
  global
$user;

 
$node = node_prepare($node, $teaser);
 
  if (!
$teaser) {
   
$admin = (user_access('administer volunteer events') ||
             ((
$user->uid == $node->uid) && variable_get('volunteer_timeslots_author_manages', TRUE)) ||
             
in_array($user->uid, $node->timeslots_organizers)); //user is allowed to remove/add volunteers
   
$output = _timeslots_signup_form($node, $admin);
   
    if (
$admin) {
     
$output .= _timeslots_roster_form($node);    
    }
   
   
$node->body .= $output;
  }
}
?>

#4

Hi pwolanin,
Thanks a lot for that. I will have to have closer look at that later because I'm a relative Drupal newbie and need a bit longer. But just to make sure that I haven't got things totally wrong: Your module offers a list of time-slots for which volunteers can sign up by ticking a box next to a time slot, right?
Currently only the event that contains those time-slots is visible in the event module calendar (monthly, weekly, daily view). What I would like to have is that as soon as a person signs up for a time-slot, this also shows up as an event and is displayed with the user's name via the event module calendar.
I hope that makes things clearer, or does it?

#5

Hmm, ok - you want each time slot to show up as/be a separate event?

If so, that maybe quite a bit harder.

Can you add another content type, event-enable it, and have your users each create a new event for their appointment?

#6

That is probably the way forward. However, I would then have to give up on the volunteer module, becaues I don't want people to do things twice. It is a shame because I really like the interface. It would be great to have it as a sign-up interface for those user roles that are allowed to sign up and once they've signed up it is mirrored in the event module calendar. As I have not the skills to do this, maybe think about it as a suggestion for later versions? Great job anyway.
cheers, xl

#7

Status:active» closed (works as designed)
nobody click here