[nodebb-plugin-custom-pages] Custom Static pages for NodeBB
-
@Arc no problem. I've found that slashes in routes can cause lots of problems in NodeBB core and plugins
-
@Arc are you referring to the title displayed in the tab? I think that that feature isn't implemented yet, but not exactly sure.
-
Any idea if this is working in version 1?
-
@HolyPhoenix yeah works fine for me
-
Is anybody else seeing errors and route not found in version 1.0.3 of NodeBB and the latest version of the custom pages plugin (0.3.0)?
In the logs I'm seeing:
warn: [hotswap] Could not find router in stack with hotswapId `custom-pages`
Everything works fine if I revert to [email protected]
-
@jongarrison Since the plugin states
"compatibility": "^1.0.4"
from that version onwards, I guess there is a known incompatibility withNodeBB@<=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
-
@_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'.
-
@vitasllc The
0.3.x
versions of this plugin seem to require an unstable branch of NodeBB. You should stay with0.2.x
versions until NodeBB1.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>