We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34084 ☆ A M B ☆
    • 756 Posts
    Quote from: hendo at Apr 07, 2011, 03:52 AM

    Hi Charles, as far as you are aware are the above issues all fixed?

    I would love to add the new version as this will hopefully solve any issues I am currently having, but I do not want it to create a whole host of new problems for me. Only one way to find out I guess?

    To my knowledge those appear to be system issues as I’ve personally updated three sites and know that other have performed updates without incident, however that of course doesn’t mean that the code could have a bug more system/configuration related. I’m trying to narrow that down to get this install/upgrade to work on all systems.

    I am on-line now w/Skype and Google talk if you run into any issues I’d certainly be willing to take a look immediately.

    Cheers
      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: henne at Apr 07, 2011, 09:08 AM

      Hi Charles,

      first of all a great THX for this awsome modul. Yesterday i have installed the new version an all is running good... Only two things dident work. Thats my snippet call for a List View:

      1. the start/end Date was ignored, it shows all events in this categorie.
      2. the moodalbox dosent open only a blank calendar page

      sry for my bad english and thx

      Can you validate your snippet is using the most recent version as well, it should have a version number at the top of the snippet and the most current version is:

       * Date: 1/05/2010
       * Version: 0.1.2-rc2
      


      Do you have a public URL for me to view? if not can you send the rendered html content to me in an IM or email please.

      cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 12022
        • 2 Posts
         * Author: Charles Sanders ([email protected])
         * Date: 04/04/2011
         * Version: 0.1.3b


        thats the version for both snippets (Modul/Snippet)

        you can have my dyndns adress

        if you want i give you a manager account in skype... i will add you now wink
          • 34084 ☆ A M B ☆
          • 756 Posts
          Had a few bugs reported in the 0.1.3b release regarding a parse error, those errors are addressed and updated in the Google Code repo. There might be one more error in the event "list" view where a repeating event will be displayed when it’s past the date specified in parameter or current date.

          Thanks again to everyone for your patience.

          Cheers
            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 34084 ☆ A M B ☆
            • 756 Posts
            Just posted a new video guide to highlight some of the key features of the Custom Fields in mxCalendar visit the new official website to keep current.

            Please let me know what you think, it’s rough around the edges so a little slack maybe smiley

            cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 9550
              • 123 Posts
              Charles,

              First off, thank you for making the youtube tutorial video. It’s really great to see a modx module get this type of support smiley

              I started playing with the latest mxCalendar beta yesterday and I think I’ve found a couple bugs and some friendly suggestions. Hope it isn’t too much...

              1. If I add a custom field with type set to image, then navigate to an Add/Edit Event page and click the "Insert" button I get a popup displaying the root homepage with the following as the URL:

              http://raw/modxevo/manager/media/browser/mcpuk/browser.html?Type=images&Connector=/modxevo/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/modxevo/


              the "insert" button is looking for MODx to reside within a subdirectory called modxevo/. In this case I have Evo installed to calendar/. modxevo/ appears to be hard coded in the following places of mxCalendar.class.php

              line 352:
              OpenServerBrowser(\'/modxevo/manager/media/browser/mcpuk/browser.html?Type=images&Connector=/modxevo/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/modxevo/\', w, h);
              
              line 359:
              OpenServerBrowser(\'/modxevo/manager/media/browser/mcpuk/browser.html?Type=files&Connector=/modxevo/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/modxevo/\', w, h);
              
              line 370:
              var p = document.getElementById(\'_pv'.$cft['name'].'\').src = \'/modxevo/\'+url;
              


              I replaced those 7 instances of modxevo/ with calendar/ and now the "insert" button works great! Not the best solution, but the file browser now loads with the assets/images/ preselected and I am able to upload and select and a image perfectly smiley

              2. Next, after adding this new custom field, [+mxcposter], to event.detail.html an image outputs just fine, but if the field is left blank an img tag is still output:

              <img src="" alt="">


              resulting in an missing image icon showing up in the browser on the event details page.

              To fix this I simply added "assets/images/dot.png" as the default value for this image field (dot.png is a 1 x 1 transparent png). Again, not the best solution but works fine for now.

              Note: Thank you so much for adding custom fields to mxCalendar. It really takes this extra to the next level! laugh

              3. How can you resize the image output by the custom image field type?

              Since the relative URL is automatically output as the src of an img, something like this [+mxcposter:phpthumb=`w=450`+] outputs this:

              /calendar/image.php?src=<img src="assets/images/Google_Chrome.jpg" alt="" />&w=450&hash=c5227f261c442c09d212dd2f6cec5e75


              Further this means that can’t manually set the alt, rel, or width/height attributes in the templates.

              I think the this field type would be more useful if the placeholder outputs only the relative URL opposed to the whole tag.

              We could then call something like this in our templates to resize the image and null the output if left blank.

              [+mxcposter:isempty=``:else=`<img src="[+mxcposter:phpthumb=`w=650`+]" alt="[+mxcEventDetailTitle+]" />`+]


              Note: not sure that snippet call even works. it’s been a few years since I’ve built an Evo site.

              I think having fields output as full tags sort of neuters some of the power of MODx. That’s like having a TV with a forced output type.

              I guess another way could be to enhance the field type with output options that could control whether to output inside an img tag or to set attributes or choose the dimensions to resize the output image, but heck we’re MODx users, and I think it’s far easier to change this in a chunk or templates file than combing through documentation on parameters.

              Also, if options to resize the image were added, mxCalendar would probably then require phx:phpthumb or need to bundle it’s own copy, so either a potential compatibility issue or duplicate code added to a site.

              4. related to the last issue, the preview image displayed beneath an image custom field is the full sized original. I’m using this field with massive poster sized images so this looks pretty crazy smiley

              5. Minor spelling mistake: under "Category List Options" in mxCalendar options "Enanble Cateogry Filters" has an extra "n" in Enable.

              6. Weekly repeating events double post on the first day if the weekday to repeat on is set to the same weekday selected by Start Date-Time.

              Ok, one more time, as this one’s a deal breaker. If you add an event with a Start Date-Time of say April 11th, 2011 and set it to repeat every monday, you’ll then get that event displayed twice on the 11th and once each monday following.

              NOTE: Google Calendar has a similar system for adding repeating events but on "Save" it will actually modify the Start Date-Time to correspond with the closest day you’ve set to repeat on. This I think makes much more sense than being able to set an event on a different day from the days it repeats on.

              7. Is it possible to disable displaying multi day events??

              If I enter an End Date-Time on the day following the Start Date-Time (say at 2:30am the next day) a duplicate entry will be displayed automatically on the following day in the month view.

              This is a super confusing default behaviour. The end user will have to carefully ready the end date-time on the second event to realize that the event actually occurred the day, and ended past midnight, opposed to said event occurring a second time the day after.

              And to avoid this behaviour the content manager has to be careful not to add a End Date-Time past midnight.

              Actually I don’t really get this functionality even if it’s intentional. Say for example a week long sports tournament, would that not already be covered by the repeating events functionality?

              Only thing that springs to mind where this makes sense is something like multi day all night rave! In most cases i think events will have a unique end time on each day, no?

              8. How to disable shadowbox.js from being added automatically ??

              Right now, Shadowbox.js is being added automatically to the header on the month view page. I can’t seem to find a toggle this off in either the theme or options page.

              Also, the addition of this script is throwing the following errors in my browser:

              in Firebug 1.7 / Firefox 4 :
              
              $(el).addEvent is not a function
              [Break On This Error] (function(window,undefined){var S={ver...S.gallery.length){preventDefault(e)}}
              
              and in Chrome 10.0.648.204
              
              Uncaught TypeError: Object [object Object] has no method 'addEvent'
              - addEventshadowbox.js:8
              - K.initshadowbox.js:34
              - S.loadshadowbox.js:8
              - DOMContentLoaded
              


              Note: the Shadowbox.init call in the header also seems to have a bunch of example values still commented out...

              //gallery:            "Name of the Gallery",
              //autoplayMovies:     true,
              //height:     350,
              //width:      650,
              //modal: false,
              //enableKeys: tue,
              
              


              9. not sure if this is intended for the AJAX to function properly but "add JavaScript Library automatically" only seems to add MooTools to header of the event detail pages and not to the month view page. Again, note sure. I use jQuery.

              10. How to change the displayed TimeStamp for the Start/End Date-Time on the Event Details??

              There appears to be options to edit this output for both the month and list view but not for the Details page. Is there a way to control the format of this output directly in the templates?

              UPDATE: never mind. it looks like the following parameters take care of this:

              mxcStartDateFormat = Event details date/time format override; Valid PHP strftime() format
              mxcEndDateFormat = Event details date/time format override; Valid PHP strftime() format
              
              from: http://code.google.com/p/mxcalendar/wiki/Parameters_0_0_7
              


              Suggestions:

              1. Unique identifying class names to the default fields for Add/Edit Event manager pages to easily hide unwanted fields via css.

              I noticed a bunch of styles in mxCalendar.css for the backend pages, plus this stylesheet gets added to the mxCalendar manager pages from the default theme.

              I don’t think it would be good for updating to modify the default theme, but possibly these backend styles could be extracted to their own stylesheet and then optionally overwritten if the same .css file shows up in the loaded theme?

              I don’t know. Either way, it would rock if there was an easy way to hide unwanted default fields on the Add/Edit pages with something like the following:

              #fm_bsApp .fm_row .fm_entry.mxC_Link {display:none}
              #fm_bsApp .fm_row .fm_entry.mxC_Link_REL {display:none}
              #fm_bsApp .fm_row .fm_entry.mxC_Link_Target {display:none}
              #fm_bsApp .fm_row .fm_entry.mxC_Link_Location {display:none}
              


              ...

              Well, that’s all I got. Apologies for the absurdly long post. I hope it doesn’t come off ungrateful for all your work on this awesome Extra.

              Even with a couple issues it really is a fantastic module!! Heck, this is what beta is for right smiley And really the only deal breaker for right now is the duplicate entries with repeating events thing. Otherwise the others are fairly easy to work around and I’m probably just missing something for half of them laugh

              Again thank you Charles for all your hard work. You’re awesome!!

              Be well,

              ~ Oliver
                • 34084 ☆ A M B ☆
                • 756 Posts
                crap, did catch that on the first issue and some of those items you have mentioned are on the roadmap for improvements. my objective was kind of two fold here; first to get other patching updated, then to basically test the "market" for the custom fields which is obviously still in it’s infancy in terms of features. What I hope to gain is a better understanding of how you, the users, are using mxCalendar.

                In short I want to make sure any enhancements are actually usable thus ensuring time spent is on value add options for mxCalendar.

                As always all feedback is well, yes I really do want to know your thoughts and suggestions.

                Thanks again to everyone for your support and use of mxCalendar.

                Cheers
                  Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                  Visit CharlesMx.com for latest news and status updates.
                  • 9550
                  • 123 Posts
                  Charles, thank for looking through my crazy long post of issues.

                  Right now the deal breaker for me is with repeating events being posted twice to the first day they are set to repeat on.

                  Half of the events posted on the site that I hope to implement mx on are repeating events.

                  Also the duplicate entries created across multiple days with the multi day event functionality.

                  I could train the content editor to be careful not to put in an End Date-Time past midnight, but then they would be entering inaccurate information and the End Date-Time would not usable on the front end. Not good.

                  Regarding the output from the custom image field, I had to change line 1447 of mxCalendar.class.php to make this usable:

                  from:
                     $modx->setPlaceholder('mxc'.$l, '<img src="'.$v['val'].'" alt="" />');
                  
                  to:
                     $modx->setPlaceholder('mxc'.$l, $v['val']);
                  


                  Definitely it’s not ideal to hack the module’s code, but I need to be able to modify the output TV and having it output inside an img tag seems very silly.

                  With just the absolute URL I can then call following in my theme to resize the image, set the alt attribute and link the image to the full size version for use with a popup. Just like with a TV.

                  <a href="[+mxcposter:isempty=``:else=`[+mxcposter+]`+]">[+mxcposter:isempty=``:else=`<img src="[+mxcposter:phpthumb=`w=450&q=90`+]" alt="[+mxcEventDetailTitle+]" />`+]</a>
                  


                  Without no way to toggle off Shadowbox I also had to hack out that from line 1648 since this is throwing javascript errors in Chrome and Firefox.

                  About custom fields and testing the market. Dude, they’re amazing !! smiley totally takes mxCalendar to another level and really adds the of power we’ve come to expect from MODx.

                  Heck if you look at Wordpress Event Calendar Pro..
                  http://codecanyon.net/item/events-calendar-pro-wordpress-premium-plugin/109301
                  though it is quite a mature plugin, it has yet to add repeating events or custom fields. both of which mxCalendar has.

                  Also, if you check their forums
                  http://support.makedesignnotwar.com/
                  You’ll see both those features requested over and over.

                  Meaning mxCalendar is SWEET laugh
                    • 34084 ☆ A M B ☆
                    • 756 Posts
                    Yes, I hope to have your issues/request addressed in the next couple of days.

                    They do have one thing I don’t for mxCalendar... a solid revenue model. I want to believe that if you build something that saves others time and allows them to create revenue that they will show the appreciation as well smiley

                    Thanks again for the accolades and I hope to keep you all happy.

                    Cheers
                      Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                      Visit CharlesMx.com for latest news and status updates.
                      • 23571
                      • 223 Posts
                      Just tried to upgrade to latest mxcalendar (0.1.3b) and am getting the MODx error below. After attempting to troubleshoot I installed on a fresh install (rather than upgrading) and am getting the same error. Has anyone else had any issues?

                      « MODx Parse Error »

                      MODx encountered the following error while attempting to parse the requested resource:
                      « PHP Parse Error »

                      PHP error debug
                      Error: Invalid argument supplied for foreach()
                      Error type/ Nr.: Warning - 2
                      File: /home/httpd/vhosts/mydomain/httpdocs/assets/modules/mxCalendar/includes/calendar.inc.php
                      Line: 454
                      Line 454 source: foreach($dyn_config_opts AS $cft){