• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Changing compliments

Scheduled Pinned Locked Moved Troubleshooting
49 Posts 9 Posters 31.7k Views 9 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    AliAS @AliAS
    last edited by Feb 1, 2018, 9:58 PM

    @AliAS remember after locating and fixing the error to hit ctrl + o to save and ctrl + x to exit nano.

    1 Reply Last reply Reply Quote 1
    • A Offline
      AliAS
      last edited by Feb 1, 2018, 10:05 PM

      Another suggestion, and someone please correct me if I am wrong, you could delete the config.js file and save as or copy the config-sample.js as a new config.js file. That way you have a functioning config.js. But doing so, you would have to reconfigure all your modules. Does that sound right?

      M 1 Reply Last reply Feb 2, 2018, 12:59 AM Reply Quote 1
      • M Offline
        Mykle1 Project Sponsor Module Developer @AliAS
        last edited by Feb 2, 2018, 12:59 AM

        @AliAS said in Changing compliments:

        Does that sound right?

        Sure, but another idea would be to rename the non-functioning config (so you don’t lose what’s in it) and THEN make a new copy of the config.js.sample and rename it to config.js. :-)

        Create a working config
        How to add modules

        S 1 Reply Last reply Feb 2, 2018, 5:15 PM Reply Quote 2
        • S Offline
          Stacy @Mykle1
          last edited by Feb 2, 2018, 5:15 PM

          @Mykle1 Okay. We finally figured it out. We made an external join file for new compliments and that worked. Thank you all SOuch for your help.

          1 Reply Last reply Reply Quote 1
          • M Offline
            Mykle1 Project Sponsor Module Developer
            last edited by Feb 3, 2018, 12:45 PM

            Well done! :-)

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • A Offline
              AliAS
              last edited by Feb 16, 2018, 7:51 AM

              External join file? Lol, thats way outta my league.

              1 Reply Last reply Reply Quote 0
              • A Offline
                AliAS
                last edited by Feb 16, 2018, 7:53 AM

                Does anybody know how to use a line break within a compliment? I’ve tried about a dozen different ways to no avail.

                D 1 Reply Last reply Feb 17, 2018, 1:01 AM Reply Quote 0
                • D Offline
                  doubleT Module Developer @AliAS
                  last edited by Feb 17, 2018, 1:01 AM

                  @AliAS
                  Compliments are included via document.createTextNode(complimentText); which doesn’t allow HTML inside.

                  But you can change the line within getDom: function() {} that includes the compliment from
                  wrapper.appendChild(compliment);
                  to
                  wrapper.innerHTML = complimentText;

                  and then just add a <br /> to the compliment.

                  A 1 Reply Last reply Feb 17, 2018, 4:02 AM Reply Quote 3
                  • A Offline
                    AliAS
                    last edited by Feb 17, 2018, 3:53 AM

                    I see. I’ll give it a try. Thank you very much.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      AliAS @doubleT
                      last edited by Feb 17, 2018, 4:02 AM

                      @doubleT That worked perfect. Thanks again!

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy