Carl L

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Make Task/Item field in "Edit Tasks" longer #19282

    Carl L
    Participant

    Thank you for increasing the size. I prefer a textarea so that the list manager can adjust the field as necessary. The customization shown Oct 1 post still work with ver 2.3.0.

  • in reply to: Multiple details fields for a task #19280

    Carl L
    Participant

    Update for ver 2.3.0

    The intention of this edit is to provide the volunteer with a larger textbox for the details
    and also prefill with a numeral 1. and numeral 2. on separate lines. This change permits
    the prompt (in the second edit below) to ask the volunteer to enter one detail on line 1. and
    another detail on line 2.
    Modify form **pta-volunteer-sign-up-sheets/classes/class-pta_sus_public.php**
    in the function display_signup_form
    near bottom, search for If details are needed
    lokk in the conditional
    if ($task->need_details == “YES”) {
    on the input field
    change:

    ver 2.3.0
    <input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($posted[‘signup_item’])) ? stripslashes(esc_attr($posted[‘signup_item’])) : ”).'” ‘.esc_attr($details_required).’ />

    to (the new line after 1. is important):
    ver 2.3.0 <textarea id=”signup_item” name=”signup_item” rows=”2″ cols=”50″ ‘.esc_attr($details_required).’>’.((isset($posted[‘signup_item’])) ? stripslashes(esc_attr($posted[‘signup_item’])) : ‘1.
    2.’).esc_attr($details_required).'</textarea>

    The intention of this edit is to provide a larger box for the form manager to compose the
    prompt for the box where details are to be entered during signup.
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php
    in the function display_tasks_form
    search for: Details text:
    (about 80% through file)
    On the next line, replace:
    ver 2.1.0 – 2.3.0
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;

    with:
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’;

  • in reply to: Additional Volunteer Information #17998

    Carl L
    Participant

    We have found it OK to ask for volunteers to respond to a couple questions. The main issue is that the same box appears for all sign up forms. In my modification, the textbox looks like the lines below, and the prompt needs to tell them what to enter on each line. There is no validation that they have filled out each line, but it works for us. See my post under the thread ‘Multiple details fields for a task’.

    1.
    2.

  • in reply to: Multiple details fields for a task #17996

    Carl L
    Participant

    Update for version 2.2.0

    The intention of this edit is to provide the volunteer with a larger textbox for the details
    and also prefill with a numeral 1. and numeral 2. on separate lines. This change permits
    the prompt (in the second edit below) to ask the volunteer to enter one detail on line 1. and
    another detail on line 2.
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_public.php
    in the function display_signup_form
    near bottom, search for $task->details_text
    on the next field
    change:

    ver 2.2.0
    <input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($_POST[‘signup_item’])) ? stripslashes(esc_attr($_POST[‘signup_item’])) : ”).'” ‘.esc_attr($details_required).’ />

    to (the new line after 1. is important):
    ver 2.2.0
    <textarea id=”signup_item” name=”signup_item” rows=”2″ cols=”50″ ‘.esc_attr($details_required).’>’.((isset($_POST[‘signup_item’])) ? stripslashes(esc_attr($_POST[‘signup_item’])) : ‘1.
    2.’).esc_attr($details_required).'</textarea>

  • in reply to: changing column size #17994

    Carl L
    Participant

    I’m still interested in an increase in the size of this field because we sometimes as people to respond to a couple questions.

  • in reply to: Make Task/Item field in "Edit Tasks" longer #17992

    Carl L
    Participant

    I agree. If you are comfortable editing the code, below is my edit to fix this issue. This modification replaces the input line with a textarea and you should be able to drag the corner to change the size. Be aware that this does not change the database field size.

    The intention of this edit is to provide a larger box for the form manager to compose the
    prompt for the box where details are to be entered during signup.
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php
    in the function display_tasks_form
    search for: Details label
    (about 80% through file)
    On the next line, replace:
    ver 2.2.0
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;

    with:
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’;

  • in reply to: e-mail validation #15032

    Carl L
    Participant

    I also should have mentioned that my evaluations were done for an authenticated user. When the failed submission reloaded for me, the spaces were gone. The authentication may have affected the way the e-mail address was reloaded upon a failed submission. (I added spaces based on reports from some volunteers that they could not see a problem in the e-mail address that they were trying to submit, so it occurred to me to check spaces.)

  • in reply to: e-mail validation #15026

    Carl L
    Participant

    Thanks!

  • in reply to: details/item text #15024

    Carl L
    Participant

    Thank you. I understand that you were only expecting a short response when you built the plugin. We need to ask the volunteers a couple questions, and by the time that they type a sentence they have hit the limit. I realized that it was pretty easy for a volunteer to hit the limit of 300 char, so I changed my limit to varchar(500). This post is 403 characters. The varchar storage is pretty efficient.

  • in reply to: More Features or reworked "Pro" Version? #15012

    Carl L
    Participant

    would be interested in a paid version. Already made a donation for the current version. We need only minor tweaks for our current needs, but we have been working with the plugin for only a couple months. We appreciate the new features in the recent version 2.0.

  • in reply to: Multiple details fields for a task #14985

    Carl L
    Participant

    update for ver 2.0 – 2.0.2. These have been verified in my installation.

    The intention of this edit is to provide the volunteer with a larger textbox for the details and also prefill with a numeral 1. and numeral 2. on separate lines. This change permits the prompt (in the second edit below) to ask the volunteer to enter one detail on line 1. and another detail on line 2.
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_public.php
    in the function display_signup_form near bottom, search for $task->details_text
    on the next field change:

    ver 1.20 <input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ”).'” ‘.esc_attr($details_required).’ />

    to (the new line after 1. is important for my use):
    ver 1.20 <textarea id=”signup_item” name=”signup_item” rows=”2″ cols=”50″ ‘.esc_attr($details_required).’>’.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ‘1.
    2.’).'</textarea>

    The intention of this edit is to provide a larger box for the form manager to compose the prompt for the box where details are to be entered during signup.
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php in the function display_tasks_form. Search for: Details label (about 80% through file)
    On the next line, replace:
    ver 1.20
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;

    with:
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’;

  • in reply to: Multiple details fields for a task #14228

    Carl L
    Participant

    I made the following code modifications to ask for multiple details in the existing details field. Any site manager should take care making code modifications and know what you are doing. Modifying a live plugin is NOT recommended. I make these suggestions after testing on my site, but they may not work on your site. Backup your code if you make modifications.

    The intention of this edit is to provide the sign-up volunteer with a larger textbox for entering the details and also pre-fill the box with a numeral ‘1.’ and numeral ‘2.’ on separate lines. This change permits the prompt (in the second edit below) to ask the volunteer to enter one detail on line ‘1.’ and another detail on line ‘2.’
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_public.php
    in the function display_signup_form
    near bottom, search for $task->details_text
    on the next line
    change:

    <input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ”).'” />

    to (the new line after 1. is important):
    <textarea id=”signup_item” name=”signup_item”>’.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ‘1.
    2.’).'</textarea>

    The intention of the next edit is to provide a larger box for the form manager to compose the prompt for the box where details are to be entered during signup. By default, this field is pre-filled with “Item you are bringing” but during creation of the sign-up form, the text can be edited to ask the volunteer to enter something on line 1. and something else on line 2.
    Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php
    in the function display_tasks_form
    search for: Details label
    (about 80% through file)

    On the next line, replace:
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;

    with:
    echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’;

    Finally, it would be good if the database field of the volunteer detail response was larger. Currently it is 100 characters and the form returns an error if the volunteer tries to enter more than 100 characters. The limit for the size of the prompt is 200 characters.

  • in reply to: Multiple details fields for a task #14117

    Carl L
    Participant

    One option is to ask the volunteers to furnish all the desired information in the one textbox, but that there is no submission validation.

    I also would be interested to pay for an add-on that would permit more custom fields, but my organization can’t solely support the level of programming described by Mr. Sherrard. In our case, our current need is for a form with a required ‘Y/N’ radio button, but it would be OK to have another text field. We are just asking in the submission for the user to provide both pieces of information in the one box.

Viewing 13 posts - 1 through 13 (of 13 total)