share NodeBB Header and Footer
-
@StuartH use this nodebb-plugin-42, it's not documented yet, but install it locally, open the plugin page in the admin panel, you'll figure out to add more buttons with icons and links to the NodeBB navigation.
let me know if you want more features, in return, we don't hijack this thread
@psychobunny not exactly what I had in mind.. though your solution is possible, but, I kinda wanted the NodeBB header and footer to be the MAIN header and footer of the site, instead of overwriting the NodeBB
header.tpl
andfooter.tpl
to 'a/pre/ppend' just like the onehundredfreebook.com way.I was thinking something like:
truncated WordPress theme file
header.php
<?php // some wp stuff // .... echo curl_init("http://nodebb-forum.example.com/header"); // maybe more wp stuff ?>
-
@bentael said:
@StuartH use this nodebb-plugin-42, it's not documented yet, but install it locally, open the plugin page in the admin panel, you'll figure out to add more buttons with icons and links to the NodeBB navigation.
let me know if you want more features, in return, we don't hijack this thread
@psychobunny not exactly what I had in mind.. though your solution is possible, but, I kinda wanted the NodeBB header and footer to be the MAIN header and footer of the site, instead of overwriting the NodeBB
header.tpl
andfooter.tpl
to 'a/pre/ppend' just like the onehundredfreebook.com way.I was thinking something like:
truncated WordPress theme file
header.php
<?php // some wp stuff // .... echo curl_init("http://nodebb-forum.example.com/header"); // maybe more wp stuff ?>
Thanks @bentael so this is configurable from the admin panel rather than through terminal?
-
@julian hehe i spent over 30 minutes trying to come up with a name, then I gave up and called it 42
-
These errors are coming from his instance:
error: Error: Error: ERR value is not an integer or out of range at HiredisReplyParser.<anonymous> (/path/to/stuarts/instance/node_modules/redis/index.js:263:27) at HiredisReplyParser.EventEmitter.emit (events.js:95:17) at HiredisReplyParser.execute (/path/to/stuarts/instance/node_modules/redis/lib/parser/hiredis.js:41:18) at RedisClient.on_data (/path/to/stuarts/instance/node_modules/redis/index.js:488:27) at Socket.<anonymous> (/path/to/stuarts/instance/node_modules/redis/index.js:82:14) at Socket.EventEmitter.emit (events.js:95:17) at Socket.<anonymous> (_stream_readable.js:746:14) at Socket.EventEmitter.emit (events.js:92:17) at emitReadable_ (_stream_readable.js:408:10) at emitReadable (_stream_readable.js:404:5) at readableAddChunk (_stream_readable.js:165:9)
-
It doesn't support NodeBB edge yet, are u on 0.2.1?
Regardless I'm planning a rewrite this weekend. I will support the latest. And fix that stuff. -
@StuartH
I re-wrote most of this nodebb-plugin-42 today, I also addedappend to <head>
config but keep in mind that this append occurs ondocument.ready
, and made it compatible with NodeBB latestmaster
.give it a shot, let me know if it still sucks.
-
@bentael said:
@StuartH
I re-wrote most of this nodebb-plugin-42 today, I also addedappend to <head>
config but keep in mind that this append occurs ondocument.ready
, and made it compatible with NodeBB latestmaster
.give it a shot, let me know if it still sucks.
Yea thanks Bentael I will give it a try? -
I can't reproduce the problem. any error logs? on both server and client sides?
do you have a demo public link I can use to login and check?
are you on Mongo or Redis, (not that it should make a difference, but just the new code used another way to save configs)