If this is what I did to myself, the composer plugin got disabled. Doublecheck that.
Shard
Posts
-
After upgrade from 1.5.x to 1.6.0, New Topic does not work -
Forum will no longer reply or start new posts.Finally got a chance to come back to this.
Well.
That was mind numbingly stupid.
So doing a ./nodebb reset -a probably shouldn't also disable the default composer.
-
Forum will no longer reply or start new posts.Somehow something in my config has changed. I can't spot it.
Whenever the new topic/reply buttons are struck.. nothing happens. I get no logged messages for this. ./nodebb dev is being remarkably silent, really.
Nor do I have errors in the browser console.
I've dropped the firewall and set selinux to permissive, no change. I reset everything. I ran upgrade for giggles.
Nothing.
I rolled back to the last checkout before my PR code and have the same behaviour.
Any thoughts on what I can do to troubleshoot this further? It's a bit baffling.
-
Introducing Our New Templating EngineIs this in head or a specific branch?
-
Nginx -
Jquery UI?Okay. I looked at this and it appears to be a bit more complicated than dropping in a new js.
-
"NodeBB could not connect to your Mongo database" Error@countach said in "NodeBB could not connect to your Mongo database" Error:
@baris thats the thing I do not get that prompt to specify the DB, it attempts to connect automatically after ./nodebb setup is executed. Could it be the authentication settings? I have security authorization enabled in my mongod.conf ...
If you had an existing config.json, it will only try to fill in blanks. Try moving your config.json out of the way and running it again. It will have prompts like this...
7/7 01:07:24 [3009] - info: Now configuring mongo database:
Host IP or address of your MongoDB instance (127.0.0.1)
Host port of your MongoDB instance (27017)
MongoDB username
Password of your MongoDB database -
Using NodeBB for Project ManagementThe thing I retain most about middle school shop class was "Sure. you can stir paint with a screwdriver, but there's a better tool for the job."
-
Multi tenant use caseI've never attempted anything like what you're looking at and my depth at the template system is fairly shallow, but I think you can do everything you're looking at just with templates and if blocks.
-
Multi tenant use caseI think if you look at the Ghost blog plugin you'll find the way to do what you're looking for part of it.
For the branding, I think you'd need to do some template magic to only show the forums for a particular domain.
-
Clarity on NodeBB@countach said in Clarity on NodeBB:
I can answer a bit.
- Is the integration of nodeBB with my own database client (say mongo) supported?
Nodebb supports redis, mongo, and a redis/mongo hybrid config.
- Is the API "build once, deploy to multiple platforms" or does an instance for each device need to be built? (web/mobile)
If I understand you correctly, there isn't really a concept of web vs mobile so long as the theme is sensibly bult.
- Does a gamification plugin/feature exist?
Try this thread?
-
Jquery UI?@psychobunny said in Jquery UI?:
Feel free to PR in the full one. We used a custom build to save on space but since we removed it from nodebb.min.js and introduced that loader method I think it's okay to include all of it
And if you can PR this into our docs that would be great as well
That might be a bit deeper than I can get. We'll see.
-
File attachment related hooksI've been trying to get a few tweaks made on the fileownership plugin I started last week along with another of mine that is dependent upon its data and I've run into a wall.
As posted last week, it was listening for the fileUpload hook. The problem with that is you end up putting data in the database for a file that might be decoupled from the message ( deleted, etc. ) and then you end up with file references cluttering the database.
Today I moved it to the topicPost/topicReply filter. This was a little better in that I knew I was dealing with the final state of the attached files for an initial post/reply ( fails utterly with edits... ) message but the file has not been moved/cloned from "/tmp" to the nodebb filesystem making it difficult to get any metadata ( size, etc ) from the file.
I tried moving it to the topicPost/topicReply actions, which occur later - but it was rather inconsistent.
This has me thinking a few things.
One - I'm doing a lot of this wrong headed and I need to completely rethink storage to account for editing messages.
Two - I need a hook that fires after the file has been moved from the tmp filesystem into the nodebb space. Does one exist? -
Jquery UI?@baris said in Jquery UI?:
@shard I think we use a custom build of jquery ui which doesn't have all the ui widgets. Does others work? For example
.draggable
?That appears to be the case. I'll open an issue. Should I open a separate one for documenting this custom builds differences?
-
Firing off client side javascript in a partial@pichalite said in Firing off client side javascript in a partial:
@Shard take a look at this plugin as reference
File not found ยท NodeBB-Community/nodebb-plugin-reactions
Reactions plugin for NodeBB. Contribute to NodeBB-Community/nodebb-plugin-reactions development by creating an account on GitHub.
GitHub (github.com)
That function is setup to run on the
topic
page. You can do that similarly for profile page.Well, I was part wrong. Seems that runs kinda inconsistently that way.
I discovered I couldn't pass the array as above from ( {myplugin.thearray} ) as the argument, found I couldn't iterate through that array unless I converted it to an array of objects.
But it won't launch in the iterated loop...
Augh.
-
Jquery UI?@baris said in Jquery UI?:
You need to load it first.
app.loadJQueryUI(function () { $( "#accordion" ).accordion(); });
This still fails, I'm a bit perplexed.
Possibly this isn't in the correct place. I'm putting it in as inline javascript in the partial the plugin is using. Should it be elsewhere?
-
Jquery UI?@baris Doh!
-
Jquery UI?I was trying to make use of a jqueryui function ( accordion ) in my theme but the console is telling me that it's not a valid function.
Are these not exposed down?
$( function() { $( "#accordion" ).accordion(); } );
-
Firing off client side javascript in a partialOh for heaven's sake.
The console had turned the logging tab off and I hadn't noticed...
I'll be over in the corner with the dunce avatar on...
-
Firing off client side javascript in a partialThrowing this in themes as it's about a template. portion...
I'm working on a plugin that throws some site specific data in the user profile/homepage.
At the moment, I'm simply trying to fire it off, inline, after the div it'll populate.
<script type="text/javascript">
loadArrayOfStuff( [ 1, 1, 1, 1, 1, 1, 1 ] );
</script>So far as I can see, this just flat out doesn't work. The loading method for the template doesn't trigger the function call.
I did a few cursory searches but didn't find anything that SEEMED to apply. What is the recommended way to do the thing here?
I only want this to fire on the profile, so I don't think I want stick this in a widget...