@ufan0 said in Excuse me, how to set a nodebb two domain address.:
Like this? it works.
[email protected]:~/xxx# cat config.json { "url": "http://xxx.com", "url": "http://www.xxx.com", ... }
This is wrong,please don't be misled by me,sorry.
Hello guys.
I run into this problem for one year, see link text if you are interest into the old story. But it becomes serious after I upgrade to 1.7.4 in which the header was switched off by default.
Whenever I want to save my customized CSS or Header :
NodeBB encountered a problem saving changes
By the suggestion by @baris in this link , I modify it to message: err.message
, then it becomes:
Changes Not Saved: unrecognized input
What am I supposed to do?
Thank you very much
Below is my CSS:
body {
font-family:
"Times New Roman";
}
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
Header:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']]
},
TeX: {equationNumbers: { autoNumber: "AMS" } }
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
@sharonyue did you mean to include the script
element in your CSS? That's most likely causing an error.
Not exactly. Now the script
in CSS works. Header
also works before I upgrade to 1.7.4.
After upgrade, Header
was switched off by default. If I switch it on in API, it says
NodeBB encountered a problem saving changes. Changes Not Saved: unrecognized input
@sharonyue what? Putting a script element in the CSS definitely should not work. Try removing it, please.
@pitaj said in Can not save settings: unrecognized input:
Putting a script element in the CSS definitely should not work.
Thank you!! After I remove the script
in the CSS. I can save the header. The one-year-problem has been fixed. Thank you very much.
Nice! Glad to hear it, thanks for the quick fix @PitaJ