Read the statement by Michael Teeuw here.
Changing compliments
-
I had a similar problem. It showed an error for my entire addition to the config.js. Run check:config again and pay close attention to the beginning of the output. The first error should say something about expecting a bracket of one kind and it was returned a bracket of a different kind. It will also tell you the line of the error. Now nano back into config scroll down to your addition and press ctrl + c. The bottom of your screen should give you your current line number. Find the error. Mine was a missing bracket. Fixing this error fixed the entire script. All other errors were the result of the first. Sorry if I wasn’t clear or missed something, im still a new to this too. Hope it helps.
-
@AliAS remember after locating and fixing the error to hit ctrl + o to save and ctrl + x to exit nano.
-
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?
-
@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. :-)
-
@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.
-
Well done! :-)
-
External join file? Lol, thats way outta my league.
-
Does anybody know how to use a line break within a compliment? I’ve tried about a dozen different ways to no avail.
-
@AliAS
Compliments are included viadocument.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. -
I see. I’ll give it a try. Thank you very much.