It seems others can get the "Alternative Login" button in login page, but I can't... I just clone the repo, add code, copy the folder into node_modules, then activate it in ACP. Did I miss something?
@PitaJ said in NodeBB custom Javascript check current user groups:
You can use Ajax to request their user page, and in the json it should specify all of the groups they're in.
ah sorry forgot to reply here,
meantime I found out, that its not a problem in custom JS to use app.user.groupTitle
it works fine so good
Hi,
In settings I have session time set for 14 days.
But many users have a problem that they are being logged out every day.
I also need to log in every single day.
Where I can look for the issue ?
@CaptainK Sadly users will do the easiest thing and teaching them sadly isn't going to work. Would be nice to have a setting that limits how deep quotes can go.
After upgrading to v1.13.0 nodebb version , I am not able to upload image on website
[image: 2XuS0Sg.png]
When I tried checking output log, I see this
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'
Require stack:
/home/aaravkr/public_html/doubt/NodeBB/node_modules/sharp/lib/constructor.js /home/aaravkr/public_html/doubt/NodeBB/node_modules/sharp/lib/index.js /home/aaravkr/public_html/doubt/NodeBB/src/image.js /home/aaravkr/public_html/doubt/NodeBB/src/topics/thumb.js /home/aaravkr/public_html/doubt/NodeBB/src/topics/index.js /home/aaravkr/public_html/doubt/NodeBB/src/categories/delete.js /home/aaravkr/public_html/doubt/NodeBB/src/categories/index.js /home/aaravkr/public_html/doubt/NodeBB/src/privileges/categories.js /home/aaravkr/public_html/doubt/NodeBB/src/privileges/index.js /home/aaravkr/public_html/doubt/NodeBB/src/posts/index.js /home/aaravkr/public_html/doubt/NodeBB/src/plugins/index.js /home/aaravkr/public_html/doubt/NodeBB/src/groups/index.js /home/aaravkr/public_html/doubt/NodeBB/src/user/index.js /home/aaravkr/public_html/doubt/NodeBB/src/events.js /home/aaravkr/public_html/doubt/NodeBB/src/meta/themes.js /home/aaravkr/public_html/doubt/NodeBB/src/meta/index.js /home/aaravkr/public_html/doubt/NodeBB/src/start.js /home/aaravkr/public_html/doubt/NodeBB/require-main.js /home/aaravkr/public_html/doubt/NodeBB/app.js
Remove the "node_modules/sharp" directory, run "npm install" and look for errors Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/ Search for this error at https://github.com/lovell/sharp/issues
I am not able to remove 4567 from http://subdomain:4567
How to do it ?
Steps I am following
(a) Reading from here https://docs.nodebb.org/configuring/proxies/apache/
(b) Making subdomain.conf , keeping it inside /etc/apache2/conf.d/includes
and attaching this line Include /etc/apache2/conf.d/includes/subdomain.conf into httpd.conf
(c) Changing URL of config.json inside NodeBB folder to http://subdomain.conf
Code which I am using in subdomain.conf is as follows :
<VirtualHost *:80>
ServerName www.sub-domain.com
RequestHeader set X-Forwarded-Proto "http"
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:4567/$1 [P,L]
ProxyPass / http://127.0.0.1:4567/
ProxyPassReverse / http://127.0.0.1:4567/
</VirtualHost>
Hi,
I have a question : Can someone please point me in the right direction, to get this information?
In the acp, I am able to view the visitors and pageviews according to the time period, via the graph on the dashboard.
However, I am not able to see such a breakdown for user signups, topics, and posts.
Thanks for help
Hercules.
I was discovered this css framework for my projects to replace Bootstrap, and I loved. This is a smart unopinionated css framework who give us a lot of flexibility and maybe can let UI designers more powerfull to create lot of themes for NodeBB. Leaving ACP with bootstrap, this can be used only for user frontend. It is easy to "emulate" BS componentes at first glance on migration (there are few utilities for this), so we can switch to TailwindCSS getting the same look and feel. That's all, only a suggestion.
Regards
https://tailwindcss.com/
Hi,
I tried adding new relic package into my nodeBB install by adding
after removing the new relic agent from app.js its working fine again.
I just wanted to let other nodeBB forum administrators to know about this issue if they face same problem.