@flurryfish Yeah, it's definitely not usable as-is, I will take a closer look this weekend.
yariplus
Posts
-
[nodebb-plugin-forms] Request for feedback -
[nodebb-plugin-newsletter] Send e-mail newsletters to your users.Version 0.9
- Added option to exclude site title from email subject.
- Changed parsing to convert relative links to absolute.
-
Whatβs in a name?@MJ Nah, still does it on desktop.
-
[nodebb-plugin-blog-comments] Blog Commenting Engine (Ghost, Wordpress widget)I decided to install a fresh copy of ghost and NodeBB to see what's up.
The plugin does technically work, but you need to use the script in the README/git and not the one on this page which is outdated.
Correct script:
<a id="nodebb-comments"></a> <script type="text/javascript"> var nbb = {}; nbb.url = '//your.nodebb.com'; // EDIT THIS nbb.cid = 1; // OPTIONAL. Forces a Category ID in NodeBB. // Omit it to fallback to specified IDs in the admin panel. (function() { nbb.articleID = '{{../post.id}}'; nbb.tags = [{{#../post.tags}}"{{name}}",{{/../post.tags}}]; nbb.script = document.createElement('script'); nbb.script.type = 'text/javascript'; nbb.script.async = true; nbb.script.src = nbb.url + '/plugins/nodebb-plugin-blog-comments/lib/ghost.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(nbb.script); })(); </script> <script id="nbb-title" type="text/markdown">{{../post.title}}</script> <script id="nbb-markdown" type="text/markdown">{{../post.markdown}}</script> <noscript>Please enable JavaScript to view comments</noscript>
After that, commenting it works great.
HOWEVER, the bigger issue is, ghost no longer uses Markdown, but HTML. So the article content doesn't show up on NodeBB.
You can change the script to use
{{../post.content}}
in place of{{../post.markdown}}
to feed the HTML to NodeBB, but you will also need to turn Allow HTML on in the Markdown plugin.Then it works.
-
How to add privacy policy to registration page@daftcyborg Use the setting "Forum Terms of Use" in the
admin/settings/user
page for a simple agreement at registration. -
2.0 Compatible Plugins@phit You got it boss!
-
20i FOSS awards - Why no NodeBB ?They had more money.
-
[nodebb-plugin-featured-topics-extended] Feature Topics in a News/Blog page and Widgets.I published v1.11.0 for v3. Still has a lot of work to do.
- Styles aren't quite right.
- Widgets don't work at all.
- Using a custom template doesn't work.
- Pagination is weird.
Adding, deleting, and editing lists works. The default news and blog pages work. Shouldn't crash too often.
I'll be keeping an eye on this page.
-
Image upload problem@dihuta @Sylvain-Reboux
Please try the updated redactor version 1.4.3 and let me know if it works for you. -
nodebb torrents tracker@Kalbaskin Yeah, you could do that. There's plenty of npm modules that do this for you that you could use to make a plugin.
-
Idea: the minimum number of tags -
[nodebb-plugin-minecraft-integration] Minecraft Integration!v0.3.4 Changes
New Widget: Dynmap Mini Map
- Displays a mini Dynmap with configurable start location. (World/MapType/Coordinate)
- Can be attached to the Status Widget, or used on its own.
New Feature: Dynmap Modals
- Can add a links to MiniMap or Status widgets to open Dynmap in a fullscreen-ish modal window.
- Full chat capabilities for local servers.
Added option to disable the plugin list.
Added togglable option groups for the Server Status ACP for better organization.
Fixed alignment of a lot of widgets.
Fixed some ajax issues from a recent core update. -
howto: inject hidden data into composer?Okay, I added 'action:composer.submit' which passes the composerData with an extra property 'extraFields' for a plugin to edit. Then the 'extraFields' is passed to the server filter hook, action hook, and return socket calls.
This was the fastest/easiest way I got it to work.
Send any extra fields from the composer to plugin hooks. by yariplus Β· Pull Request #4984 Β· NodeBB/NodeBB
#4979 Extra fields here: NodeBB/nodebb-plugin-composer-default#67
GitHub (github.com)
-
How can I add a script tag to the page from a pluginYou can just stick it in the require call, just tested it on my forum and it worked.
require(['composer', 'composer/controls', 'https://www.dropbox.com/static/api/2/dropins.js'], function(composer, controls) {
-
request - Nodebb Blog plugin -
Send email to users?Here you go
https://www.npmjs.com/package/nodebb-plugin-newsletterI added a drop-down with all the groups instead of always sending to everyone.
I also remove any user who is banned.
Issues/Todos:
- It squashes everything in the body into one line, there's probably a quick fix for that, but what I really want to have is a composer-like area.
- It seems to always send the email as plain text.
- Would be nice to have a checkbox that also creates a new topic for the newsletter.
- Needs to have an unsubscribe functionality.
-
howto: inject hidden data into composer?@baris said in howto: inject hidden data into composer?:
the plugin is responsible for setting any new fields into
topic
fromdata
.Ahhh, okay! Now I get it. The plugin needs to alter the postdata in the
create
andedit
hooks, and that data is passed to the action and sockets.Also in case I missed it your PR was just setting
.extraFields
but there was no actual way to set those values in the database. That's why I am passing 2 objects to thefilter:topic.create
filter:post.create
hooks. Unless you meant to write to the database in the action hooks, which isn't create because action hooks don't have callbacks to send back errors and execution just keeps going.Yes, that makes total sense now. I was indeed altering the database in the action hook. Altering the postdata in the create hooks is the right way.
-
Widgets zones in themes@baris said:
Not sure if its gonna stay this way though, we want to refactor widget areas for a while now so they are more extendable.
Please, this is all I want for christmas.
-
Vendor?True to the name public/vendor, it is for files only used on the client, although some can be used server/node side, they are not at the moment, afaik.
-
[nodebb-plugin-minecraft-integration] Minecraft Integration!v0.5.0 Changes
This is a complete re-imagining of the plugin. The app is more modular, uses an API, and dynamically updates all widgets. Widgets are updated in real-time when used with [bukkit-plugin-nodebb-integration]
New Features
Widgets update dynamically!
New admin page. Servers are easier to configure, and you can enter an unlimited amount.
ACP Widgets are colorful and more dynamic.
Container titles can use the server variables {{motd}} and {{name}}
An API was added using GET requests or SocketIO connections.
Minecraft Avatars are stored on the database for quicker retrieval.
You can use a custom Avatar CDN.
Overviewer maps are now available, in additional to the default Dynmap.Bukkit-Plugin-NodeBB-Integration
You can use Bukkit-Plugin-NodeBB-Integration to enhance the features of the forum plugin. By default, this plugin will send real-time updates to all forum widgets. If you use SSL and enter an API Key on both plugins, users will be able to use the "/register" command. This will create a new account for the user and/or add their UUID to their forum account. Also, this will link there Player Avatar to their forum profile among other things.
New Widgets
(Require [bukkit-plugin-nodebb-integration])
TPS Graph Widget
A graph showing the servers' recent Ticks per Second.
Chat Widget
Show a mini-shoutbox-like widget that records the in-game chat and allow web messages. (Doesn't send to the server, yet.)
Notes
Avatar borders and rainbow charts are not migrated yet. (Soon.)
You will lose all of your <v0.5.0 data.
Top Widgets can only show playtime, for now.
Overviewer maps work fine, but will complain in logs.
Large maps are coming.