We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12013
    • 61 Posts
    Another thing, I can get the list version to display but not the full calendar, any thoughts?
      • 34084 ☆ A M B ☆
      • 756 Posts
      Quote from: hendo at Feb 07, 2011, 02:33 PM

      Another thing, I can get the list version to display but not the full calendar, any thoughts?

      Please post you snippet calls here and provide me with any screen shots of the manager event list as well.

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

        Great work Charles.

        I was interested in being able to show that an event starts at a specific time, but not showing the end time on the detail page so I went looking through the class file to find the tpl files/chunks to see how I could customize the look of each view.

        On line2770 you have
        $theme_eventlist_tpl =  $this->_getTheme('event.list.event',$this->config['mxCalendarTheme']);
        
        				$keys = array();
        
        				$values = array();
        
        				foreach ($ar_eventDetail as $key=>$value) {
        
        					$keys[] = '[+'.$key.'+]';
        
        					$values[] = $value;
        
        				}
        
        				$events .= str_replace($keys,$values,$theme_eventlist_tpl);


        A better approach should be to have the template chunks for each view in the config file so that a user can customize them. The webloginpe snippet is what gave me this idea. It takes more time to program, but yields a much better outcome methinks.

        Also, I’m wondering why when you create a repeating event it displays correctly in the event list, but when you click on it for the detail view it shows you the first event date / time and the last event date / time. I’m wondering if a better approach would be to make it so that when the user creates a repeating event, a unique row is created for each event, not just storing all the repeat dates in one field of one row. That would enable the detail page to display correctly or maybe when you click on the detail link there are parameters that get passed to the detail page that show that individual event’s day and not the date of start and end dates for all repeating dates.

        If you go to http://www.learnerdesign.com/calendartest.html? you can see that when you click on all the events on the page, it takes you to the same detail page. What would be better, would be if an additional parameter gets passed in the url that would be like
        http://www.learnerdesign.com/calendartest.html?&details=100&date=05/12/2011
        so that 05/12/2011 could be set into the start date parameter on the detail view page.


        I really appreciate all your hard work and hope my suggestions are constructive.

        -Noah
          • 30319
          • 406 Posts
          Please don’t abandon this calendar project until the Revo version is working properly.
          Alternatively perhaps more people could get involved and help with coding etc.??
          I can’t because I am not a coder.
          Thank you...
            • 34084 ☆ A M B ☆
            • 756 Posts
            Quote from: noahlearner at Feb 08, 2011, 09:17 AM

            Hey Charles,

            Great work Charles.

            I was interested in being able to show that an event starts at a specific time, but not showing the end time on the detail page so I went looking through the class file to find the tpl files/chunks to see how I could customize the look of each view.

            On line2770 you have
            $theme_eventlist_tpl =  $this->_getTheme('event.list.event',$this->config['mxCalendarTheme']);
            
            				$keys = array();
            
            				$values = array();
            
            				foreach ($ar_eventDetail as $key=>$value) {
            
            					$keys[] = '[+'.$key.'+]';
            
            					$values[] = $value;
            
            				}
            
            				$events .= str_replace($keys,$values,$theme_eventlist_tpl);


            A better approach should be to have the template chunks for each view in the config file so that a user can customize them. The webloginpe snippet is what gave me this idea. It takes more time to program, but yields a much better outcome methinks.

            Also, I’m wondering why when you create a repeating event it displays correctly in the event list, but when you click on it for the detail view it shows you the first event date / time and the last event date / time. I’m wondering if a better approach would be to make it so that when the user creates a repeating event, a unique row is created for each event, not just storing all the repeat dates in one field of one row. That would enable the detail page to display correctly or maybe when you click on the detail link there are parameters that get passed to the detail page that show that individual event’s day and not the date of start and end dates for all repeating dates.

            If you go to http://www.learnerdesign.com/calendartest.html? you can see that when you click on all the events on the page, it takes you to the same detail page. What would be better, would be if an additional parameter gets passed in the url that would be like
            http://www.learnerdesign.com/calendartest.html?&details=100&date=05/12/2011
            so that 05/12/2011 could be set into the start date parameter on the detail view page.


            I really appreciate all your hard work and hope my suggestions are constructive.

            -Noah

            You can override any of the default templates files, or should be able to, through "chunk" overrides in the snippet call. I didn’t make each possible component of the calendar a "chunk" by default as I feel that adds to much clutter to the system if you only have one part of the display you want to alter, in which case you’d only have to copy the one template file content and make your edits as needed. That does not mean that wont or can’t change in the future that was just my logic.

            As to the detail view of the repeat dates there should be another url parameter that is passed that tell the system which repeat date to load to dates for that does not look like is getting added to the URL string. I’ll certainly take another look at that.

            The other note to the option on why store just the repeat dates in a column vs. each as an independent item, my logic was simply performance (DB, PHP) and also storage/data normalization why store all the same column info if they only different in all the rows is 10 characters, if you end up with a couple thousand items that can add up quickly. Also I’ve worked on enhancements to other CMS platform calendar type components that did just that and the processing time, storage, and maintenance of those records was always an point of frustration. Again just my personal pref, so nothing stating that any of this wont change in the future.

            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: TomMLS at Feb 08, 2011, 11:37 AM

              Please don’t abandon this calendar project until the Revo version is working properly.
              Alternatively perhaps more people could get involved and help with coding etc.??
              I can’t because I am not a coder.
              Thank you...

              Don’t worry Tom, no plan to abandon the project it’s just the time to maintain, develop, document, test, etc. that takes time. To date my total donations are $120, thanks in large part to Noah whom has donated over half that. That means I have to keep finding those paying projects smiley that suck away my time. No expectations and I’m extremely grateful of any type of donation the biggest reward is seeing it used and providing back to the community.

              Cheers

                Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                Visit CharlesMx.com for latest news and status updates.
                • 20927
                • 6 Posts
                Charless, this is an excellent module!

                0.1.2-rc2 on Evolution 1.0.4; PHP 5.3; MySQL 5.1

                I am having trouble with Links. Whenever someone adds a Link (ex. http://primer.1024kwebdev.com/pages/about.html) in an event setup it resolves to 0.html?r=99 (where 99 is different for each) in the full calendar view. It resolves correctly in the list view.

                I read a post about 0.0.7 that mentioned running jquery on the same page. Unfortunately I think I need jquery for QuickManager.

                Any suggestions on how to get around this?

                Thanks
                  • 34084 ☆ A M B ☆
                  • 756 Posts
                  Quote from: nancyl at Feb 18, 2011, 09:37 AM

                  Charless, this is an excellent module!

                  0.1.2-rc2 on Evolution 1.0.4; PHP 5.3; MySQL 5.1

                  I am having trouble with Links. Whenever someone adds a Link (ex. http://primer.1024kwebdev.com/pages/about.html) in an event setup it resolves to 0.html?r=99 (where 99 is different for each) in the full calendar view. It resolves correctly in the list view.

                  I read a post about 0.0.7 that mentioned running jquery on the same page. Unfortunately I think I need jquery for QuickManager.

                  Any suggestions on how to get around this?

                  Thanks

                  This was a bug report and it’s corrected in the release I hope to have out over the weekend.

                  Cheers
                    Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                    Visit CharlesMx.com for latest news and status updates.
                    • 28100
                    • 66 Posts
                    Hi there,

                    Early I installed mxCal and I can’t get the popup/modal window working, it shows the even but in a blank template page.

                    I have base_url in the head, the CSS and JS etc are loading (with JS errors) and my calls are:

                    [!mxcalendar? &mxcType=`full` &mxcAjaxPageId=`13` &mxcFullCalendarPgId=`12`!]

                    [!mxcalendar? &mxcFullCalendarPgId=`12` !]

                    I’ve tried various different calls but still nothing.

                    JS errors are:
                    window.addEvent is not a function
                    
                    Line 21

                    Fire bug pauses on line 245 at:
                    Window.onDomReady(MOOdalBox.init.bind(MOOdalBox));


                    If I disable tooltips I get this error:
                    $A is not defined
                    
                    Line 430


                    And in the config page it has the option "Display only todays events" - should this display only todays events if set to true?

                    Cheers for any help and thanks for your efforts! smiley
                      • 34084 ☆ A M B ☆
                      • 756 Posts
                      If you have a url for me to view the rendered html that would help or post the header content for review.

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