yes, it works.
anderson916
Posts
-
TypeError: Object #<Object> has no method 'escape' -
[Solved] user image not showntook out if from the src · NodeBB/NodeBB@fd41d93
Node.js based forum software built for the modern web - took out if from the src · NodeBB/NodeBB@fd41d93
GitHub (github.com)
yes, it works.
-
[Solved] user image not showntopics.thumb
anderson@heaven:~/projects/forum.zaijiajiaoyu.net$ grep -R 'topics.thumb' * public/templates/category.tpl: <img src="<!-- IF topics.thumb -->{topics.thumb}<!-- ELSE -->{topics.picture}<!-- ENDIF topics.thumb -->" class="img-rounded user-img" title="{topics.username}"/>
-
[Solved] user image not shownafter using the latest master code, the user images are not shown.
the URLs are not correct, for example:
http://www.zaijiajiaoyu.net/uploads/1-profileimg.png%3C!--%20ENDIF%20topics.thumb%20--%3E
but if I remove the tail section, it works.
http://www.zaijiajiaoyu.net/uploads/1-profileimg.png
-
TypeError: Object #<Object> has no method 'escape'source: the latest master code.
/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/index.js:535 throw err; ^ TypeError: Object #<Object> has no method 'escape' at /home/anderson/projects/forum.zaijiajiaoyu.net/src/topics.js:318:28 at try_callback (/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/index.js:532:9) at RedisClient.return_reply (/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/index.js:614:13) at HiredisReplyParser.<anonymous> (/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/index.js:266:14) at HiredisReplyParser.EventEmitter.emit (events.js:95:17) at HiredisReplyParser.execute (/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/lib/parser/hiredis.js:43:18) at RedisClient.on_data (/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/index.js:488:27) at Socket.<anonymous> (/home/anderson/projects/forum.zaijiajiaoyu.net/node_modules/redis/index.js:82:14) at Socket.EventEmitter.emit (events.js:95:17) at Socket.<anonymous> (_stream_readable.js:746:14)
change src/topics.js:318 from:
data.title = validator.escape(data.title);
to:
data.title = data.title; //validator.escape(data.title);
It works now.
-
[Solved] Uncaught ReferenceError: require is not definedgreat hint.
-
[Solved] WebSocket connection to 'ws://forum.zaijiajiaoyu.net/socket.io/1/websocket/zot0tQJTmE7fAYON9D9A' failed: Error during WebSocket handshake: Unexpected response code: 502You are correct. I am using ubuntu 12.04 and the version of nginx is low. After I upgrade nginx, it works. Thank you.
-
[Solved] WebSocket connection to 'ws://forum.zaijiajiaoyu.net/socket.io/1/websocket/zot0tQJTmE7fAYON9D9A' failed: Error during WebSocket handshake: Unexpected response code: 502I am using the latest chrome. why does the websocket connection fail ?
-
[Solved] Uncaught ReferenceError: require is not definedit works now. I don't know why it happened and why it disappeared.
-
[Solved] Uncaught ReferenceError: require is not definedHi,
I cloned the latest source and run 'npm install', but when I access the forum, it always show the following error and the real content is not shown. I have tried many times, the result is the same. Please help me. Thank you.