Page 1 of 1

Chat With Button

PostPosted: 20 Dec 2010, 15:27
by dbarreca
Hi People,

I was just wondering if someone know how to implement a "Chat With Me" button
in a User page...I tried to do something like this...

Code: Select all
<a href="javascript: void(0);" id="arrowchat_userlist_<?php echo $User -> get('id'); ?>" class="arrowchat_userlist">Chat With Me</a>


It works..but only if the online user's list is open...and it isn't so useful..

Does anyone know how to fix this thing?

Thank you all! :mrgreen:

- Luca -

Re: Chat With Button

PostPosted: 20 Dec 2010, 17:06
by Jason
Use:

Code: Select all
onclick="javascript:jqac.arrowchat.chatWith('userID');"


For your example:

Code: Select all
<a href="javascript: void(0);" onclick="javascript:jqac.arrowchat.chatWith('<?php echo $User -> get('id'); ?>');">Chat With Me</a>

Re: Chat With Button

PostPosted: 27 Jan 2011, 20:39
by JMenezes
Thanks for this too.

I would like to know, how to do the same, but for opening chatrooms?

Re: Chat With Button

PostPosted: 27 Jan 2011, 23:17
by Jason
JMenezes wrote:Thanks for this too.

I would like to know, how to do the same, but for opening chatrooms?

We'll be extending the API in an upcoming update.

Re: Chat With Button

PostPosted: 31 Jan 2011, 14:48
by JMenezes
Hi, with 1.0.1 its possible to call out the chat room? if not, could you help me how could I do it myself? regards!

Re: Chat With Button

PostPosted: 31 Jan 2011, 14:54
by ArrowFan
I assume you mean pop out? You have to login to your arrowchat admin panel>Chat features>Enable popout chat>Save Changes.

Re: Chat With Button

PostPosted: 03 Feb 2011, 13:05
by JMenezes
Not pop out, just open a chat room with a javascript, like opening a friend chat as the example given by JASON

Re: Chat With Button

PostPosted: 19 Mar 2011, 10:54
by JMenezes
Hi, any news?

PostPosted: 28 Mar 2011, 09:53
by Jack
I would like to pop-up a specific chatroom as well, based on ID. Any news on this?

PostPosted: 28 Mar 2011, 11:29
by Jason

PostPosted: 07 Jul 2011, 19:39
by NSM
Were do you put this code??? The code for the chat with me function...

PostPosted: 27 Nov 2011, 12:11
by DTaylor
if its not too much to ask, where would i put this "Chat With Me" button code?

thanks!!!!

PostPosted: 27 Nov 2011, 21:11
by Jason
DTaylor wrote:if its not too much to ask, where would i put this "Chat With Me" button code?

thanks!!!!


Here is an example:

Code: Select all
<a href="javascript: void(0);" onclick="javascript:jqac.arrowchat.chatWith('<?php echo $User -> get('id'); ?>');">Chat With Me</a>


You would replace the $User->get('id') part with however you get the user's ID. You can place it wherever you want. Most people place it on a user's profile page so that another person visiting the page can chat with the user.

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.