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

    Look into the CALx.class.php, it’s really up to date.

    :)

    Tell me again, if it isnt
      [b]D
      • 29181
      • 480 Posts
      Ahh so it is. Thanks!

      I managed to get it installed, but it would appear that it isn’t taking the style (I tried adding a &chunkCSSName as well as omitting the parameter completely) unfortunately to no avail.

      You can see how far it is at

      http://66.216.91.236/~spevbiz/

      if you could find a moment, I would appreciate it.

      Taff
        Adrian Lawley: www.adrianlawley.com
        • 13320
        • 245 Posts
        Hi,
        Thanks for using CALx laugh

        The style is good, no ?


        However, ther’s a bug in the snippet definition, delete the line :
        if(isset($cssId)){$objCALx->cssId=$cssId;}else{$objCALx->cssId='CALx';}


        Download this file : CALX.class.php, because ther’s a problem with the hyperlinks next/previous month.

        I hope, i help to you.

        (Sorry for my english, i try to be bettre :p)
          [b]D
          • 13320
          • 245 Posts
          Hi everybody,

          I’m very sorry, i think i miss a lot of question.
          I think that my pop server who don’t works very well.

          But, in this time, it’s OK.

          If you read this post and you have always a problem, please post your question again.

          Sorry again.

          Jabb
            [b]D
            • 29181
            • 480 Posts
            Hey Jabb,
            thanks again for the replies. Your English is a lot better than my French, that’s for sure (Even though I came top of my class at school...albeit 20 years ago).

            Yes I managed to get it styled now. The problem was that the names of the elements had changed and the css was pointing to incorrect ones.

            What is the bug in the snippet definition exactly doing?

            I also don’t seem to be having problems with the forwards/backwards months links.

            What I am having problems with is the overlib. Although it works on the one day (as in your image) it doesn’t when I mouse over a different event.

            I’m so sorry for not being able to find the solution. The guys I’m building this entire site for, sent me the PSD’s on Wednesday morning, they are showing it to the client today. I can only work on it in the evenings..so so far I have had 7 hours work on the site...and I have the flu. For the client meet today I think they have enough to show them (compared with Wednesday)....if they use IE7 wink

            [Best French]Merci beaucoup mon Ami[/Best French]
            smiley

            Taff
              Adrian Lawley: www.adrianlawley.com
              • 13320
              • 245 Posts
              Hi,

              DO you have download the file ine the previous page ?

              Put this in the definition snippet in The ressources menu

              <?php
              $CALxPath = $modx->config['base_path']. 'assets/snippets/CALx/';
              include_once($CALxPath.'CALx.class.php');
              $objCALx = new CALx();
              /*Variables obligatoires*/
              $objCALx->getFolder=$getFolder;
              $objCALx->getTypeProcess=$getTypeProcess;
              $objCALx->idMultiEvent=$idMultiEvent;
              /*Variables optionelles*/
              if(isset($cssId)){$objCALx->cssId=$cssId;}else{$objCALx->cssId='CALxContent';}
              if(isset($inactDay)){$objCALx->inactDay=$inactDay;}else{$objCALx->inactDay='6';}
              if(isset($dayStart)){$objCALx->dayStart=$dayStart;}else{$objCALx->dayStart='0';}
              if(isset($startMonth)){$objCALx->mois=$startMonth;}
              if(isset($startYear)){$objCALx->annee=$startYear;}
              if(isset($showOtherMonth)){$objCALx->showOtherMonth=$showOtherMonth;}else{$objCALx->showOtherMonth='none';}
              if(isset($lang)){$objCALx->lang=$lang;}else{$objCALx->lang='english';}
              if(isset($showPrevNextLink)){$objCALx->showPrevNextLink=$showPrevNextLink;}else{$objCALx->showPrevNextLink=true;}
              if(isset($useTV)){
                if(!isset($dateStartTVName) || !isset($dateEndTVName)){
                  $useTV='false';
                }
                $objCALx->useTV=$useTV;
              }else{
                $objCALx->useTV='false';
              }
              if($useTV=='true'){
              $objCALx->dateStartTVName=$dateStartTVName;
              $objCALx->dateEndTVName=$dateEndTVName;
              $objCALx->TVCalxRepeat_name=$TVCalxRepeat;
              $objCALx->TVstartDatePeriod = $TVstartDatePeriod ;
              $objCALx->TVendDatePeriod = $TVendDatePeriod ;
              }
              if(isset($popupSize)){$objCALx->popupSize=$popupSize;}else{$objCALx->popupSize='300';}
              if(isset($toolTipPosition)){$objCALx->toolTipPosition=$toolTipPosition;}else{$objCALx->toolTipPosition='CENTER';}
              if(isset($popupType)){$objCALx->popupType=$popupType;}else{$objCALx->popupType='2';}
              if(isset($idDocYear)){$objCALx->idDocYear=$idDocYear;}
              if(isset($idDocMonthEvents)){$objCALx->idDocMonthEvents=$idDocMonthEvents;}
              $CALx = $objCALx->Run();
              $objCALx='';
              return $CALx;
              ?>


              For your other problem, you have a description in the event ?

              Can you post your snippet call ?
                [b]D
                • 29181
                • 480 Posts
                thanks again Jabb, I’ll give that a try.

                I don’t have the login details on my laptop to take a look atm....I will do tomorrow though.

                Cheers,
                Taff

                [EDIT] Adding a description seems to have it working. Thanks Jabberwock!
                  Adrian Lawley: www.adrianlawley.com
                  • 29181
                  • 480 Posts
                  Also I reworded some of the language pack for english. For example There is $n events schedule for this journey now reads
                  There are $n events scheduled for today.

                  Here is the language pack I am using for english atm:
                    Adrian Lawley: www.adrianlawley.com
                    • 13320
                    • 245 Posts
                    Ok, no problem.

                    Change all that you want smiley

                    Thanks for your pack
                      [b]D
                      • 29181
                      • 480 Posts
                      Hey Jabberwock,
                      me again! Am I correct in assuming that even if events aren’t published (or are even deleted) they will still appear in the calendar?
                      That appears to be the case. I can understand that this needs to be the case for if you are using publish dates, but I think you’ve done so much work on the TV date, and that it is such an improvement, we are going to go with that.

                      If this is the case, am I right in that the function getChildsArray() that "Retourne un tableau avec tous les fils de type répertoire du parent passé en paramètre" is the function I would need to manipulate?

                      Cheers,
                      Taff
                        Adrian Lawley: www.adrianlawley.com