Widgets for guests
-
@Mifczu said:
Hi, I have a problem with nodebb. I add widget to
home.tpl
and i have unchackedHide from anonymous user?
but i don't see it on home page. This same is when i add widget to global. Reset nodebb not helping. Is this any cache?Ticking Hide from Anonymous users hides it for guests. If you only want to show it to guests, you would need to do something like this
<!-- IF !loggedIn --> div Widget /div <!-- ENDIF !loggedin -->
-
Are there any errors in your browser-console (as anonymous user) (Ctrl + Shift + J in chrome and firefox)?
Or do you have a link where I could check?
-
@Mifczu said:
Gateway Time-out
Are you using nginx? If so ensure that you have version 1.3.13 or later installed.
-
May you test if this is widget-depending (activate just one widget at once, test also plain Text-widget).
-
No problem
pinging @Schamper because it's his plugin. -
@frissdiegurke @Mifczu I replied to the issue on Github.
Basically, I did this on purpose. It was easier to just hide the shoutbox when not logged in than to disable all the logged in futures. Besides, when I made it this way, NodeBB didn't have the option to hide widgets for anonymous users.
nodebb-plugin-shoutbox/library.js at master ยท NodeBB-Community/nodebb-plugin-shoutbox
NodeBB Shoutbox plugin. Contribute to NodeBB-Community/nodebb-plugin-shoutbox development by creating an account on GitHub.
GitHub (github.com)
Edit: I actually think I'm starting to see the issue. The issue is not that the shoutbox is hidden, it's that other widgets are hidden, right? If so, I'll work on a fix whenever I get the time.