We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29181
    • 480 Posts
    Has anyone got this up and running?
    There is a link on the download page:

    To see this calendar working you can view it on my site here: http://www.muddydogpaws.com/notebook

    Ideally I would like a calendar with dates with a different colour, that when moused over give me some details about the event. Once clicked it takes me to the blog entry.

    Anyone done something like this, with this snippet (or another)?

    Cheers,
    Taff
      Adrian Lawley: www.adrianlawley.com
      • 2605
      • 23 Posts
      Doesn’t look like anyone has done much since last year - but DittoCall would come in VERY handy for our site smiley

      Unfortunately, in debug mode, this is the error I get (no data bacK)

      Initial Data from Json
      
      {
       "title":"blog json output",
       "link":"http://www.betzinc.com.php5-8.websitetestlink.com/calendarstuff.htm",
       "description":"",
       "language":"en",
       "copyright":"Betz Senior Living Campus 2007",
       "ttl":"120",
       "entries":[
      	{
      	 "title":"Testing 1",
      	 "link":"http://www.betzinc.com.php5-8.websitetestlink.com/testing.htm",
      	 "date":"1216840451",
      	 "guid":"http://www.betzinc.com.php5-8.websitetestlink.com/testing.htm",
      	 "author":"Default admin account",
      	 "description":"",
      	 "introtext":"",
      	},
      	{
      	 "title":"Untitled document",
      	 "link":"http://www.betzinc.com.php5-8.websitetestlink.com/19.htm",
      	 "date":"1216840252",
      	 "guid":"http://www.betzinc.com.php5-8.websitetestlink.com/19.htm",
      	 "author":"Default admin account",
      	 "description":"",
      	 "introtext":"",
      	}
       ]
      }
      Data after JSON decoding
      Filter Settings
      Filter Month: 12
      Filter Year: 1969
      
      Processing Error
      There was an error processing the json data. Set the debug param equal to 1 for more info.
      


      Anyone know why this might be?

      Thanks in advance smiley
        • 9856
        • 4 Posts
        Hi, I have the same output for JSON :

        The id of the document si set as the date !! where does it come from ??
        {
         "title":"blog json output",
                 [...]
        	 "link":"http://www.spade-consulting.com/pole/outils-web/espace-interne/blog-interne/pole-enquete_article-1223540970.html",
        	 "date":"1223540970",
                 [...]
        


        As a result, Dittocal displays year 1999 and no link... Previous/Next month links do noting : the link is changed, but year 1999 is still displayed.

        I’m using Ditto 2.0.2 and reflect 1.0.2 (packaged by default with Modx  0.9.6.1p2)
          • 20349 ☆ A M B ☆
          • 453 Posts
          I followed everything in the install instructions and can’t make the calendar up & running..

          it gives me the following error
          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource:
          « PHP Parse Error »
           
          PHP error debug
            Error: 	file_get_contents(http://localhost/mywebfolder/index.phpid) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 	 
            Error type/ Nr.: 	Warning - 2	 
            File: 	C:\xampp\htdocs\mywebfolder\manager\includes\document.parser.class.inc.php(769) : eval()'d code	 
            Line: 	150
            BASE - Web Design Studio
            MODX Ambassador

            Website
            • 9795
            • 2 Posts
            Is there a way for dittoCal to pull pages based on publish-date instead of created-on date?
              • 7690
              • 166 Posts
              Is it possible to show the event title in the calendar?
              And is it possible to open a popup when clicked on an event?
              And last, is it possible to show 10 upcoming events?
                • 26040
                • 3 Posts
                Hi Guys

                I’ve been getting the same error as a few others on here:

                PHP error debug
                Error: file_get_contents(http://mysite.co.uk/modx/index.php?id=47) [function.file-get-contents]: failed to open stream: Connection refused


                I found a workaround for it, although it’s far from ideal. I made a separate php file that I uploaded to a different server, with the following inside:

                <?php
                //Get the json formatted data
                $ch = curl_init();
                $timeout = 5; // set to zero for no timeout
                curl_setopt ($ch, CURLOPT_URL, ’http://mysite.co.uk/modx/index.php?id=47’ );
                curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
                curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
                $source = curl_exec($ch);
                curl_close($ch);
                echo $source;
                ?>


                Then I reference that php page from my MODx site to get the json data from it.

                Hope that helps.
                  • 4429
                  • 429 Posts
                  Quote from: B-RaD at Jul 23, 2008, 02:58 PM

                  Doesn’t look like anyone has done much since last year - but DittoCall would come in VERY handy for our site smiley

                  Unfortunately, in debug mode, this is the error I get (no data bacK)

                  Initial Data from Json
                  
                  {
                   "title":"blog json output",
                   "link":"http://www.betzinc.com.php5-8.websitetestlink.com/calendarstuff.htm",
                   "description":"",
                   "language":"en",
                   "copyright":"Betz Senior Living Campus 2007",
                   "ttl":"120",
                   "entries":[
                  	{
                  	 "title":"Testing 1",
                  	 "link":"http://www.betzinc.com.php5-8.websitetestlink.com/testing.htm",
                  	 "date":"1216840451",
                  	 "guid":"http://www.betzinc.com.php5-8.websitetestlink.com/testing.htm",
                  	 "author":"Default admin account",
                  	 "description":"",
                  	 "introtext":"",
                  	},
                  	{
                  	 "title":"Untitled document",
                  	 "link":"http://www.betzinc.com.php5-8.websitetestlink.com/19.htm",
                  	 "date":"1216840252",
                  	 "guid":"http://www.betzinc.com.php5-8.websitetestlink.com/19.htm",
                  	 "author":"Default admin account",
                  	 "description":"",
                  	 "introtext":"",
                  	}
                   ]
                  }
                  Data after JSON decoding
                  Filter Settings
                  Filter Month: 12
                  Filter Year: 1969
                  
                  Processing Error
                  There was an error processing the json data. Set the debug param equal to 1 for more info.
                  


                  Anyone know why this might be?

                  Thanks in advance smiley

                  I got the same error. I realised that even though my json page was using a blank template, tinymce had wrapped the ditto call in <p> tags. remove these and it should work. Best change text editor to none, on the page containing your ditto json call.
                    • 4429
                    • 429 Posts
                    DittoCal does not work with the ditto parameter &dateSource=`pub_date` this is a problem as I have created blog posts that I want to appear to have been created at a different time/date.

                    E.g I created a blog post on 29th June, but I want it to show in the calendar as 5th June, as that is when the event took place, or when the content was originally written. How can I do this?
                      • 18443
                      • 7 Posts
                      There are some issues with multibyte languages (Russian for example): day&month names displays like "СенÑ�Ñ�бÑ�Ñ�" instead of "Сентябрь" et cetra.
                      The fix is to replace htmlentities to htmlspecialchars in lines 321 and 333. This is discussed here.
                      Also, day names are cut incorrectly - if I set day_name_length to 1, then I get ’�’ instead of first letter, and if 2 then only one letter. It can be fixed by replacing
                      substr($d,0,$day_name_length)
                      to
                      mb_substr($d,0,$day_name_length,'UTF-8')
                      (it’s neccessary to point encoding directly), although I don’t know how it will interfere with other charsets.