Thanks @Mr_Waffle !
I started implementing this method in my static page plugin. I actually saw it in your shoutbox code on github (and stole it ) before you wrote this how to.
Thanks @Mr_Waffle !
I started implementing this method in my static page plugin. I actually saw it in your shoutbox code on github (and stole it ) before you wrote this how to.
@psychobunny Oh, maybe I didn't understand the new staticDirs mapping.
I had it set to:
"staticDirs": {
"public":"public"
}
OK, just did a test and changing "staticDirs" worked. It's not super obvious what the objects meant, since the example I saw just had "public":"public".
I changed it to be:
"staticDirs": {
"pathName": "actualDirectory"
}
and that worked.
Here's what my working config looks like:
"staticDirs": {
"leaguezone":"public"
}
and addScripts:
addScripts: function(scripts, callback) {
return scripts.concat([
"plugins/leaguezone/js/transparency.min.js",
"plugins/leaguezone/js/leagueZone.js",
"plugins/leaguezone/js/results.js",
"plugins/leaguezone/js/leagues.js"
]);
}
Thanks!
@julian This is what I have in addScripts, but it appears to be crashing before it ever gets called.
addScripts: function(scripts, callback) {
return scripts.concat([
"plugins/nodebb-plugin-static-leaguezone/js/transparency.min.js",
"plugins/nodebb-plugin-static-leaguezone/js/leagueZone.js",
"plugins/nodebb-plugin-static-leaguezone/js/results.js",
"plugins/nodebb-plugin-static-leaguezone/js/leagues.js"
]);
}
I just pulled the latest from github and now my forum is crashing. It appears to be tied to my static-page plugin filter:scripts.get hook. If I remove that hook, it doesn't crash.
Here's the dump:
info: [plugins] Hook registered: filter:admin.header.build will call nodebb-plugin-static-leaguezone
info: [plugins] Hook registered: filter:admin.create_routes will call nodebb-plugin-static-leaguezone
info: [plugins] Hook registered: filter:header.build will call nodebb-plugin-static-leaguezone
info: [plugins] Hook registered: filter:server.create_routes will call nodebb-plugin-static-leaguezone
info: [plugins] Hook registered: filter:scripts.get will call nodebb-plugin-static-leaguezone
info: [plugins] Hook registered: action:app.load will call nodebb-plugin-static-leaguezone
info: [plugins] Loaded plugin: nodebb-plugin-static-leaguezone
info: [plugins] Sorting hooks to fire in priority sequence
info: [plugins] Plugins OK
path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at /home/skaught/www/digitalhydros/nodebb/src/meta.js:255:20
at Array.map (native)
at Object.<anonymous> (/home/skaught/www/digitalhydros/nodebb/src/meta.js:249:24)
at /home/skaught/www/digitalhydros/nodebb/src/plugins.js:277:16
at /home/skaught/www/digitalhydros/nodebb/node_modules/async/lib/async.js:251:13
at /home/skaught/www/digitalhydros/nodebb/node_modules/async/lib/async.js:139:25
at /home/skaught/www/digitalhydros/nodebb/node_modules/async/lib/async.js:248:17
Also, here's my hooks from plugin.json
"hooks": [
{ "hook": "filter:admin.header.build", "method": "init.admin.addNavigation", "callbacked": false },
{ "hook": "filter:admin.create_routes", "method": "init.admin.addRoute", "callbacked": true },
{ "hook": "filter:header.build", "method": "init.global.addNavigation", "callbacked": false },
{ "hook": "filter:server.create_routes", "method": "init.global.addRoute", "callbacked": true },
{ "hook": "filter:scripts.get", "method": "init.global.addScripts", "callbacked": false },
{ "hook": "action:app.load", "method": "init.load", "callbacked": false }
]
Thanks @baris!
I had a user telling me he couldn't reset his password, so I went through the process.
I entered my email and clicked reset password. I received an email with a link back to my forums.
When I open the password reset link, I can enter a new password, but the Reset Password button is disabled.
I'm using latest code from github.
@julian, sorry to derail the thread, but is there a running list of available hooks somewhere, so we don't have to search through code?
@barveyhirdman said:
@kevin you shouldn't edit /etc/nginx/sites-enabled directly.
The normal flow of enabling sites is
- nano /etc/nginx/sites-available/<site-name>
- write config
- ln -s /etc/nginx/sites-available/<site-name> /etc/nginx/sites-enabled/<site-name>
This creates a symbolic link to the file in sites-available. Anyway, the default config is usually in the default file, other than that a good convention can be <subdomain>.<domain>, or in your case just californiamotorcycleforum.com
For some reason when I did the symbolic link nginx didn't pick it up, I had to just copy the file from sites-available to sites-enabled.
I've been using cloud9 ide https://github.com/ajaxorg/cloud9/ for nodejs stuff.
@psychobunny, I got nginx proxy running now, so you can change mine to just http://digitalhydros.uhlhydroplanes.com/
That's still not the permanent url yet though (which is why I hadn't posted it in here yet).
@bentael said:
nodebb-plugin-emailer-mandrill
basically copied your mailgun files,
Ctrl+R "mailgun" "mandrill"
npm publishdon't try this at home
I tried it at home, and it worked! Thanks for the plugin!
@julian said:
Haha, you're right! I guess that means your suggestions were very good
Edit: Still thinking of changing the "envelope" to fa-comment-o with a # inside of it.
I like that idea
yeah, something like that.
I noticed when I quote someone's post it doesn't automatically add @username of the user I'm quoting. I was just thinking that it'd be nice if it did that for you.
I'm pretty sure you won't send more than 10k emails a day
I think its 10k/month, but I highly doubt I'll ever use that much.
I'll update, it's not that big of a deal, I'd rather stay on the bleeding edge while I'm developing the site.
I just got sendmail/postfix working on my server yesterday!
As long as I don't have to pay for one of these services its fine.
Is there currently no way to tell a theme to use custom tpl files? That would probably solve this issue.
I was wondering this myself before I dive into editing the templates.
heh, all right, I'll hold off on that for now anyway, I have a bunch of other stuff to get done.
I got emails working, is there an easy way to send the password reset emails to every user?