We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hi Jabber.

    I see it exactly like davidm: we are here to post our experiences to help you improve that snippet more and more.

    Here we go with an issue I just found: In the [tt]navPeriod[/tt] DIV we have a problem.

    When I currently look at December 2007, the arrow’s link for next month contains "[tt]mois=13&annee=2007[/tt]". This leads to a misbehaviour, I get redirected to September (current month) 2007.

    When I currently look at January 2008 (I got there by clicking the "next year" button and going back from September through February and January), the arrow’s link for previous month contains "[tt]mois=0&annee=2008[/tt]". This brings me to September (current month) 2008.

    Okay, as time passes, I "fixed" that. function createNavBar now starts with
    		$navMonth="";
    		$output='<div class=\'CALxContent'.$this->chunkCSSID.'\'>'."\n";
      		$previousYear=$this->annee-1;
      		$previousMonth=$this->mois-1;
      		$previousMonthYear = $this->annee;	//	used for changes on year's start and end
      		if($previousMonth == 0){
      			$previousMonth = 12;
      			$previousMonthYear--;
      		}
    
      		$nextMonthYear = $this->annee;		//	used for changes on year's start and end
      		$nextMonth=$this->mois+1;
      		$nextYear=$this->annee+1;
      		if($nextMonth == 13){
      			$nextMonth=1;
      			$nextMonthYear++;
      		}
    


    and the output for the navigation row now looks like that (only two little changes to no longer output the current year on month change but the corrected month and year):
    			if($this->getTypeProcess!='showFullYear'){
    				$output.='<div class=\'navPeriod'.$this->chunkCSSID.'\'>'."\n";
    				$output.='<span class=\'previousYear'.$this->chunkCSSID.'\'><a href="'.$this->url_prefix.$strDayLink.'&mois='.($this->mois).'&annee='.$previousYear.'" title="'.$this->previousYear.'"><<</a></span>'."\n";
    				$output.='<span class=\'previousMonth'.$this->chunkCSSID.'\'><a href="'.$this->url_prefix.$strDayLink.'&mois='.$previousMonth.'&annee='.$previousMonthYear.'" title="'.$this->previousMonth.'"><</a></span>'."\n";
    				$output.='<span class=\'month'.$this->chunkCSSID.'\'>'.$this->month[$this->mois-1].'</span>'."\n";
    				$output.='<span class=\'year'.$this->chunkCSSID.'\'>'.$this->annee.'</span>'."\n";				
    				$output.='<span class=\'nextMonth'.$this->chunkCSSID.'\'><a href="'.$this->url_prefix.$strDayLink.'&mois='.$nextMonth.'&annee='.$nextMonthYear.'" title="'.$this->nextMont.'">></a></span>'."\n";
    				$output.='<span class=\'nextYear'.$this->chunkCSSID.'\'><a href="'.$this->url_prefix.$strDayLink.'&mois='.($this->mois).'&annee='.$nextYear.'" title="'.$this->nextYear.'">>></a></span>'."\n";
    				$output.='</div>'."\n";//End of navPeriod
    			}else{
    


    BTW: I hope it’s okay when I post all this stuff here rolleyes

    Greetings
    Martin
      • 6726
      • 7,075 Posts
      Another question entirely : when there is no event, is it normal that the calendar has no day number displayed ? (it’s not a CSS issue, there is no data here)



      [!CALx? &getFolder=`56` &getTypeProcess=`createCal` &chunkCSSName=`css_calendrier` &lang=`french` &dayStart=`0` &inactDay=`6` &popupType=`1` &popupSize=`300` &toolTipPosition=`BELOW` &useTV=`true` &dateStartTVName=`date_evenement` &dateEndTVName=`fin_evenement`!]
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 13320
        • 245 Posts
        Silly question, your "color" of your text isn’t "white" ? :p

        I test CALx without event, abd it works lipsrsealed

        Fury : Yes, i have patch this bug, with the next version.

        PS : Great template smiley

        PS : I’m very sorry, but i want to post a good next version smiley

          [b]D
          • 6726
          • 7,075 Posts
          No as I said, not a css issue, the source code show nothing in the rows...

          <tr>
          <td class='emptyDay69'></td>
          <td class='emptyDay69'></td>
          <td class='emptyDay69'></td>
          <td class='emptyDay69'></td>
          <td class='emptyDay69'></td>
          <td class='emptyDay69'></td>
          <td class='emptyDay69'></td>
          <tr>


          Running PHP 5.2.3 here, if this matters... I’ll try this local with MAMP see if that works...

          Template is not finished yet but thanks smiley

            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id
            • 13320
            • 245 Posts
            erf

            i have some problems with my web server I can do more test :’(
              [b]D
              • 6726
              • 7,075 Posts
              Don’t worry, I’ll check this out with PHP4 and report...

              If you need a PHP5 environnement for testing let me show I’ll open you a space on my dedicated box so that you can have a MODx install handy smiley

                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l&#39;outil id
                • 13320
                • 245 Posts
                Very thank you, for now i change the hard drive...wait & see wink
                  [b]D
                  • 10313
                  • 375 Posts
                  Hello.

                  I’m just setting up my next site with CALx and am wondering if it is possible to declare a single day event with only the start date/time, without giving the end.

                  I’m using TV for date values. And if I only set the start date, all succeeding days in the calendar are marked with that event. What I’m looking for is to declare a single day event without setting start and end TVs to the same value.

                  Any ideas?
                  Thx
                  Martin
                    • 15734
                    • 70 Posts
                    Hi,

                    I’m new to this so sorry if these questions seem a bit naive. Is there any way to display an event in the td itself?

                    I’d like my client to be able to add events as easily as possible. How can I do that without having them logged into the manager?

                    I really like this calendar. Thanks for all the good work.

                    Cheers,
                      • 10313
                      • 375 Posts
                      Hello, I got a MAJOR PROBLEM!

                      I’m using a combination of Ditto and CALx to show a lot of events. I set up CALx to use TVs for start end end dates for my events, not publis and unplish dates. The Calender wich is output works fine.

                      Additionally, I have (as mentioned above) set up a ditto call to display the same events in a different manner (not in the calendar but as a list). For Ditto, I have set the unpublish date for all my events to a date and time when the event is over. So, ditto should only show the events in the future, not those that took place in the past.

                      But now, each time when the CALx snippet is run from the frontend, IT CHANGES THE PUBLISHED STATE of the unpublished events. How can this be? I found several lines in the CALx.class.php where the value of published is set directly to "1" in the database. This is impossible. In my opinion, you shouldn’t change the values in the database without warning. This leads to unexpected results, as described above.

                      For now, I’ll try to set up a filter for ditto which does not look after the "published" state but explicitly after the "unpublish date". Hope, this will work.

                      I think I’m using CALx 0.6.1 (whereas the source files read 0.6).

                      Anybody got similar problems?

                      Greetings
                      Martin