We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19023
    • 12 Posts
    Oh, you’re right, it does add a bit of extra information to the date field so that bug needs to be fixed with more lines of code.
    $this->output .= "\t".$this->_makeDateSelector($val[0], $fm_label[$x], $tooltip, $editSD)."\n";
    

    to
    $this->output .= "\t".$this->_makeDateSelector($val[0], $fm_label[$x], $tooltip, date('Y-m-d',strtotime($editSD)))."\n";
    


    As an example for the second bug: If you add a Monday/Wednesday/Friday recurring event, instead of actually recurring on those days, the existing code continues recurring on the day of the week that the event happened until the final recurrence date.

    So far, I don’t think there is any easy-to-implement, better solution than the brute force check-- going through every day until the final recurrence date beginning on the start date, checking if the target date is one of the weekdays specified, then adding it to the list if so, works decently. At the end of the week you could jump the interval number of weeks too, but I haven’t tested that.
    (_getRepeatDates(), case "w")

    			case "w":
    				//add the dates in play for weekly recurrance to an array
    				//$days = $startdate .. $untildate (aka endDate);
    				$days = array();
    				$added = strtotime($startDate);
    				array_push($days, $added);
    				while ($added<strtotime($endDate)){
    					$added = strtotime('+1 day',$added);
    					array_push($days, $added); 					
    				}
    				
    				foreach ($days as $targetDate) {
    					$dayOfWeek=date('w',$targetDate);
    					if (in_array($dayOfWeek,$onwd)) {
    						if ($debug) echo 'adding'.date('Y-m-d',$targetDate);
    						$ar_Recur[] = date('Y-m-d', $targetDate);
    					}
    }


    Maybe this could go in the while loop for intervals:
    if ((date('w',$added)!=6 || $added == $startDate) || $interval == 1) { 
    //roll a day as long as the $added+1 day is a not new week (saturday) or is the initial date (possibly a Saturday too).
    	$added = strtotime("+1 day",$added);
    	array_push($days, $added); 
    }
    else {
    //We have a non-1 interval and it is a new week, so we should jump our interval-1 weeks.
    	$N=($interval-1)*7+1; //number of days to jump,+1 for normal saturday->sunday increment.
    	$added = strtotime("+$N days",$added);
    array_push($days, $added); 
    }
    

      • 34084 ☆ A M B ☆
      • 756 Posts
      Release update: Sorry, got some last minutes non-project related items that I had to address so the release is pushed back to Friday April 30th.
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 34084 ☆ A M B ☆
        • 756 Posts
        @megab - thanks for the bug report, I’ll take a look and get that resolved.

          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.
          • 23546
          • 29 Posts
          Hi charless,

          How are you doing? What about the new release today? Can we expect it?
            • 34084 ☆ A M B ☆
            • 756 Posts
            Sorry everyone, I’m going to have to post-pone until this weekend.

            I believe it is worth the wait though, so I hope you can give me a little more time.

            cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 23546
              • 29 Posts
              Quote from: charless at Apr 26, 2010, 02:10 PM

              Quote from: Plankton at Apr 26, 2010, 12:39 PM


              2) Current day was highlighted with black background in calendar mode in 0.0.4. In 0.0.5b.5 it does not.


              2) In the Manager mxCalendar Configuration Tab you’ll want to change the Enable Day of Month class value to true then set the Day of Month Class value to your defined class name in CSS, if using the default theme it’s value should be today (see screen capture below)


              This way does not work. Class name does not exist in the resulting html. Could you please check? Thanks!
                • 34084 ☆ A M B ☆
                • 756 Posts
                can you post a capture of your configuration tab in Manager

                cheers
                  Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                  Visit CharlesMx.com for latest news and status updates.
                  • 23546
                  • 29 Posts
                  Quote from: charless at May 01, 2010, 12:08 PM

                  can you post a capture of your configuration tab in Manager

                  cheers

                  1) Here you are:



                  You can check the code here: http://www.gmstraining.ru/seminars.html.

                  2) Also calendar URLs are not converted to SEF in calendar mode, while everything is fine in the ’list’ mode: http://www.gmstraining.ru/archive.html.

                  3) And the last minor thing is that a range of dates like June 3-5 is shown in inconsistent way as ’03-5’: . Instead of ’3-5’ or ’03-05’. See also here: http://www.gmstraining.ru/seminars.html.

                  Thanks in advance...
                    • 34084 ☆ A M B ☆
                    • 756 Posts
                    Update Release Date: May, 8th 2010

                    Sorry everyone for the delay, I’ve had several other large projects closing that required my attention. I have just a few out standing enhancements to complete and will post status back later this week.

                    Cheers
                      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                      Visit CharlesMx.com for latest news and status updates.
                      • 30319
                      • 406 Posts
                      Thank you for the update. smiley
                      Please do your best to focus on bug fixes first.
                      Perhaps release the least buggy possible version, call it stable or ’least buggy’ release or whatever. LOL smiley
                      Then do feature additions at perhaps a slower pace.
                      Stable, bug-free will be better for everyone...
                      Thank you, Tom