[nodebb-plugin-shoutbox] Shoutbox plugin
-
@Tanner Can confirm the diagnosis above. Only works on the homepage. (Or possibly whichever page is cold loaded, try cold loading category, then going to homepage, then back to category again) Either way, after ajaxify, chat is empty. Send button doesn't work.
-
I had it on the Global header before and it work fine on every page.
Edit
@Tanner @a_5mith My bad, i didnt quite understand what you were asking. It seems that it wont work in other widget areas.I thought we had it working but that might be because we were using the latest github version and not the npm version.
-
I've been using the NPM version if that makes any difference.
-
I can't disable gist function in new version. It just said saved but when I comback the gist still be ticked.
-
Since a lot of people keep asking me to publish the new shoutbox to npm, I just published it under a beta tag.
If I should trust the npm docs, you can install it using:
npm install nodebb-plugin-shoutbox@beta
This is far from completed from what I have in mind, hence the beta tag. Note that some things might not work properly, not being able to disable features is one.
-
How can I expand the height of shoutbox on
www.example.com/shoutbox
to fit in the whole page? thanks in advance. -
You can use a CSS3 feature called
vh
. It's supported in pretty much everything except Opera Mini & Android Browser at the minute.Put this in your custom CSS:
#shoutbox-content, #shoutbox-archive-content { height: 70vh; overflow-y: scroll; }
Adjust the 70vh until you're happy with it's positioning. It will look the same on all screen sizes. vh is a % of the view height. Which is the height of the users browser.
For me, using
50vh
removes the scrollbar on the page, and makes it full height including the "who's online" underneath. -
+1
works like charm. thank you so much. @a_5mith