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

    this part of code also does not work properly:

    lines 1077-1080:

    			    if($param['fullCalendarPgId'] && empty($event['link']))
    				$title='<a href="[~'.$event['link'].'~]">'.$event['title'].'</a>';
    			    else
    				$title = ( !empty($event['link'])?(is_numeric($event['link'])?$modx->makeUrl((int)$event['link']).' <> ':'<a href="'.$event['link'].'" rel="'.$event['linkrel'].'" target="'.$event['linktarget'].'">'.$event['title'].'</a>'): $event['title'] );


    1. First of all ’fullCalendarPgId’ is to be changed to ’mxcfullCalendarPgId’ here and in several other places in the file.

    2. And also line 1080 does not work properly. Title with URL is not generated properly (in list mode at least) if I indicate docid in the ’link’ field. Instead of title with URL I receive text message like ’/<relative URL>.html <>’
      • 23546
      • 29 Posts
      Also ’mxCalendar’ is to be changed to ’mxcalendar’ in lines 27-30 of mxCalendar.class.php
        • 34084 ☆ A M B ☆
        • 756 Posts
        Quote from: Plankton at Apr 20, 2010, 11:50 AM

        charless,

        this part of code also does not work properly:

        lines 1077-1080:

        			    if($param['fullCalendarPgId'] && empty($event['link']))
        				$title='<a href="[~'.$event['link'].'~]">'.$event['title'].'</a>';
        			    else
        				$title = ( !empty($event['link'])?(is_numeric($event['link'])?$modx->makeUrl((int)$event['link']).' <> ':'<a href="'.$event['link'].'" rel="'.$event['linkrel'].'" target="'.$event['linktarget'].'">'.$event['title'].'</a>'): $event['title'] );


        1. First of all ’fullCalendarPgId’ is to be changed to ’mxcfullCalendarPgId’ here and in several other places in the file.

        2. And also line 1080 does not work properly. Title with URL is not generated properly (in list mode at least) if I indicate docid in the ’link’ field. Instead of title with URL I receive text message like ’/<relative URL>.html <>’


        reviewing...
          Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
          Visit CharlesMx.com for latest news and status updates.
          • 34084 ☆ A M B ☆
          • 756 Posts
          Quote from: Plankton at Apr 20, 2010, 11:52 AM

          Also ’mxCalendar’ is to be changed to ’mxcalendar’ in lines 27-30 of mxCalendar.class.php

          got those changed, just didn’t update the downloads just yet - sorry for the delay
            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 34084 ☆ A M B ☆
            • 756 Posts
            Quote from: charless at Apr 20, 2010, 11:58 AM

            Quote from: Plankton at Apr 20, 2010, 11:50 AM

            charless,

            this part of code also does not work properly:

            lines 1077-1080:

            			    if($param['fullCalendarPgId'] && empty($event['link']))
            				$title='<a href="[~'.$event['link'].'~]">'.$event['title'].'</a>';
            			    else
            				$title = ( !empty($event['link'])?(is_numeric($event['link'])?$modx->makeUrl((int)$event['link']).' <> ':'<a href="'.$event['link'].'" rel="'.$event['linkrel'].'" target="'.$event['linktarget'].'">'.$event['title'].'</a>'): $event['title'] );


            1. First of all ’fullCalendarPgId’ is to be changed to ’mxcfullCalendarPgId’ here and in several other places in the file.

            2. And also line 1080 does not work properly. Title with URL is not generated properly (in list mode at least) if I indicate docid in the ’link’ field. Instead of title with URL I receive text message like ’/<relative URL>.html <>’


            reviewing...

            @Plankton -

            Updated line 1077 - 1080 to:
            			    if($param['mxcFullCalendarPgId'] && empty($event['link']))
            				$title='<a href="'.$modx->makeUrl((int)$param['mxcFullCalendarPgId'],'','details='.$event['eid']).'">'.$event['title'].'</a>';
            			    else
            				$title = ( !empty($event['link'])?(is_numeric($event['link'])? '<a href="'.$modx->makeUrl((int)$event['link'],'','','full').'" target="'.$event['linktarget'].'" rel="'.$event['linkrel'].'">'.$event['title'].'</a>':'<a href="'.$event['link'].'" rel="'.$event['linkrel'].'" target="'.$event['linktarget'].'">'.$event['title'].'</a>'): $event['title'] );
            


            Download the new class file
            -or-
            the new package file
            http://code.google.com/p/mxcalendar/downloads/list
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 34084 ☆ A M B ☆
              • 756 Posts
              New update package available, this contains only the changed files from previous version noted. Also new full package (0.0.5b.3) and I hope that’s the last for today smiley

              http://code.google.com/p/mxcalendar/downloads/list

              ~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 20, 2010, 12:23 PM


                @Plankton -

                Updated line 1077 - 1080 to:
                			    if($param['mxcFullCalendarPgId'] && empty($event['link']))
                				$title='<a href="'.$modx->makeUrl((int)$param['mxcFullCalendarPgId'],'','details='.$event['eid']).'">'.$event['title'].'</a>';
                			    else
                				$title = ( !empty($event['link'])?(is_numeric($event['link'])? '<a href="'.$modx->makeUrl((int)$event['link'],'','','full').'" target="'.$event['linktarget'].'" rel="'.$event['linkrel'].'">'.$event['title'].'</a>':'<a href="'.$event['link'].'" rel="'.$event['linkrel'].'" target="'.$event['linktarget'].'">'.$event['title'].'</a>'): $event['title'] );
                


                Download the new class file
                -or-
                the new package file
                http://code.google.com/p/mxcalendar/downloads/list

                Thanks a lot! Another issue is that only Event title with URL can be displayed in the ’list’ calendar mode in 0.0.5. I remember that ’location’ was displayed together with Event title in 0.0.4. Could you please advice how to orginize the ’list’ calendar view in this way?

                ----------------
                <Date>
                Event Title
                Description: <content field>
                Location: <location>
                ----------------

                Thanks!
                  • 30319
                  • 406 Posts
                  Quote from: Plankton at Apr 20, 2010, 01:24 PM

                  Thanks a lot! Another issue is that only Event title with URL can be displayed in the ’list’ mode in 0.0.5. I remember that ’location’ was also displayed in 0.0.4. Could you please advice how to orginize the list view in this way?
                  ----------------
                  <Date>
                  Event Title
                  Description: <content field>
                  Location: <location>
                  ----------------

                  Yes...I agree...this is quite a logical way to present an events list, particularly if one does not have a lot of calendar items.

                  Thank you, Tom
                    • 34084 ☆ A M B ☆
                    • 756 Posts
                    Quote from: TomMLS at Apr 20, 2010, 01:26 PM

                    Quote from: Plankton at Apr 20, 2010, 01:24 PM

                    Thanks a lot! Another issue is that only Event title with URL can be displayed in the ’list’ mode in 0.0.5. I remember that ’location’ was also displayed in 0.0.4. Could you please advice how to orginize the list view in this way?
                    ----------------
                    <Date>
                    Event Title
                    Description: <content field>
                    Location: <location>
                    ----------------

                    Yes...I agree...this is quite a logical way to present an events list, particularly if one does not have a lot of calendar items.

                    Thank you, Tom

                    - sure thing, I’ll update the code and post the updated project files later today. the next post will also fix (enhance) the theme style sheet location

                    ~cheers
                      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                      Visit CharlesMx.com for latest news and status updates.
                      • 23546
                      • 29 Posts
                      charless, I have one more question to you...

                      I can see ’Mini-Calendar Width’ field in the Configuration window. What is this field intended for? Is there some way to display a Mini-Calendar view and how?

                      Thanks!