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

    I am enjoying tinkering with this a bit more. I have made a little change on a couple of places that I think should be part of the code. I have added to the english lang file around line197 to add:
    define('_mxCalendar_ed_start_timeformat', '<strong> %I:%M %P</strong>'); 
    and then using it in the mxCalendar.class.php file around line 1115 to add that as a placeholder
    $modx->setPlaceholder('mxCalendar_ed_start_timeformat',strftime((isset($param['mxCalendar_ed_start_timeformat']) ? $param['mxCalendar_ed_start_timeformat'] : _mxCalendar_ed_start_timeformat),strtotime( (isset($_REQUEST['r']) ? $dates[$_REQUEST['r']].' '.$p_val['starttime'] : $p_val['start']) )));
    				

    so that you can use it in the event.detail.html like this:
    [+mxcEventDetailBackToCal+]
    
    <div id="[+mxcEventDetailId+]" class="[+mxcEventDetailClass+]">
        <h3>[+mxcEventDetailTitle+]</h3>
        <p>Date: [+mxcEventDetailStartDateTime+]</p>
        <p>Time: [+mxCalendar_ed_start_timeformat+]</p>
        <p class="repeat">[+mxcEventDetailDateTimeReoccurrences+]</p>
        <h2>[+mxcEventDetailLabelLocation+]</h2>
        <p>
            [+mxcEventDetailLocation+]
        </p>
        <p>[+mxcEventDetailDescription+]</p>
        <p>[+mxcEventDetailGoogleMap+]</p>
    </div>


    Hope this helps someone else.

    -Noah
      • 34084 ☆ A M B ☆
      • 756 Posts
      That will do the trick, note that the newest version of mxCalendar will use a configuration option to set the event start and end time formats and have a different placeholder value for the "date" and "time".

      I’m so close to getting this next release out and am excited to get the communities reaction.

      cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 12013
        • 61 Posts
        how is the update going for this?
          • 12013
          • 61 Posts
          apologies, I seem to be having issues, I have to log in to PHP admin to make the events show. I have to add in all repeat dates, if it is a single event I have to add that in as a repeat date also. As a temporary measure this is OK, but in the long term I would prefer not to have to do this.

          keep up the good work!
            • 34084 ☆ A M B ☆
            • 756 Posts
            no apologies on your part as they are mine, I’ve been slammed with other work that came in since the last post and will do all I can to ensure that the new release it out in the next two days.

            thank you for your patience as the release is long overdue.

            Cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 12013
              • 61 Posts
              right, gonna contribute right here and now!
                • 5454
                • 7 Posts
                Hello.

                I have recently updated an existing mxCalendar to 0.1.2-rc2 on a MODx Evolution 1.0.4 site.

                When we enter a recurring event, the events show up twice on the first date. This may be a misunderstanding on my part on how to enter a recurring event, but I can’t find the problem yet. Does anyone have any suggestions on how to find the problem?

                Thank you!
                Christine

                Since I am new to MODX, I am not sure where to post support questions and this is a duplicate of the post at http://modxcms.com/forums/index.php/topic,62341.0.html. Please excuse my ignorance. I look forward to learning about MODX and being an active part of the Community.
                  • 21311
                  • 3 Posts
                  I have no doubt this is just something simple i’m missing, but if I try to use categories for the full calendar or event list it’s adding an extra ? to the address. appears to work fine if i depete it from my address bar.
                  example

                  index.php?id=1?&CatId=2

                  Any ideas where i can look to get rid of that ?.
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    The most obvious way would be to configure your site to use Friendly URLs. Then the index.php?id=xx will not be interfering with the calendar script’s additions.

                      Studying MODX in the desert - http://sottwell.com
                      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                      Join the Slack Community - http://modx.org
                      • 21311
                      • 3 Posts
                      Just in case anyone else is dealing with the ? issue, I found it in mxCalendar.class.php line 1812

                      $mxcCatOnChange = ($isMgr ? '' : 'window.location=\''.$modx->makeUrl($modx->documentIdentifier,'','',full).'?'.$uriQS.'&CatId=\'+this.value');


                      changed to
                      $mxcCatOnChange = ($isMgr ? '' : 'window.location=\''.$modx->makeUrl($modx->documentIdentifier,'','',full).$uriQS.'&CatId=\'+this.value');