FreiChat related discussions
Private Chat Title

Hello,

I'm new to Freichat and well, i'm testing it's possible integration with a site, for private chat only.
Now, my sole question right now, is if there's any way that when the private chat is clicked, it will send an automatic message on window open to the receiver stating an URL?

Best Regards,

Marco

Hello, I'm new to Freichat and well, i'm testing it's possible integration with a site, for private chat only. Now, my sole question right now, is if there's any way that when the private chat is clicked, it will send an automatic message on window open to the receiver stating an URL? Best Regards, Marco

it will send an automatic message on window open to the receiver stating an URL?

What is the url you are to referring here ?
It is possible to send an automatic message to receiver with some slight modifications .

>it will send an automatic message on window open to the receiver stating an URL? What is the url you are to referring here ? It is possible to send an automatic message to receiver with some slight modifications .

Well, I'd like to send the URL of the page where the Chat was opened.

Well, I'd like to send the URL of the page where the Chat was opened.

You can execute the following lines to send a message :

var msg = "Hey, url = ";  
FreiChat.bulkmesg  = [msg];
FreiChat.sendMessage(USERID, msg, 1, USERNAME)
You can execute the following lines to send a message : ``` var msg = "Hey, url = "; FreiChat.bulkmesg = [msg]; FreiChat.sendMessage(USERID, msg, 1, USERNAME) ```

Hello Adesh, thank you very much for your reply.

Can you point me out on, what might be the best way to do this on a onclick action?

Thank you.

Hello Adesh, thank you very much for your reply. Can you point me out on, what might be the best way to do this on a onclick action? Thank you.

Can you point me out on, what might be the best way to do this on a onclick action?

You can send the message when the chatwindow is opened .
You can do that by editing the function FreiChat.chatWindowHTML() in
freichat/client/freichat.js

>Can you point me out on, what might be the best way to do this on a onclick action? You can send the message when the chatwindow is opened . You can do that by editing the function FreiChat.chatWindowHTML() in ```freichat/client/freichat.js```
118
5
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft