@ronny good to hear that 👍
I was going to suggest iframely plugin if this did not work.
@jongarrison Since the plugin states "compatibility": "^1.0.4"
from that version onwards, I guess there is a known incompatibility with [email protected]<=1.0.3
.
@frissdiegurke Woah! Thanks for pointing that out.
Need some help! Or support.. All work fine and i can create static page!
On that static page we create HTML form for PayPal checkout for example..
How receive USER.EMAIL variable from nodebb and put inside that form as HIDDEN field ???
Also Pay gateway return with method POST some variables! How use returned VAR ??
Need complete transaction and write Transaction ID to redis!
@vitasllc Sounds like you are heading towards plugin development vs just putting up a custom static page. Check out how to use NodeBB templates with custom routes and widgets: https://github.com/NodeBB/nodebb-plugin-quickstart
How would I upload a javascript file (typed.js) to use in a custom page?
@_axe Pretty much the same as in their docs, but you need to require
the library instead of using a script tag to import it.
<div id="typeme"></div>
<script>
require(['https://cdnjs.cloudflare.com/ajax/libs/typed.js/1.1.1/typed.min.js'], function(){
$("#typeme").typed({
strings: ["First sentence.", "Second sentence."],
typeSpeed: 0
});
});
</script>
If you don't want to use a cdn, you can also just put typed.js into your public directory, and just require 'typed.js'.
Plugin not work!
15/5 17:51 [2262] - info: [plugins/spam-be-gone] Settings loaded
15/5 17:51 [2262] - warn: [hotswap] Could not find router in stack with hotswapId custom-pages
What to do!??
@vitasllc The 0.3.x
versions of this plugin seem to require an unstable branch of NodeBB. You should stay with 0.2.x
versions until NodeBB 1.0.4
is released.
@frissdiegurke is the master of compatibility issue. This is the version that worked for me in NodeBB 1.0.3 last week:
npm install [email protected]
Yes ! It is help ! Master 1.0.3
Who know how use internal variable of nodebb or redis field?
Need transfer username and e-mail to external form ..
I use html widget inside custom-pages ! All work and JS so ..
How put inside form fields that have default with username e-mail and another fields ?
@vitasllc For user fields, you can use the app.user
global. For example, in an HTML widget, this would work...
<form>
User: <input name="username" type="text"><br>
Email: <input name="email" type="text">
</form>
<script>
$('[name="username"]').val(app.user.username);
$('[name="email"]').val(app.user.email);
</script>
Thank u very much! It is work… I must learn doc and javascript
May be u know how do after post form write to redis database..?
When we submit external form and callback to nodebb from PayMent gateway need write PayMent ID and some other parameters to redis nodebb user
@vitasllc The best place to learn about customizing NodeBB is to start with the docs:
https://docs.nodebb.org/en/latest/
and to look at the source of plugins that do something similar to what you want to do:
(this one is very basic) https://github.com/NodeBB/nodebb-plugin-quickstart
(maybe search npm) https://www.npmjs.com/search?q=nodebb-plugin-
and finally to ask questions to the wonderful community here when you aren't able to find answers:
https://community.nodebb.org/category/7/nodebb-plugins
im trying to delete an item, i already deleted it via the options page for the custom page, but its still showing up in the header, any ideas?
@psychobunny
This plugin could use some documentation.
Any links google is hiding from me?
Such as bbcode images, html formatting images, even the gallery lightbox plugin with this.
Thanks much!
I absolutely love this plugin. It was a real game changer for me. Thank you very much!
I think I'm having issues related to this plugin after update to very latest 1.2.1. Node restart crashes with:
error: Error: ENOTEMPTY: directory not empty, rmdir '/root/nodebb/public/templates'
That directory contains .tpl files for static pages.