add volunteer name to 'clear' area

Viewing 8 reply threads
  • Author
    Posts
    • #4313
      karen siracusa
      Participant

      Looking forward to working a lot with PTA Volunteer Plugin…!

      As administrator of a signup sheet, for an ongoing volunteer job, I would like to login to WP and then enter all my volunteers for a signup sheet for next few months… However, that means that only I (when logged in) can delete (ie ‘clear’) the person I entered.
      This seems hard to do, as the view showing ‘clear’ does not say who is actually signed up… I have to kind of guess who I might be clearing

      See below
      Click on Clear to remove yourself from a signup.

      Title Date Task/Item Start Time End Time Item Details Item Qty
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 26, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 26, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 26, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear
      Welcome Circle July 26, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear


      What would help would be to see something like

      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear Jane D.
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear Bob S.
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear Carol P.
      Welcome Circle July 19, 2015 Set up Welcome Circle and Greet and Clean up 9:45 am 12:15 pm N/A 1 Clear Lewis G.

      Thanks!!!!

    • #4317
      Stephen Sherrard
      Keymaster

      There is a bit of a work around for this if your volunteers also have user accounts on your site. If you make the sign-ups publicly accessible and log-out of your admin account (so you are a guest user), then if you sign up for something and use the email associated with each volunteer’s user account, my plugin will assign that sign-up to that user, so then if they sign in they will be able to see and clear their own sign-ups. After you enter all your sign-ups, you can always turn back on the option to force people to login, if you don’t want the public to view & sign-up.

      That’s the only way it can work right now if you are manually entering sign-ups for your volunteers, but want them to be able to see what they signed up for. Just make sure you are NOT logged in so that the sign-up gets associated with the user_id that matches the email you enter.

      As far as seeing the names when you want to clear someone from a sign-up, that can be done from the admin dashboard. Go to “All Sheets” in my plugin’s menu, then click on the name of the sheet, or hover over it and click on “View Sign-Ups”, and then you can see a complete list of the sign-ups, including phone, email, and full name, and there is a “clear spot” link next to row allowing you to clear any sign-up you want.

    • #7798
      Ulf Schenk
      Participant

      Hi Stephen,

      This sounds counter intuitive.
      I as an admin for example forgot to sign out before I added signups for other people.
      The result is that these persons are now listed in their time slot, but the tasks are shown in my list of upcoming events.

      I would think that if I signup for someone else, the system should never take my user id into account. This could be determined by the email address entered into the signup field. If it is the logged in users email address, link the user_id to the record. If I enter a different persons email address treat it like an anonymous signup and do not connect it to my account?

      This would allow me to signup for someone else in a transparent way. Let me know if that might be something that could be improved and I can try to fix it.

      Cheers,
      Ulf

    • #7800
      Stephen Sherrard
      Keymaster

      Ulf,

      Are you using the latest version? There is an ajax user/volunteer search function now that allows you to find and sign-up for others easily from the front end (when you are logged in as admin or sign-up sheet manager now)… if you now do it that way, it will store the correct user id for the person that you sign-up for the form, and then the task and clear link will show on their list when they are signed in to their user account.

      Just start typing in the first name or last name field of the sign-up form while you are logged in, and you’ll see some results pop under that you can select (if there are any matches).

    • #7802
      Ulf Schenk
      Participant

      Thanks for getting back.

      I saw the lookup query while entering the name.
      However my situation is different in that the persons I signup for are not users in wordpress. I enable my sheets for public signup and these persons are not stored in the system.

      Maybe this is a corner case that sets my user_id incorrectly.

      Thanks,
      Ulf

    • #7804
      Stephen Sherrard
      Keymaster

      Yes, that is how it works… if it’s not a user, then how else would my plugin know who the guest visitor is to show them their own clear links? It simply stores a user ID for the matching user, or whomever is logged in at the time (when no matching user).

      Not much I can do about your specific situation as there is no way for me to track these guests/visitors safely, unless you want them to create logins and passwords, in which case, that’s what a WordPress user account is for. =)

    • #7806
      Ulf Schenk
      Participant

      Hm,

      I guess you refer to the situation when the options require a person to be logged in. In this case storing a user_id might make sense even if it is mine. But I refer to the situation where the option “Login required?” is set to false.

      If a guest signs up (without logging in) then the code also has no access to a user_id and stores the signup as is without user_id (the field user_id is 0). The guest has of course no “clear” link, but I as admin or a user having the right permission has access to the clear link for this signup.

      If I as a logged in user sign up in behalf for another person I would expect exactly the same behavior, meaning my user_id is not listed in the guests signup record.
      Right now my user id is listed in their signup records if I sign up for them in their behalf. If they sign up by them self, it is not listed (field user_id is 0).

      Here the code that makes sense from my point of view

      if (login required == true) {
         validate entered information.
         Store current users id in field user_id if the entered data can not be correlated to any user  in WP.
      }
      else {
         validate entered information.
         if ( entered information can be correlated to a user) {
            store that entered users id in field user_id.
         } else {
            store 0 in field user_id.
         }
      }
      

      Cheers,
      Ulf

    • #7808
      Stephen Sherrard
      Keymaster

      No, I understand what you are saying about not requiring user accounts and the signups.

      The code is designed to get the current user id if there is one from the form, otherwise it uses the current user id (which would be you, in this case). Some people like that feature, because if the admin is managing all the sign-ups, then they also have a nice list of signups on the front end main signup page that they can easily clear, if needed, as opposed to hunting through individual sheets in the back end to find the signup they need to clear.

      Perhaps that can be another option/setting for a future update.

    • #7810
      Ulf Schenk
      Participant

      Oh, now I understand.

      This is a feature for the admin rather than a bug.

      Thanks,
      Ulf

Viewing 8 reply threads
  • The topic ‘add volunteer name to 'clear' area’ is closed to new replies.