NodeBB doesn't really support multiple domains, and we recommend you redirect one to the other instead.
PitaJ
Posts
-
Multiple domain (pwa, sitemap, plugins) -
My Teamspeak PluginsI made two Teamspeak plugins.
One allows for automated server administration, the other allows for the server tree, online users, etc to be shown in a widget.
nodebb-plugin-teamspeak
https://github.com/pitaj/nodebb-plugin-teamspeak
nodebb-widget-teamspeak
https://github.com/pitaj/nodebb-plugin-teamspeakRight now, the documentation is sparse. I'm going to work on that after I finish the other plugins I'm working on.
You're welcome,
PitaJ
-
Is there any mobile client for nodebbThis is unrelated to your question, but I think it would be amazing if we did this:
- NodeBB app made with React Native
- Work upwards, implementing a web interface and front end API for plugins to use based on React Native components
- Backwards compatibility with plugins
- Profit from data binding, fast routing, etc
-
nodebb not getting startedMake sure the mongodb service is running
-
NodeBB PWA@meetdilip NodeBB already tries to be as progressive as possible.
PWA isn't a thing. What I mean is that "progressive web apps" is really just a name for any website that supports a certain set of features and behaviors.
But yes, being more progressive and using the technologies available to provide the best user experience everywhere is something NodeBB tries to do.
-
Plugin Contest Entries: Calendar, Teamspeak admin, Teamspeak viewing widgetThese are my entries for the plugin contest bonanza. The Teamspeak ones were made in late September, but I still hope that the Calendar one will be eligible for the beginner category.
nodebb-plugin-calendar
Current stable version: 0.1.1
npm install nodebb-plugin-calendar
This plugins creates a site-wide calendar with permissions and notifications.Features
- Synchronization between different users' activities on the Calendar page
- Full permissions system separate from that of the main site
- Individual event permissions for viewing and editing of the event
- Public events (even guests can see them)
- Simplistic, graceful UI (infinite scroll OMG!)
- Comments system using NodeBB topics
- Response system for easy user responses
- Click a day on the calendar to select it, and show its events in the sidebar
- Click an event in either the sidebar or the calendar to show its details in the sidebar
- All events are posted in the events category specified in the ACP Note: events can only be edited from the Calendar interface
- Jump to year and month from the fields above the Calendar
- Configurable automated notifications for upcoming events
- Mobile device support
Current features I'm planning on adding:
- Automate category permissions
- iCal export
- Event permalinks on calendar page
nodebb-plugin-teamspeak
npm install nodebb-plugin-teamspeak
A powerful utility for TS3 admins, this plugin allows for automated Teamspeak admin abilities to be configured from NodeBB. The setup is pretty self-explanatory, all done from the admin page.Known issues:
- Spams the server log
- Doesn't use winston
nodebb-widget-teamspeak
npm install nodebb-widget-teamspeak
A small widget which polls the TS3 server on page load, this can be configured to either only show number of online users and the server info, or can be configured to also show a complete channel tree. The widget isn't really styled right now, but can be easily styled via the custom css option in the admin area. -
Any 3rd party tool/editor to generate code to center images/videos@Cygnus I've fixed it. Here's the updated CSS:
.img-responsive[alt^="_"], .topic .posts .content .img-responsive[alt^="_"] { margin: auto; display: block; }
-
Need help about InstallThat's not how this works. That's not how any of this works.
-
Adding User ProgramaticallyThis is a probably incomplete list of what needs to be done on user creation:
- get nextUid
- create userslug
- make sure userslug is unique
- increment uid
- save all of this data:
{ username, userslug, email, joindate, lastonline: joindate, picture, fullname, location, birthday, website: '', signature: '', uploadedpicture: '', profileviews: 0, reputation: 0, postcount: 0, topiccount: 0, lastposttime: 0, banned: 0, status: 'online', }
- increment usercount
- add username:uid map
- add userslug:uid map
- add sorted username
- add to user joindates
- add to users not validated
- add to postcount and reputation sets
- add to registered users group
- send email validation maybe
- hash the password, save the hash
And that doesn't even consider the processing that certain plugins may do to new users. You don't want to do this yourself.
-
[nodebb-plugin-calendar] Fully featured calendar plugin for NodeBB - Testers needed@Jam yes. I'm in the process of doing that right now. I'm hoping to be done by the end of the month.
-
Is there an quick way to create a report about number of forum users?@arasbm alternatively, using the new fetch API in latest browsers:
const baseRoute = '/api/users'; fetch(baseRoute) .then(res => res.json()) .then(data => { const pageCount = data.pagination.pageCount; return Promise.all( // incremental array of pageCount elements Array.from({ length: pageCount }, (x, i) => i + 1) // map to an array of promises to page results .map(page => // fetch page fetch(`${baseRoute}?page=${page}`) .then(res => res.json()) // get user joindates .then(data => data.users.map(user => ({ joindate: user.joindate, username: user.username, })) ) ) ); }) // flatten pages .then(pages => [].concat(...pages)) // now you have an array of usernames + joindates // maybe make a CSV? .then(users => { const csv = users .map(user => `${user.username}, ${new Date(user.joindate).toISOString()}`) .join('\n'); console.log(csv); });
Which would output a CSV where column A and B are the username and joindate (in ISO format) respectively, with each user on a new line.
BTW, that code works on this site, if you open the JS console and paste it in, then wait for the result, it eventually writes the full list to console.
You can then import it into Excel of it's a one time use thing, or set up a more complicated script.
-
Upgrade from v1.12.2 to v1.13.2 fails because of bootswatch dependencyYou should not be installing or running NodeBB as root. You should not be running npm as root, that is what is causing your issue.
-
How to create a footer outside the container?@Alpha-Team after some investigation, it looks to me that the Opera forums don't use the widget system for their footer. Instead they use a hard-coded customization to the
footer.tpl
template in their theme.If you wish to do the same, you can make a similar change with nodebb-plugin-customize.
footer.tpl
........ <div component="toaster/tray" class="alert-window"> <div id="reconnect-alert" class="alert alert-dismissable alert-warning clearfix hide" component="toaster/toast"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <p>[[global:reconnecting-message, {config.siteTitle}]]</p> </div> </div> <!-- ENDIF !isSpider --> <footer> ==== Your footer goes here ==== </footer> <script defer src="{relative_path}/assets/nodebb.min.js?{config.cache-buster}"></script> {{{each scripts}}} <script defer type="text/javascript" src="{scripts.src}"></script> {{{end}}} ........
-
Naming convention for socket.io message?@Bruce-Lee something like
var PluginSockets = require.main.require('./src/socket.io/plugins'); PluginSockets.yourPlugin = {}; PluginSockets.yourPlugin.whatever = function (a, b, c) {};
On the server side equates to
socket.emit('plugins.yourPlugin.whatever', a, b, c);
On the client.
-
I can't visit community.nodebb.orgI've been able to reproduce this. Working on finding the bug right now.
-
Reduce Font Size and Reducing the Line Spaces - throughoutYou can add Custom CSS with the ACP (Appearance -> Custom CSS). As a start, the following will do what you want.
.categories > li .content > h2, .category > ul > li .content h2 { font-size: 15px; } .categories > li, .category > ul > li { padding-bottom: 0; } .topic h1 .topic-title { font-size: 23px; } hr { margin-top: 10px; margin-bottom: 10px; }
-
[Solved] Help with hook on getting recent topic topics@asdrubalivan have you tried using
filter:topics.get
instead? I'd think it would cover both cases. -
[nodebb-plugin-reactions] Reactions plugin for NodeBBThe current version of reactions doesn't support nodebb-plugin-emoji. It only supports emoji-extended, which is unmaintained.
I've updated reactions to work with the new emoji plugin, but @pichalite hasn't released a new version yet.
-
How to edit category permissions?@fiiily hi, privileges have now been centralized to ACP -> Manage -> Privileges. In the future, please try using the ACP search bar.