It would be cool if each user was able to define their own custom CSS rules, which would override (or not) the forum-wide CSS rules. Of course, this feature could be disabled in the ACP
Thouv
Posts
-
Per-user custom CSS -
Custom CSS not working@PitaJ said in Custom CSS not working:
I just want to make sure that every possibility is exhausted.
Can you try turning the Enable Custom CSS toggle off, then saving the page, then turning it back on, then saving the page again? Thanks.
And can you check for any errors in the browser console when on that page?
It worked! Thanks
Just had to disable, save, and reenable. Weird. -
Custom CSS not working@PitaJ said in Custom CSS not working:
They look completely normal, except with the default CSS
By this do you mean that they look completely normal, as if they were on the default CSS? Or do you mean that they don't look normal when they're on the default CSS?
I imagine you mean that the custom CSS just isn't applying. Is that correct? Or does it break something when you add it?
If it does break something, can you take a screenshot of that breakage? Thanks.
They look completely normal, as if they were on the default CSS. Yes, it just isn't applying, nothing breaks. And the CSS rules don't show up in dev tools
-
Custom CSS not working@PitaJ said in Custom CSS not working:
I just tried that on v1.4.6, and it didn't reproduce.
What do you mean by "don't work"? Can you access the forums? Do they look funny? Are there errors?
No errors in console, and yes I can access them. They look completely normal, except with the default CSS. This happens with any skin btw
-
Custom CSS not working.navbar-default {
background-color: #009ACD;
border-color: #009ACD;
}#join_serv_div {
border: 4px solid #009ADD;
background: transparent;
color: #009ADD;
transition: background 0.4s, color 0.4s;
padding: 6px;
margin-bottom: 12px;
}#join_serv_div:hover {
background: #009ADD;
color: #fefefe;
} -
Custom CSS not working@Telokis said in Custom CSS not working:
@Thouv You should provide more information like the CSS you are actually trying to insert, I think.
@Thouv said in Custom CSS not working:
So basically, custom CSS isn't working on my forums. I'm up-to-date (1.4.6), but I don't think it's a version issue, because this still happened when I was on 1.4.4.
If I addany CSS rules
on my forums, they don't work. I tried restarting my forums, Ctrl + F5, everything.Anything. background-color, font-family, margin, whatever you can think of
-
Custom CSS not workingSo basically, custom CSS isn't working on my forums. I'm up-to-date (1.4.6), but I don't think it's a version issue, because this still happened when I was on 1.4.4.
If I add any CSS rules on my forums, they don't work. I tried restarting my forums, Ctrl + F5, everything. -
Moving from NodeJS to NginxNevermind, I got it fixed!
Had to set the url in NodeBB config to http://mydomain.com:4567 and setproxy_pass
to http://mydomain.com:4567 in Nginx config
Thanks @PitaJ -
Moving from NodeJS to Nginx@PitaJ said in Moving from NodeJS to Nginx:
@Thouv you run NodeBB on a different port, and proxy that through nginx onto port 80. We recommend doing this even if you are only running NodeBB. Check out the example nginx configs in your docs.
I wrote exactly what was written on there, with NodeBB running on 4567. When I start NodeBB, everything is fine, and there are no errors in the log. However, when I try to access my forums, I get a 502 Bad Gateway and this shows up in the log:
18/4 19:52:35 [8293] - error: TypeError: Cannot read property 'loggedIn' of undefined at helpers.displayMenuItem (/opt/nodebb/public/src/modules/helpers.js:20:44) events.js:160 throw er; // Unhandled 'error' event ^ Error: write after end at writeAfterEnd (_stream_writable.js:193:12) at LogStream.Writable.write (_stream_writable.js:244:5) at Socket.ondata (_stream_readable.js:555:20) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at Socket.Readable.push (_stream_readable.js:134:10) at Pipe.onread (net.js:551:20)`
-
Moving from NodeJS to NginxSo, first of all, I'm a complete noob at everything about web servers and such.
Basically, I have NodeBB running on port 80, and I installed it as it said in the guide for Ubuntu. I'm guessing it's running on NodeJS. Anyways, I want to move my forum to a subdomain, and Ik I need to do that with Nginx. That way, I can have a website on the main domain. So what do I need to do to have NodeBB running on Nginx on port 80 as a subdomain and still be able to run a website on the main domain, on port 80 as well?