We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35291
    • 21 Posts
    I wonder if Modx could integrate a function while logged in to the manager...

    Function goToBed_ItsLate($time)

    maybe you guys have something to say about that....
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      This would be great!
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 6228
        • 249 Posts
        Considering it’s 2:00 a.m. at the moment, and my brain is fried for the evening, that function would really come in handy right now.

        +1
          lo9on.com

          MODx Evolution/Revolution | Remote Desktop Training | Development
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          A plugin to load a bit of Javascript with an alert would probably be the best way, since the server’s time may well have no relation at all to your time (mine is half-way around the world from me), while Javascript time functions work on the local machine’s time.

          But then why not just set up your local machine’s clock or calendar feature to do the same thing? Get a recording of your parent/spouse/cat/dog, and use it as the alarm sound. That way it would catch you even if you quit MODx and got caught up reading Slashdot or something.
            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