Yes you can use them inside the AMD module but keep in mind once you add an event listener on the window object it will be called everytime there is an action:ajaxify.end. If you don't want it triggered after you leave that page you need to turn it off with $(window).off('eventName', myMethod)
[nodebb-plugin-shoutbox] Shoutbox plugin
-
How do I obtain the new version? I attempting to 'npm install nodebb-plugin-shoutbox' again, but nothing has changed.
-
@kelso said:
How do I obtain the new version? I attempting to 'npm install nodebb-plugin-shoutbox' again, but nothing has changed.
It's not available yet, I want to implement more updates first.
-
Being able to disable gists & archives is good, I did that manually.
-
@Sp4rkR4t said:
Being able to disable gists & archives is good, I did that manually.
Funny, because I hate it when forums disable the ability to view the shoutbox archive... Really tempted to create a guide to bypass it...
-
^ 100th post
-
i have an issue with images path for emoticons (i am running nodebb behind nginx )
paths generated by this plugin are like http://xxx.xxx.com:4567/plugins/nodebb-plugin-emoji-extended/images/grinning.png
to be correct the port 4567 should be removed -
@manuel I think you have the wrong plugin thread?
-
@Scuzz this is happening only into the shoutbox
-
@manuel Sure? what path do the other emotes have?
-
i tried a git pull and restarted nodebb, now i have the problem everywhere, so it's the emoji plugin
sorry
can some1 move my post to the correct topic please? -
@manuel I get the same link to an image no matter where the image is, shoutbox and the forums. They all have the port numbers. I am using nginx too
-
@Scuzz said:
@manuel I get the same link to an image no matter where the image is, shoutbox and the forums. They all have the port numbers. I am using nginx too
i run nginx on public ip port 80 and it forwards to nodebb on 127.0.0.1:4567
the only "fix" i could do is to add a listener on 4567 but i don't understand why the emoji plugin adds the port when nodebb does not for all the other urls -
@manuel probably for the people who do not run it behind a reverse proxy.
-
@manuel It's because I use
nconf.get('url')
to get the domain (in fact this remains from @julian).
I need any way to get the absolute path of NodeBB-root. I guess thenconf.get('url')
is ment to avoid problems with sub-directories (that would appear if I use/
instead).
Since I cannot see any automatic way around this for all use-cases you may just replaceemojiPath=nconf.get("url")+"/plugins/nodebb-plugin-emoji-extended/images"
byemojiPath="/plugins/nodebb-plugin-emoji-extended/images"
within your/nodebb/root/node_modules/nodebb-plugin-emoji-extended/index.js
you'd need to redo this every time I update the plugin until this may get supported.
Maybe a url-prefix field will occur within the ACP/emoji-extended next update -
@frissdiegurke What's the problem here, port shows up in the url? As far as I know,
nconf.get('url')
should not give the port unlessuse_port
istrue
inconfig.json
-
kk, in this case it's just a problem of @manuel s configuration
I just usednconf.get('url')
without knowing anything about nconf -
@scuzz have this too but I don't know if he is running nodebb @ 4567 voluntarily
I don't think to have any particular configuration on my server, I've just used the tutorial on github to setup the ngnix proxy
afaik port number is appended only on emoji's urls
-
@frissdiegurke said:
@manuel It's because I use
nconf.get('url')
to get the domain (in fact this remains from @julian).
I need any way to get the absolute path of NodeBB-root. I guess thenconf.get('url')
is ment to avoid problems with sub-directories (that would appear if I use/
instead).
Since I cannot see any automatic way around this for all use-cases you may just replaceemojiPath=nconf.get("url")+"/plugins/nodebb-plugin-emoji-extended/images"
byemojiPath="/plugins/nodebb-plugin-emoji-extended/images"
within your/nodebb/root/node_modules/nodebb-plugin-emoji-extended/index.js
you'd need to redo this every time I update the plugin until this may get supported.
Maybe a url-prefix field will occur within the ACP/emoji-extended next updateremoving nconf.get("url") worked but it was config.json use_port = true
during setup and watching online documentation this effect on urls was not clear to me, sorry
-
Like @julian said it's better to set "use_port" within your nodbb-root/config.json to false, that will remove the port from the paths without destroying possibility to update plugin or installation within sub-directories (don't know if it's even fully supported by nodebb yet)
-
Been a while since an update... Luckily a lot has been done since, and version 0.1.0 will be released soon!
The most notable change? A new design!
This is a screenshot of the latest version running over at our forum
Some other notable changes:- User status is reflected by the green border around their avatar. This is stylable by theme creators.
- Inline editing! Instead of the annoying edit popup, editing is now done in the input box.
- Skype like editing of your last shout! Just press the up arrow to start editing your last shout!
- User settings -- you can change your Shoutbox settings in your user settings now!
- Admins can turn off features in the admincp (like archive and the gist button).
- Also the admincp, complete redesign! Screenshot can be found a few posts up.
- (Almost) completely refactored client code! It's a lot more maintainable now!
- A load of bugfixes and tweaks that enhance your experience!
- Compatible with the very latest NodeBB!
Also, if you haven't noticed yet: I now go by a different username