@brazzerstop said in [manual] Build a Dock Panel:
If you mean show "select category" on every category/topic page, I think no.
yep It's that what I mean, I have testing with category number 0 but don't working
@kadmy , sure: upload the file controls.png from the plugin folder \node_modules\bxslider\dist into NodeBB assets. The file looks like the bitmap below.
[image: 1611963514006-controls.png]
Then change the LESS to
.my-wrapper {
box-shadow: none;
border: none;
.bx-prev {
background: url(/assets/uploads/controls.png) no-repeat 0px -32px;
}
.bx-next {
background: url(/assets/uploads/controls.png) no-repeat -43px -32px;
}
}
This file contains the standard bxSlider. But you can use any other icon. Just upload it or point to the url of your preference.
Please update to v0.1.2 for more fixes.
@scottalanmiller Sure! My minecraft plugin does this. Using the action:widgets.loaded hook for loading the initial data and appending it via jQuery using the data-widget selector, then I update the data using websockets and/or a setTimeout with an ajax call.
Like this?
https://github.com/NodeBB/nodebb-widget-essentials/blob/master/public/templates/widgets/activeusers.tpl
This pre-renders the list of active users from server data. And then has some inline JS with socket call to update the list as new users become active
@sergej-saveljev said:
@a_5mith \{posts.editor.username\} not work in widgets
Is that available in the api on the page you're viewing the widget on. I'm pretty sure that's how it works. Pinging @psychobunny as it's his templates.js.
For @planner, this script can be placed in the "Global Footer" widget area (or any other widget area present on all pages). It overrides the ajaxify method and returns anchors to their default operation, which is a regular page load.
Get the script here