share NodeBB Header and Footer
-
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)
-
@StuartH it may have to do with how often NodeBB calls the
filter:footer.build
hook, and since it's a SINGLE PAGE APP, it's not much, I've seen that weirdness, but I am not too sure what to do about it, the filter is pretty straight forward. what you can do to verify that's the footer code is being generated correctly, is to view-source of the page, then search fornodebb-plugin-42
comment.
if for some reason, the javascript generated is invalid, you may have a page error. I am working on a fix for this issue