Forum Replies Created

Viewing 15 replies - 391 through 405 (of 478 total)
  • Plugin Author RLDD

    (@rermis)

    Hi headhunterz,

    Yes, this is achievable with the current functionality. Any user that is assigned as a supervisor will receive an email when their assigned employees submit a time period. It is not dependent on WordPress role.

    Hope this answers your question!

    Plugin Author RLDD

    (@rermis)

    Hi again,

    I can try to help, but I don’t have the files you’ve changed, so it’s pure speculation.

    1) Make sure the query is pulling vabb entries from the db. This occurs in time_cal.php, in the $entry_query_string variable. You might have to run the query manually and/or echo $entry_query_string variable to the interface.

    2) Make sure the entries (from $entry_query_string variable) are loaded into the corresponding JS variables in time_load_entries.php. You can see these values from the F12 console.

    Plugin Author RLDD

    (@rermis)

    Hi subhamkotnala,

    If vabb is 0 after saving, then it might not be successfully setting the JS vabb array from the db values on time_cal.php.

    Plugin Author RLDD

    (@rermis)

    If this issue persists, click ‘Support & Diagnostics’ from the plugin admin page and we will follow up. Thank you!

    Plugin Author RLDD

    (@rermis)

    Hi, I would be speculating on the issue without having all the files that have changed. It’s not something I can support since it’s not really apart of the original plugin.

    But, I can try to assist. To summarize the issue, are you saying that your addition of Ill is working, and VABB is not (as far as displaying)? At first glance, I recommend stepping through and ensuring both variables are handled the same way and subject to identical operations.

    Plugin Author RLDD

    (@rermis)

    Hi there,

    This is a start, but you may need to adjust it for perfection. This will work if the timecard is set up for “Simple” entry type (the first option under settings) on the admin page.

    <script type="text/javascript">
    function preset_wkd() {
      if(parseInt(document.getElementById('TOTamt').value.replace('$',''))>0) return false;
      var dyt_days=document.getElementsByClassName('dyt_day');
      for(var i = 0; i < dyt_days.length; i++) {
        if(!dyt_days[i].innerHTML.includes('Sat')>0 && !dyt_days[i].innerHTML.includes('Sun')>0) {
          dyt_days[i].lastElementChild.firstElementChild.nextElementSibling.value=8;
      }}
      sumrows();
    }
    window.onload=function(){setInterval(function(){preset_wkd()},3000);};
    </script>

    This can be pasted on the same page as the shortcode. It will not affect the admin view (if accessed on the WP admin dashboard side). Let me know if you have any issues!

    Plugin Author RLDD

    (@rermis)

    Sure, this forum won’t allow email addresses in replies. If there is something else you need assistance with (like billing, Pro add-on, or troubleshooting), please contact us in the upper right corner of the plugin admin page (support & diagnostics). Thank you!

    Plugin Author RLDD

    (@rermis)

    Hi subhamkotnala. Just to emphasize… your plugin will not be able to receive future updates to these files without an update overwriting your modifications. This would exclude you from security updates as well as being compatible with the PRO add-on. But also, if in the future we create an option to allow more dropdown items, you will not be able to use it.

    I have looked at sumrows(), it looks like the new values Ill and vabb need to be added to the TOTamt (B), this occurs immediately before summary_updated is evaluated. Hope this helps!

    Plugin Author RLDD

    (@rermis)

    Hi subhamkotnala,

    For JS function sumrows(), additional dropdown variables should be treated exactly as PTO is treated, so as to not influence the overtime calculations. Any operation that affects PTO will need a similar operation to affect Ill variable, and anywhere that Reg is specified should not affect the new Ill variable.

    Additionally, the new variable will need to be added to the select in addweek(), and total field rows populated in an array in time_cal.php.

    Hope this helps!

    Plugin Author RLDD

    (@rermis)

    Hi subhamkotnala, A note that if these files are changed on your local installation, WordPress will overwrite them on the next version update of the plugin.

    The original design allows for 2 items in the dropdown and a text field, with the ability for the text field to be an infinite field to store more values. I suggest using the text field to categorize time values if more categories are needed. I believe adding a new dropdown can be accomplished, but if a new field is added to JS, there will be additional work required to add these fields to the database and related functions.

    I will look at the JS file and see if I can still help you.

    Plugin Author RLDD

    (@rermis)

    Hi Pipoulito, No that is not normal. Can you try disabling other plugins that may be conflicting with Dynamic Time, and try clicking the link again? Please let me know if this resolves the issue you are seeing.

    Plugin Author RLDD

    (@rermis)

    Hi Janic, This plugin is compatible with (compatible as in being installed alongside), but it does not integrate with Formidable Pro.

    Plugin Author RLDD

    (@rermis)

    Correction: To allow this to work after navigating time periods in forward or reverse, please change the last line to:

    window.onload=function(){setInterval(function(){allow_Mon()},3000);};
    
    Plugin Author RLDD

    (@rermis)

    Great catch, to resolve, change the last line to
    window.onload=function(){setInterval(function(){block_wkd()},3000);};

    Plugin Author RLDD

    (@rermis)

    Hi Subhamkotnala,

    Sure, give this a try by pasting it into a custom html block on the same page as the shortcode. You may need to edit it for perfection:

    <script type="text/javascript">
    function block_wkd() {
      var dyt_days=document.getElementsByClassName('dyt_day');
      for(var i = 0; i < dyt_days.length; i++) {
        if(dyt_days[i].innerHTML.includes('Sat')>0 || dyt_days[i].innerHTML.includes('Sun')>0) {
          dyt_days[i].style.opacity='.5';
          dyt_days[i].style.pointerEvents='none';
      }}
    }
    window.onload=function(){setTimeout(function(){block_wkd()},1000);};
    </script>
Viewing 15 replies - 391 through 405 (of 478 total)