HI
I want to change email message. I want to add my custom message. How I do that also I want to edit notif_chat.tpl file. I want add user profile image into chat email notification. How I do that?
How communicate server with client[NodeBB plugin]
-
I read different tutorial like this:
https://community.nodebb.org/topic/2407/how-to-send-alerts-to-users-after-user-creation/2
But for me it doesn't work. My purpose is when a user publics a post the program shows a message of welcome with some like app.alert, this is the code(library.js):
var websockets = module.parent.require('./socket.io');
//and in the method that captures the hook for the post i write
websockets.server.sockets.in('user/' + uid).emit('event:alert', {
title: 'test', message: 'something' });
The problem is that I don't see the alert so I'wroing something. Anyone can help me?
-
Try changing this part
websockets.server.sockets.in('user/' + uid)
to
websockets.in('uid_' + uid)
-
@yariplus said:
websockets.in('uid_' + uid)
Thanks for your suggest but It doesn't work :(... It doesn't give me any error!
-
what is the value of
uid