librelist archives

« back to archive

Reg: Support for load history in converse.js

Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-09 @ 06:36
Hi,

This is jothi sankar from chennai. I am a freelancer. First of all i would
like to *hats-off to you* for gave us a much needed chat application works
perfectly with XMPP.

I am trying to implement a web chat client (with openfire) for my website
which could works just like Facebook chat box. With the help of converse.js
i can able to prebind my users when they logs in to my site. and everything
works great as i already mentioned( works perfectly ). I would like to
fetching each users chat history in chat box just like in Facebook. so that
when user opens a chat box it should shows all chat histories in it(history
of messages from openfire). Can't find any relative links for this feature.

Hope you can help me to implement this feature.

Thanks in advance.

-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-09 @ 07:37
Hi jotih sangar

     Could you please register "https://im.lightwitch.org/"  and give me
user name are add me my user name " *gowthaman14@lightwitch.org
<gowthaman14@lightwitch.org>*" we discuss reagrd this

On Thu, Oct 9, 2014 at 12:06 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> Hi,
>
> This is jothi sankar from chennai. I am a freelancer. First of all i would
> like to *hats-off to you* for gave us a much needed chat application
> works perfectly with XMPP.
>
> I am trying to implement a web chat client (with openfire) for my website
> which could works just like Facebook chat box. With the help of converse.js
> i can able to prebind my users when they logs in to my site. and everything
> works great as i already mentioned( works perfectly ). I would like to
> fetching each users chat history in chat box just like in Facebook. so that
> when user opens a chat box it should shows all chat histories in it(history
> of messages from openfire). Can't find any relative links for this feature.
>
> Hope you can help me to imp lement t his feature.
>
> Thanks in advance.
>
> --
> with regards,
> Jothi sankar K
>



-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-09 @ 07:39
For chat Histroy you can use open fire plugins

                   1. Archive
                   2. Monitor service

On Thu, Oct 9, 2014 at 1:07 PM, Gowthaman m <gowthaman@ideas2it.com> wrote:

> Hi jotih sangar
>
>      Could you please register "https://im.lightwitch.org/"  and give me
> user name are add me my user name " *gowthaman14@lightwitch.org
> <gowthaman14@lightwitch.org>*" we discuss reagrd this
>
> On Thu, Oct 9, 2014 at 12:06 PM, Jothi Sankar <nk.jothisankar@gmail.com>
> wrote:
>
>> Hi,
>>
>> This is jothi sankar from chennai. I am a freelancer. First of all i
>> would like to *hats-off to you* for gave us a much needed chat
>> application works perfectly with XMPP.
>>
>> I am trying to implement a web chat client (with openfire) for my website
>> which could works just like Facebook chat box. With the help of converse.js
>> i can able to prebind my users when they logs in to my site. and everything
>> works great as i already mentioned( works perfectly ). I would like to
>> fetching each users chat history in chat box just like in Facebook. so that
>> when user opens a chat box it should shows all chat histories in it(history
>> of messages from openfire). Can't find any relative links for this feature.
>>
>> Hope you can help me to imp lement t his feature.
>>
>> Thanks in advance.
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
>


-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jyoti Bhardwaj
Date:
2014-10-09 @ 07:47
see I need cost ? am I clear ? 


From: Gowthaman m 
Sent: Thursday, October 09, 2014 1:09 PM
To: conversejs@librelist.com 
Subject: Re: [conversejs] Reg: Support for load history in converse.js


For chat Histroy you can use open fire plugins  


                   1. Archive
                   2. Monitor service 


On Thu, Oct 9, 2014 at 1:07 PM, Gowthaman m <gowthaman@ideas2it.com> wrote:

  Hi jotih sangar  


  Â  Â  Â Could you please register "https://im.lightwitch.org/" Â and 
give me user name are add me my user name "Â < 
/span>gowthaman14@lightwitch.org" we discuss reagrd this


  On Thu, Oct 9, 2014 at 12:06 PM, Jothi Sankar <nk.jothisankar@gmail.com> wrote:

    Hi,

    This is jothi sankar from chennai. I am a freelancer. First of all i 
would like to hats-off to you for gave us a much needed chat application
works perfectly wit h XMPP.


    I am trying to implement a web chat client (with openfire) for my 
website which could works just like Facebook chat box. With the help of 
converse.js i can able to prebind my users when they logs in to my site. 
and everything works great as i already mentioned( works perfectly ). I 
would like to fetching each users chat history in chat box just like in 
Facebook. so that when user opens a chat box it should shows all chat 
histories in it(history of messages from openfire). Can't find any 
relative links for this feature.


    Hope you can help me to imp lement t his feature.


    Thanks in advance.



    -- 
    with regards,
    Jothi sankar K






  -- 









  Thanks 


  Gowthaman M










-- 









Thanks 


Gowthaman M





With best regards !!! 
JYOTI BHARDWAJ 
Sr. Business development executive 
Ph: +91-11-45822333 
cell: 07428520637 
e-mail: jyoti.bhardwaj@weblinkindia.net
Skype:weblink.jb96

Weblink .In Pvt. Ltd.
33 & 33A, Rama Road,
Industrial Area, Kirti Nagar, 
New Delhi
India
110015
Ph: +91-11-45822333 (6 lines)
Fax: +91-11-41427820
web: www.weblinkindia.net

The information in this email is confidential and may be legally 
privileged. It is intended solely for the addressee. Access to this email 
by anyone else is unauthorized. If you are not the intended recipient,any 
disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. When addressed
to our clients any opinions or advice contained herein are subject to the 
terms and conditions expressed with Weblink. In. This message and any 
attachment(s) to it are provided at your request for informational 
purposes and should not be construed as a solicitation or offer to buy or 
sell any se

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-09 @ 08:24
i didn't understand

On Thu, Oct 9, 2014 at 1:17 PM, Jyoti Bhardwaj <
jyoti.bhardwaj@weblinkindia.net> wrote:

>  see I need cost ? am I clear ?
>
>  *From:* Gowthaman m <gowthaman@ideas2it.com>
> *Sent:* Thursday, October 09, 2014 1:09 PM
> *To:* conversejs@librelist.com
> *Subject:* Re: [conversejs] Reg: Support for load history in converse.js
>
> For chat Histroy you can use open fire pluginsÂ
>
>                    1. Archive
>                    2. Monitor serviceÂ
>
> On Thu, Oct 9, 2014 at 1:07 PM, Gowthaman m <gowthaman@ideas2it.com>
> wrote:
>
>> Hi jotih sangarÂ
>>
>> Â  Â  Â Could you please register "https://im.lightwitch.org/" Â and
>> give me user name are add me my user name "Â < 
/span>*gowthaman14@lightwitch.org
>> <gowthaman14@lightwitch.org>*" we discuss reagrd this
>>
>> On Thu, Oct 9, 2014 at 12:06 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>> wrote:
>>
>>>  Hi,
>>>
>>> This is jothi sankar from chennai. I am a freelancer. First of all i
>>> would like to *hats-off to you* for gave us a much needed chat
>>> application works perfectly wit h XMPP.
>>>
>>> I am trying to implement a web chat client (with openfire) for my
>>> website which could works just like Facebook chat box. With the help of
>>> converse.js i can able to prebind my users when they logs in to my site.
>>> and everything works great as i already mentioned( works perfectly ). I
>>> would like to fetching each users chat history in chat box just like in
>>> Facebook. so that when user opens a chat box it should shows all chat
>>> histories in it(history of messages from openfire). Can't find any relative
>>> links for this feature.
>>>
>>> Hope you can help me to imp lement t his feature.
>>>
>>> Thanks in advance.
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
> With best regards !!!
> JYOTI BHARDWAJ
> Sr. Business development executive
> Ph: +91-11-45822333
> cell: 07428520637
> e-mail: jyoti.bhardwaj@weblinkindia.net
> Skype:weblink.jb96
>
> Weblink .In Pvt. Ltd.
> 33 & 33A, Rama Road,
> Industrial Area, Kirti Nagar,
> New Delhi
> India
> 110015
> Ph: +91-11-45822333 (6 lines)
> Fax: +91-11-41427820
> web: www.weblinkindia.net
>
> The information in this email is confidential and may be legally
> privileged. It is intended solely for the addressee. Access to this email
> by anyone else is unauthorized. If you are not the intended recipient,any
> disclosure, copying, distribution or any action taken or omitted to be
> taken in reliance on it, is prohibited and may be unlawful. When addressed
> to our clients any opinions or advice contained herein are subject to the
> terms and conditions expressed with Weblink. In. This message and any
> attachment(s) to it are provided at your request for informational purposes
> and should not be construed as a solicitation or offer to buy or sell any se
>



-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-09 @ 09:13
Hai Gowtham,

Thanks for the response.

I have registered myself but when am entering received UDID for
verification it says like code expired. i have done these all in just 2 min
of time. So there are no possibility to expired. So better we can continue
our communication here i guess

As you mentioned I do have open archive plugin installed in my openfire
server. How can i do get archive messages and display them when chat box
gets open?



On Thu, Oct 9, 2014 at 1:54 PM, Gowthaman m <gowthaman@ideas2it.com> wrote:

> i didn't understand
>
> On Thu, Oct 9, 2014 at 1:17 PM, Jyoti Bhardwaj <
> jyoti.bhardwaj@weblinkindia.net> wrote:
>
>>  see I need cost ? am I clear ?
>>
>>  *From:* Gowthaman m <gowthaman@ideas2it.com>
>> *Sent:* Thursday, October 09, 2014 1:09 PM
>> *To:* conversejs@librelist.com
>> *Subject:* Re: [conversejs] Reg: Support for load history in converse.js
>>
>> For chat Histroy you can use open fire pluginsÂ
>>
>>                    1. Archive
>>                    2. Monitor serviceÂ
>>
>> On Thu, Oct 9, 2014 at 1:07 PM, Gowthaman m <gowthaman@ideas2it.com>
>> wrote:
>>
>>> Hi jotih sangarÂ
>>>
>>> Â  Â  Â Could you please register "https://im.lightwitch.org/" Â and
>>> give me user name are add me my user name "Â < 
/span>*gowthaman14@lightwitch.org
>>> <gowthaman14@lightwitch.org>*" we discuss reagrd this
>>>
>>> On Thu, Oct 9, 2014 at 12:06 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>>> wrote:
>>>
>>>>  Hi,
>>>>
>>>> This is jothi sankar from chennai. I am a freelancer. First of all i
>>>> would like to *hats-off to you* for gave us a much needed chat
>>>> application works perfectly wit h XMPP.
>>>>
>>>> I am trying to implement a web chat client (with openfire) for my
>>>> website which could works just like Facebook chat box. With the help of
>>>> converse.js i can able to prebind my users when they logs in to my site.
>>>> and everything works great as i already mentioned( works perfectly ). I
>>>> would like to fetching each users chat history in chat box just like in
>>>> Facebook. so that when user opens a chat box it should shows all chat
>>>> histories in it(history of messages from openfire). Can't find any relative
>>>> links for this feature.
>>>>
>>>> Hope you can help me to imp lement t his feature.
>>>>
>>>> Thanks in advance.
>>>>
>>>> --
>>>> with regards,
>>>> Jothi sankar K
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>
>>>
>>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>> With best regards !!!
>> JYOTI BHARDWAJ
>> Sr. Business development executive
>> Ph: +91-11-45822333
>> cell: 07428520637
>> e-mail: jyoti.bhardwaj@weblinkindia.net
>> Skype:weblink.jb96
>>
>> Weblink .In Pvt. Ltd.
>> 33 & 33A, Rama Road,
>> Industrial Area, Kirti Nagar,
>> New Delhi
>> India
>> 110015
>> Ph: +91-11-45822333 (6 lines)
>> Fax: +91-11-41427820
>> web: www.weblinkindia.net
>>
>> The information in this email is confidential and may be legally
>> privileged. It is intended solely for the addressee. Access to this email
>> by anyone else is unauthorized. If you are not the intended recipient,any
>> disclosure, copying, distribution or any action taken or omitted to be
>> taken in reliance on it, is prohibited and may be unlawful. When addressed
>> to our clients any opinions or advice contained herein are subject to the
>> terms and conditions expressed with Weblink. In. This message and any
>> attachment(s) to it are provided at your request for informational purposes
>> and should not be construed as a solicitation or offer to buy or sell any se
>>
>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
>


-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jc Brand
Date:
2014-10-09 @ 13:39
Hi Jothi

In order to show chat history from previous sessions, both your XMPP server and
converse.js needs to support XEP-0013 (flexible offline message retrieval).

There is a feature ticket open for this:
https://github.com/jcbrand/converse.js/issues/174

This is an oft requested feature, but so far no-one has contributed an
implementation of it or has been willing to pay for it.

Payment is not a requirement for features to be added, the vast majority of
work I've done on converse.js was for free, but for certain larger features,
such as this one, I'll only get to it once I'm sufficiently motivated, or once
I'm paid for it.

Pull requests are welcome if anyone else implements this.

Regards
JC

On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>    Hi,
> 
>    This is jothi sankar from chennai. I am a freelancer. First of all i would
>    like to hats-off to you for gave us a much needed chat application works
>    perfectly with XMPP.
> 
>    I am trying to implement a web chat client (with openfire) for my website
>    which could works just like Facebook chat box. With the help of
>    converse.js i can able to prebind my users when they logs in to my site.
>    and everything works great as i already mentioned( works perfectly ). I
>    would like to fetching each users chat history in chat box just like in
>    Facebook. so that when user opens a chat box it should shows all chat
>    histories in it(history of messages from openfire). Can't find any
>    relative links for this feature.
> 
>    Hope you can help me to implement t his feature.
> 
>    Thanks in advance.
> 
>    --
>    with regards,
>    Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-09 @ 14:54
Hi JC,

Thanks for the response.
Now only am trying to create a dev environment in windows. as far now i
have used latest release for the implementation.

This is what i have done so far,

Installed git and cloned converse.js
installed node js

I don't know where i have to run this command "make dev" and
"npm install" runs perfectly then if i run "bower update" it gives error
message as

C:\Users\machine2\converse.js>bower update
'bower' is not recognized as an internal or external command,
operable program or batch file.

What am doing wrong?

Can you help me with creating a development environment?

Thanks in advance

On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <lists@opkode.com> wrote:

> Hi Jothi
>
> In order to show chat history from previous sessions, both your XMPP
> server and
> converse.js needs to support XEP-0013 (flexible offline message retrieval).
>
> There is a feature ticket open for this:
> https://github.com/jcbrand/converse.js/issues/174
>
> This is an oft requested feature, but so far no-one has contributed an
> implementation of it or has been willing to pay for it.
>
> Payment is not a requirement for features to be added, the vast majority of
> work I've done on converse.js was for free, but for certain larger
> features,
> such as this one, I'll only get to it once I'm sufficiently motivated, or
> once
> I'm paid for it.
>
> Pull requests are welcome if anyone else implements this.
>
> Regards
> JC
>
> On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
> >    Hi,
> >
> >    This is jothi sankar from chennai. I am a freelancer. First of all i
> would
> >    like to hats-off to you for gave us a much needed chat application
> works
> >    perfectly with XMPP.
> >
> >    I am trying to implement a web chat client (with openfire) for my
> website
> >    which could works just like Facebook chat box. With the help of
> >    converse.js i can able to prebind my users when they logs in to my
> site.
> >    and everything works great as i already mentioned( works perfectly ).
> I
> >    would like to fetching each users chat history in chat box just like
> in
> >    Facebook. so that when user opens a chat box it should shows all chat
> >    histories in it(history of messages from openfire). Can't find any
> >    relative links for this feature.
> >
> >    Hope you can help me to implement t his feature.
> >
> >    Thanks in advance.
> >
> >    --
> >    with regards,
> >    Jothi sankar K
>



-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-09 @ 15:09
Hi JC,

I have managed to install and update bower as well but can't run "make dev"
command.

i have tried on "git-bash" and got this

*machine2@JOSAN ~/converse.js (master)*
*$ make dev*
*sh.exe": make: command not found*


system cmd as administrator and as a normal user nothing is helpful

*C:\Users\machine2\converse.js>make dev*
*'make' is not recognized as an internal or external command,*
*operable program or batch file.*


Whats wrong? where i have to run this command actually???

On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> Hi JC,
>
> Thanks for the response.
> Now only am trying to create a dev environment in windows. as far now i
> have used latest release for the implementation.
>
> This is what i have done so far,
>
> Installed git and cloned converse.js
> installed node js
>
> I don't know where i have to run this command "make dev" and
> "npm install" runs perfectly then if i run "bower update" it gives error
> message as
>
> C:\Users\machine2\converse.js>bower update
> 'bower' is not recognized as an internal or external command,
> operable program or batch file.
>
> What am doing wrong?
>
> Can you help me with creating a development environment?
>
> Thanks in advance
>
> On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <lists@opkode.com> wrote:
>
>> Hi Jothi
>>
>> In order to show chat history from previous sessions, both your XMPP
>> server and
>> converse.js needs to support XEP-0013 (flexible offline message
>> retrieval).
>>
>> There is a feature ticket open for this:
>> https://github.com/jcbrand/converse.js/issues/174
>>
>> This is an oft requested feature, but so far no-one has contributed an
>> implementation of it or has been willing to pay for it.
>>
>> Payment is not a requirement for features to be added, the vast majority
>> of
>> work I've done on converse.js was for free, but for certain larger
>> features,
>> such as this one, I'll only get to it once I'm sufficiently motivated, or
>> once
>> I'm paid for it.
>>
>> Pull requests are welcome if anyone else implements this.
>>
>> Regards
>> JC
>>
>> On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>> >    Hi,
>> >
>> >    This is jothi sankar from chennai. I am a freelancer. First of all i
>> would
>> >    like to hats-off to you for gave us a much needed chat application
>> works
>> >    perfectly with XMPP.
>> >
>> >    I am trying to implement a web chat client (with openfire) for my
>> website
>> >    which could works just like Facebook chat box. With the help of
>> >    converse.js i can able to prebind my users when they logs in to my
>> site.
>> >    and everything works great as i already mentioned( works perfectly
>> ). I
>> >    would like to fetching each users chat history in chat box just like
>> in
>> >    Facebook. so that when user opens a chat box it should shows all chat
>> >    histories in it(history of messages from openfire). Can't find any
>> >    relative links for this feature.
>> >
>> >    Hope you can help me to implement t his feature.
>> >
>> >    Thanks in advance.
>> >
>> >    --
>> >    with regards,
>> >    Jothi sankar K
>>
>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jc Brand
Date:
2014-10-09 @ 16:21
Sorry, but I don't use windows and am not in a position to support development
on a windows machine.

In order to use "make" on windows, you need to install it first:
http://gnuwin32.sourceforge.net/packages/make.htm

However, "make dev" basically runs "npm install" and "bower update", so if you run
those to commands individually, then you don't need to run "make dev".

On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>    Hi JC,
>    I have managed to install and update bower as well but can't run "make
>    dev" command.
>    i have tried on "git-bash" and got this
> 
>      machine2@JOSAN ~/converse.js (master)
>      $ make dev
>      sh.exe": make: command not found
> 
>    system cmd as administrator and as a normal user nothing is helpful
> 
>      C:\Users\machine2\converse.js>make dev
>      'make' is not recognized as an internal or external command,
>      operable program or batch file.
> 
>    Whats wrong? where i have to run this command actually???
>    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]nk.jothisankar@gmail.com>
>    wrote:
> 
>      Hi JC,
>      Thanks for the response. 
>      Now only am trying to create a dev environment in windows. as far now i
>      have used latest release for the implementation.
>      This is what i have done so far,
>      Installed git and cloned converse.js
>      installed node js
>      I don't know where i have to run this command "make dev" and
>      "npm install" runs perfectly then if i run "bower update" it gives error
>      message as 
>      C:\Users\machine2\converse.js>bower update
>      'bower' is not recognized as an internal or external command,
>      operable program or batch file.
>      What am doing wrong?
>      Can you help me with creating a development environment?
>      Thanks in advance
>      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com> wrote:
> 
>        Hi Jothi
> 
>        In order to show chat history from previous sessions, both your XMPP
>        server and
>        converse.js needs to support XEP-0013 (flexible offline message
>        retrieval).
> 
>        There is a feature ticket open for this:
>        [3]https://github.com/jcbrand/converse.js/issues/174
> 
>        This is an oft requested feature, but so far no-one has contributed an
>        implementation of it or has been willing to pay for it.
> 
>        Payment is not a requirement for features to be added, the vast
>        majority of
>        work I've done on converse.js was for free, but for certain larger
>        features,
>        such as this one, I'll only get to it once I'm sufficiently motivated,
>        or once
>        I'm paid for it.
> 
>        Pull requests are welcome if anyone else implements this.
> 
>        Regards
>        JC
>        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>        >    Hi,
>        >
>        >    This is jothi sankar from chennai. I am a freelancer. First of
>        all i would
>        >    like to hats-off to you for gave us a much needed chat
>        application works
>        >    perfectly with XMPP.
>        >
>        >    I am trying to implement a web chat client (with openfire) for my
>        website
>        >    which could works just like Facebook chat box. With the help of
>        >    converse.js i can able to prebind my users when they logs in to
>        my site.
>        >    and everything works great as i already mentioned( works
>        perfectly ). I
>        >    would like to fetching each users chat history in chat box just
>        like in
>        >    Facebook. so that when user opens a chat box it should shows all
>        chat
>        >    histories in it(history of messages from openfire). Can't find
>        any
>        >    relative links for this feature.
>        >
>        >    Hope you can help me to implement t his feature.
>        >
>        >    Thanks in advance.
>        >
>        >    --
>        >    with regards,
>        >    Jothi sankar K
> 
>      --
>      with regards,
>      Jothi sankar K
> 
>    --
>    with regards,
>    Jothi sankar K
> 
> References
> 
>    Visible links
>    1. mailto:nk.jothisankar@gmail.com
>    2. mailto:lists@opkode.com
>    3. https://github.com/jcbrand/converse.js/issues/174

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-10 @ 03:17
Jothi i dont have that much experience  node js with windows7 i am workng
on ubuntu

go to project directory ==> npm install -g bower

 add me your hanghout : "gowthaman.ideas2it@gmail.com"

On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:

> Sorry, but I don't use windows and am not in a position to support
> development
> on a windows machine.
>
> In order to use "make" on windows, you need to install it first:
> http://gnuwin32.sourceforge.net/packages/make.htm
>
> However, "make dev" basically runs "npm install" and "bower update", so if
> you run
> those to commands individually, then you don't need to run "make dev".
>
> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
> >    Hi JC,
> >    I have managed to install and update bower as well but can't run "make
> >    dev" command.
> >    i have tried on "git-bash" and got this
> >
> >      machine2@JOSAN ~/converse.js (master)
> >      $ make dev
> >      sh.exe": make: command not found
> >
> >    system cmd as administrator and as a normal user nothing is helpful
> >
> >      C:\Users\machine2\converse.js>make dev
> >      'make' is not recognized as an internal or external command,
> >      operable program or batch file.
> >
> >    Whats wrong? where i have to run this command actually???
> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
> nk.jothisankar@gmail.com>
> >    wrote:
> >
> >      Hi JC,
> >      Thanks for the response.
> >      Now only am trying to create a dev environment in windows. as far
> now i
> >      have used latest release for the implementation.
> >      This is what i have done so far,
> >      Installed git and cloned converse.js
> >      installed node js
> >      I don't know where i have to run this command "make dev" and
> >      "npm install" runs perfectly then if i run "bower update" it gives
> error
> >      message as
> >      C:\Users\machine2\converse.js>bower update
> >      'bower' is not recognized as an internal or external command,
> >      operable program or batch file.
> >      What am doing wrong?
> >      Can you help me with creating a development environment?
> >      Thanks in advance
> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
> wrote:
> >
> >        Hi Jothi
> >
> >        In order to show chat history from previous sessions, both your
> XMPP
> >        server and
> >        converse.js needs to support XEP-0013 (flexible offline message
> >        retrieval).
> >
> >        There is a feature ticket open for this:
> >        [3]https://github.com/jcbrand/converse.js/issues/174
> >
> >        This is an oft requested feature, but so far no-one has
> contributed an
> >        implementation of it or has been willing to pay for it.
> >
> >        Payment is not a requirement for features to be added, the vast
> >        majority of
> >        work I've done on converse.js was for free, but for certain larger
> >        features,
> >        such as this one, I'll only get to it once I'm sufficiently
> motivated,
> >        or once
> >        I'm paid for it.
> >
> >        Pull requests are welcome if anyone else implements this.
> >
> >        Regards
> >        JC
> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
> >        >    Hi,
> >        >
> >        >    This is jothi sankar from chennai. I am a freelancer. First
> of
> >        all i would
> >        >    like to hats-off to you for gave us a much needed chat
> >        application works
> >        >    perfectly with XMPP.
> >        >
> >        >    I am trying to implement a web chat client (with openfire)
> for my
> >        website
> >        >    which could works just like Facebook chat box. With the help
> of
> >        >    converse.js i can able to prebind my users when they logs in
> to
> >        my site.
> >        >    and everything works great as i already mentioned( works
> >        perfectly ). I
> >        >    would like to fetching each users chat history in chat box
> just
> >        like in
> >        >    Facebook. so that when user opens a chat box it should shows
> all
> >        chat
> >        >    histories in it(history of messages from openfire). Can't
> find
> >        any
> >        >    relative links for this feature.
> >        >
> >        >    Hope you can help me to implement t his feature.
> >        >
> >        >    Thanks in advance.
> >        >
> >        >    --
> >        >    with regards,
> >        >    Jothi sankar K
> >
> >      --
> >      with regards,
> >      Jothi sankar K
> >
> >    --
> >    with regards,
> >    Jothi sankar K
> >
> > References
> >
> >    Visible links
> >    1. mailto:nk.jothisankar@gmail.com
> >    2. mailto:lists@opkode.com
> >    3. https://github.com/jcbrand/converse.js/issues/174
>



-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-10 @ 06:37
Hi Gowthamanan i have added you to the hangouts. please do check on the
same.

I have managed to install everything and successfully created components
folder and added archive and rsm plugins to it.

What i have to do further?



On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ideas2it.com> wrote:

> Jothi i dont have that much experience  node js with windows7 i am workng
> on ubuntu
>
> go to project directory ==> npm install -g bower
>
>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>
> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>
>> Sorry, but I don't use windows and am not in a position to support
>> development
>> on a windows machine.
>>
>> In order to use "make" on windows, you need to install it first:
>> http://gnuwin32.sourceforge.net/packages/make.htm
>>
>> However, "make dev" basically runs "npm install" and "bower update", so
>> if you run
>> those to commands individually, then you don't need to run "make dev".
>>
>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>> >    Hi JC,
>> >    I have managed to install and update bower as well but can't run
>> "make
>> >    dev" command.
>> >    i have tried on "git-bash" and got this
>> >
>> >      machine2@JOSAN ~/converse.js (master)
>> >      $ make dev
>> >      sh.exe": make: command not found
>> >
>> >    system cmd as administrator and as a normal user nothing is helpful
>> >
>> >      C:\Users\machine2\converse.js>make dev
>> >      'make' is not recognized as an internal or external command,
>> >      operable program or batch file.
>> >
>> >    Whats wrong? where i have to run this command actually???
>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>> nk.jothisankar@gmail.com>
>> >    wrote:
>> >
>> >      Hi JC,
>> >      Thanks for the response.
>> >      Now only am trying to create a dev environment in windows. as far
>> now i
>> >      have used latest release for the implementation.
>> >      This is what i have done so far,
>> >      Installed git and cloned converse.js
>> >      installed node js
>> >      I don't know where i have to run this command "make dev" and
>> >      "npm install" runs perfectly then if i run "bower update" it gives
>> error
>> >      message as
>> >      C:\Users\machine2\converse.js>bower update
>> >      'bower' is not recognized as an internal or external command,
>> >      operable program or batch file.
>> >      What am doing wrong?
>> >      Can you help me with creating a development environment?
>> >      Thanks in advance
>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>> wrote:
>> >
>> >        Hi Jothi
>> >
>> >        In order to show chat history from previous sessions, both your
>> XMPP
>> >        server and
>> >        converse.js needs to support XEP-0013 (flexible offline message
>> >        retrieval).
>> >
>> >        There is a feature ticket open for this:
>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>> >
>> >        This is an oft requested feature, but so far no-one has
>> contributed an
>> >        implementation of it or has been willing to pay for it.
>> >
>> >        Payment is not a requirement for features to be added, the vast
>> >        majority of
>> >        work I've done on converse.js was for free, but for certain
>> larger
>> >        features,
>> >        such as this one, I'll only get to it once I'm sufficiently
>> motivated,
>> >        or once
>> >        I'm paid for it.
>> >
>> >        Pull requests are welcome if anyone else implements this.
>> >
>> >        Regards
>> >        JC
>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>> >        >    Hi,
>> >        >
>> >        >    This is jothi sankar from chennai. I am a freelancer. First
>> of
>> >        all i would
>> >        >    like to hats-off to you for gave us a much needed chat
>> >        application works
>> >        >    perfectly with XMPP.
>> >        >
>> >        >    I am trying to implement a web chat client (with openfire)
>> for my
>> >        website
>> >        >    which could works just like Facebook chat box. With the
>> help of
>> >        >    converse.js i can able to prebind my users when they logs
>> in to
>> >        my site.
>> >        >    and everything works great as i already mentioned( works
>> >        perfectly ). I
>> >        >    would like to fetching each users chat history in chat box
>> just
>> >        like in
>> >        >    Facebook. so that when user opens a chat box it should
>> shows all
>> >        chat
>> >        >    histories in it(history of messages from openfire). Can't
>> find
>> >        any
>> >        >    relative links for this feature.
>> >        >
>> >        >    Hope you can help me to implement t his feature.
>> >        >
>> >        >    Thanks in advance.
>> >        >
>> >        >    --
>> >        >    with regards,
>> >        >    Jothi sankar K
>> >
>> >      --
>> >      with regards,
>> >      Jothi sankar K
>> >
>> >    --
>> >    with regards,
>> >    Jothi sankar K
>> >
>> > References
>> >
>> >    Visible links
>> >    1. mailto:nk.jothisankar@gmail.com
>> >    2. mailto:lists@opkode.com
>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>
>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
>


-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-10 @ 09:20
Are you there? sorry there is some problem with my hangouts i guess.

On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> Hi Gowthamanan i have added you to the hangouts. please do check on the
> same.
>
> I have managed to install everything and successfully created components
> folder and added archive and rsm plugins to it.
>
> What i have to do further?
>
>
>
> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ideas2it.com>
> wrote:
>
>> Jothi i dont have that much experience  node js with windows7 i am workng
>> on ubuntu
>>
>> go to project directory ==> npm install -g bower
>>
>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>
>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>
>>> Sorry, but I don't use windows and am not in a position to support
>>> development
>>> on a windows machine.
>>>
>>> In order to use "make" on windows, you need to install it first:
>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>
>>> However, "make dev" basically runs "npm install" and "bower update", so
>>> if you run
>>> those to commands individually, then you don't need to run "make dev".
>>>
>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>> >    Hi JC,
>>> >    I have managed to install and update bower as well but can't run
>>> "make
>>> >    dev" command.
>>> >    i have tried on "git-bash" and got this
>>> >
>>> >      machine2@JOSAN ~/converse.js (master)
>>> >      $ make dev
>>> >      sh.exe": make: command not found
>>> >
>>> >    system cmd as administrator and as a normal user nothing is helpful
>>> >
>>> >      C:\Users\machine2\converse.js>make dev
>>> >      'make' is not recognized as an internal or external command,
>>> >      operable program or batch file.
>>> >
>>> >    Whats wrong? where i have to run this command actually???
>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>> nk.jothisankar@gmail.com>
>>> >    wrote:
>>> >
>>> >      Hi JC,
>>> >      Thanks for the response.
>>> >      Now only am trying to create a dev environment in windows. as far
>>> now i
>>> >      have used latest release for the implementation.
>>> >      This is what i have done so far,
>>> >      Installed git and cloned converse.js
>>> >      installed node js
>>> >      I don't know where i have to run this command "make dev" and
>>> >      "npm install" runs perfectly then if i run "bower update" it
>>> gives error
>>> >      message as
>>> >      C:\Users\machine2\converse.js>bower update
>>> >      'bower' is not recognized as an internal or external command,
>>> >      operable program or batch file.
>>> >      What am doing wrong?
>>> >      Can you help me with creating a development environment?
>>> >      Thanks in advance
>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>>> wrote:
>>> >
>>> >        Hi Jothi
>>> >
>>> >        In order to show chat history from previous sessions, both your
>>> XMPP
>>> >        server and
>>> >        converse.js needs to support XEP-0013 (flexible offline message
>>> >        retrieval).
>>> >
>>> >        There is a feature ticket open for this:
>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>> >
>>> >        This is an oft requested feature, but so far no-one has
>>> contributed an
>>> >        implementation of it or has been willing to pay for it.
>>> >
>>> >        Payment is not a requirement for features to be added, the vast
>>> >        majority of
>>> >        work I've done on converse.js was for free, but for certain
>>> larger
>>> >        features,
>>> >        such as this one, I'll only get to it once I'm sufficiently
>>> motivated,
>>> >        or once
>>> >        I'm paid for it.
>>> >
>>> >        Pull requests are welcome if anyone else implements this.
>>> >
>>> >        Regards
>>> >        JC
>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>>> >        >    Hi,
>>> >        >
>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>> First of
>>> >        all i would
>>> >        >    like to hats-off to you for gave us a much needed chat
>>> >        application works
>>> >        >    perfectly with XMPP.
>>> >        >
>>> >        >    I am trying to implement a web chat client (with openfire)
>>> for my
>>> >        website
>>> >        >    which could works just like Facebook chat box. With the
>>> help of
>>> >        >    converse.js i can able to prebind my users when they logs
>>> in to
>>> >        my site.
>>> >        >    and everything works great as i already mentioned( works
>>> >        perfectly ). I
>>> >        >    would like to fetching each users chat history in chat box
>>> just
>>> >        like in
>>> >        >    Facebook. so that when user opens a chat box it should
>>> shows all
>>> >        chat
>>> >        >    histories in it(history of messages from openfire). Can't
>>> find
>>> >        any
>>> >        >    relative links for this feature.
>>> >        >
>>> >        >    Hope you can help me to implement t his feature.
>>> >        >
>>> >        >    Thanks in advance.
>>> >        >
>>> >        >    --
>>> >        >    with regards,
>>> >        >    Jothi sankar K
>>> >
>>> >      --
>>> >      with regards,
>>> >      Jothi sankar K
>>> >
>>> >    --
>>> >    with regards,
>>> >    Jothi sankar K
>>> >
>>> > References
>>> >
>>> >    Visible links
>>> >    1. mailto:nk.jothisankar@gmail.com
>>> >    2. mailto:lists@opkode.com
>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>
>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-10 @ 09:45
go through strophe.archive.js()

<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
  and refer that function  listCollections () it will help you

On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> Are you there? sorry there is some problem with my hangouts i guess.
>
> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <nk.jothisankar@gmail.com>
> wrote:
>
>> Hi Gowthamanan i have added you to the hangouts. please do check on the
>> same.
>>
>> I have managed to install everything and successfully created components
>> folder and added archive and rsm plugins to it.
>>
>> What i have to do further?
>>
>>
>>
>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ideas2it.com><
>> /span> w rote:
>>
>>> Jothi i dont have that much experience  node js with windows7 i am
>>> workng on ubuntu
>>>
>>> go to project directory ==> npm install -g bower
>>>
>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>
>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>
>>>> Sorry, but I don't use windows and am not in a position to support
>>>> developmen t
>>>> on a windows machine.
>>>>
>>>> In order to use "make" on windows, you need to install it first:
>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>
>>>> However, "make dev" basically runs "npm install" and "bower update", so
>>>> if you run
>>>> those to commands individually, then you don't need to run "make dev".
>>>>
>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>> >    Hi JC,
>>>> >    I have managed to install and update bower as well but can't run
>>>> "make
>>>> >    dev" command.
>>>> >    i have tried on "git-bash" and got this
>>>> >
>>>> >      machine2@JOSAN ~/converse.js (master)
>>>> >      $ make dev
>>>> >      sh.exe": make: command not found
>>>> >
>>>> >    system cmd as administrator and as a normal user nothing is helpful
>>>> >
>>>> >      C:\Users\machine2\converse.js>make dev
>>>> >      'make' is not recognized as an internal or external command,
>>>> >      operable program or batch file.
>>>> >
>>>> >    Whats wrong? where i have to run this command actually???
>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>> nk.jothisankar@gmail.com>
>>>> >    wrote:
>>>> >
>>>> >      Hi JC,
>>>> >      Thanks for the response.
>>>> >      Now only am trying to create a dev environment in windows. as
>>>> far now i
>>>> >      have used latest release for the implementation.
>>>> >      This is what i have done so far,
>>>> >      Installed git and cloned converse.js
>>>> >      installed node js
>>>> >      I don't know where i have to run this command "make dev" and
>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>> gives error
>>>> >      message as
>>>> >      C:\Users\machine2\converse.js>bower update
>>>> >      'bower' is not recognized as an internal or external command,
>>>> >      operable program or batch file.
>>>> >      What am doing wrong?
>>>> >      Can you help me with creating a development environment?
>>>> >      Thanks in advance
>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>>>> wrote:
>>>> >
>>>> >        Hi Jothi
>>>> >
>>>> >        In order to show chat history from previous sessions, both
>>>> your XMPP
>>>> >        server and
>>>> >        converse.js needs to support XEP-0013 (flexible offline message
>>>> >        retrieval).
>>>> >
>>>> >        There is a feature ticket open for this:
>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>> >
>>>> >        This is an oft requested feature, but so far no-one has
>>>> contributed an
>>>> >        implementation of it or has been willing to pay for it.
>>>> >
>>>> >        Payment is not a requirement for features to be added, the vast
>>>> >        majority of
>>>> >        work I've done on converse.js was for free, but for certain
>>>> larger
>>>> >        features,
>>>> >        such as this one, I'll only get to it once I'm sufficiently
>>>> motivated,
>>>> >        or once
>>>> >        I'm paid for it.
>>>> >
>>>> >        Pull requests are welcome if anyone else implements this.
>>>> >
>>>> >        Regards
>>>> >        JC
>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>>>> >        >    Hi,
>>>> >        >
>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>> First of
>>>> >        all i would
>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>> >        application works
>>>> >        >    perfectly with XMPP.
>>>> >        >
>>>> >        >    I am trying to implement a web chat client (with
>>>> openfire) for my
>>>> >        website
>>>> >        >    which could works just like Facebook chat box. With the
>>>> help of
>>>> >        >    converse.js i can able to prebind my users when they logs
>>>> in to
>>>> >        my site.
>>>> >        >    and everything works great as i already mentioned( works
>>>> >        perfectly ). I
>>>> >        >    would like to fetching each users chat history in chat
>>>> box just
>>>> >        like in
>>>> >        >    Facebook. so that when user opens a chat box it should
>>>> shows all
>>>> >        chat
>>>> >        >    histories in it(history of messages from openfire). Can't
>>>> find
>>>> >        any
>>>> >        >    relative links for this feature.
>>>> >        >
>>>> >        >    Hope you can help me to implement t his feature.
>>>> >        >
>>>> >        >    Thanks in advance.
>>>> >        >
>>>> >        >    --
>>>> >        >    with regards,
>>>> >        >    Jothi sankar K
>>>> >
>>>> >      --
>>>> >      with regards,
>>>> >      Jothi sankar K
>>>> >
>>>> >    --
>>>> >    with regards,
>>>> >    Jothi sankar K
>>>> >
>>>> > References
>>>> >
>>>> >    Visible links
>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>> >    2. mailto:lists@opkode.com
>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>
>>>
>>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-10 @ 10:55
hi gowthaman

i hava followed one mail conversation from converse.js official website

In main.js
inside paths: put this one

"strophe.archive": "components/strophe.archive/strophe.archive"


 shim: after vcard put this one

'strophe.archive':        { deps: ['strophe'] }


and then in converse.js while open the tab put one function like load
History there you can do

converse.connection.archive.listCollections(contactId, rsm, function
(collections, responseRsm)  {
      //Here you get the collection of messages
});

this is what you have to do and you can get the history ...in collections
object parse that you see the response then its easy to parse so you can do
easily...

like that i have added those lines in main.js

then where i have to put the code snipet? and how can i add those list of
previous chats(probably in collections) ?



On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com> wrote:

> go through strophe.archive.js()
> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>   and refer that function  listCollections () it will help you
>
> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com>
> wrote:
>
>> Are you there? sorry there is some problem with my hangouts i guess.
>>
>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>> wrote:
>>
>>> Hi Gowthamanan i have added you to the hangouts. please do check on the
>>> same.
>>>
>>> I have managed to install everything and successfully created components
>>> folder and added archive and rsm plugins to it.
>>>
>>> What i have to do further?
>>>
>>>
>>>
>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ ideas2it.com
>>> <gowthaman@ideas2it.com>>< /span> w rote:
>>>
>>> Jothi i dont have that much experience  node js with windows7 i am
>>>> workng on ubuntu
>>>>
>>>> go to project directory ==> npm install -g bower
>>>>
>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>
>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>
>>>>> Sorry, but I don't use windows and am not in a position to support
>>>>> developmen t
>>>>> on a windows machine.
>>>>>
>>>>> In order to use "make" on windows, you need to install it first:
>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>
>>>>> However, "make dev" basically runs "npm install" and "bower update",
>>>>> so if you run
>>>>> those to commands individually, then you don't need to run "make dev".
>>>>>
>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>> >    Hi JC,
>>>>> >    I have managed to install and update bower as well but can't run
>>>>> "make
>>>>> >    dev" command.
>>>>> >    i have tried on "git-bash" and got this
>>>>> >
>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>> >      $ make dev
>>>>> >      sh.exe": make: command not found
>>>>> >
>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>> helpful
>>>>> >
>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>> >      'make' is not recognized as an internal or external command,
>>>>> >      operable program or batch file.
>>>>> >
>>>>> >    Whats wrong? where i have to run this command actually???
>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>> nk.jothisankar@gmail.com>
>>>>> >    wrote:
>>>>> >
>>>>> >      Hi JC,
>>>>> >      Thanks for the response.
>>>>> >      Now only am trying to create a dev environment in windows. as
>>>>> far now i
>>>>> >      have used latest release for the implementation.
>>>>> >      This is what i have done so far,
>>>>> >      Installed git and cloned converse.js
>>>>> >      installed node js
>>>>> >      I don't know where i have to run this command "make dev" and
>>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>>> gives error
>>>>> >      message as
>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>> >      'bower' is not recognized as an internal or external command,
>>>>> >      operable program or batch file.
>>>>> >      What am doing wrong?
>>>>> >      Can you help me with creating a development environment?
>>>>> >      Thanks in advance
>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>>>>> wrote:
>>>>> >
>>>>> >        Hi Jothi
>>>>> >
>>>>> >        In order to show chat history from previous sessions, both
>>>>> your XMPP
>>>>> >        server and
>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>> message
>>>>> >        retrieval).
>>>>> >
>>>>> >        There is a feature ticket open for this:
>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>> >
>>>>> >        This is an oft requested feature, but so far no-one has
>>>>> contributed an
>>>>> >        implementation of it or has been willing to pay for it.
>>>>> >
>>>>> >        Payment is not a requirement for features to be added, the
>>>>> vast
>>>>> >        majority of
>>>>> >        work I've done on converse.js was for free, but for certain
>>>>> larger
>>>>> >        features,
>>>>> >        such as this one, I'll only get to it once I'm sufficiently
>>>>> motivated,
>>>>> >        or once
>>>>> >        I'm paid for it.
>>>>> >
>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>> >
>>>>> >        Regards
>>>>> >        JC
>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>>>>> >        >    Hi,
>>>>> >        >
>>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>>> First of
>>>>> >        all i would
>>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>>> >        application works
>>>>> >        >    perfectly with XMPP.
>>>>> >        >
>>>>> >        >    I am trying to implement a web chat client (with
>>>>> openfire) for my
>>>>> >        website
>>>>> >        >    which could works just like Facebook chat box. With the
>>>>> help of
>>>>> >        >    converse.js i can able to prebind my users when they
>>>>> logs in to
>>>>> >        my site.
>>>>> >        >    and everything works great as i already mentioned( works
>>>>> >        perfectly ). I
>>>>> >        >    would like to fetching each users chat history in chat
>>>>> box just
>>>>> >        like in
>>>>> >        >    Facebook. so that when user opens a chat box it should
>>>>> shows all
>>>>> >        chat
>>>>> >        >    histories in it(history of messages from openfire).
>>>>> Can't find
>>>>> >        any
>>>>> >        >    relative links for this feature.
>>>>> >        >
>>>>> >        >    Hope you can help me to implement t his feature.
>>>>> >        >
>>>>> >        >    Thanks in advance.
>>>>> >        >
>>>>> >        >    --
>>>>> >        >    with regards,
>>>>> >        >    Jothi sankar K
>>>>> >
>>>>> >      --
>>>>> >      with regards,
>>>>> >      Jothi sankar K
>>>>> >
>>>>> >    --
>>>>> >    with regards,
>>>>> >    Jothi sankar K
>>>>> >
>>>>> > References
>>>>> >
>>>>> >    Visible links
>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>> >    2. mailto:lists@opkode.com
>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
>


-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-10 @ 11:08
while loading chat you call archive.listCollections and get value then
itrate and append ur chat box in html

On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> hi gowthaman
>
> i hava followed one mail conversation from converse.js official website
>
> In main.js
> inside paths: put this one
>
> "strophe.archive": "components/strophe.archive/strophe.archive"
>
>
>  shim: after vcard put this one
>
> 'strophe.archive':        { deps: ['strophe'] }
>
>
> and then in converse.js while open the tab put one function like load
> History there you can do
>
> converse.connection.archive.listCollections(contactId, rsm, function
> (collections, responseRsm)  {
>       //Here you get the collection of messages
> });
>
> this is what you have to do and you can get the history ...in collections
> object parse that you see the response then its easy to parse so you can do
> easily...
>
> like that i have added those lines in main.js
>
> then where i have to put the code snipet? and how can i add those list of
> previous chats(probably in collections) ?
>
>
>
> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
> wrote:
>
>> go through strophe.archive.js()
>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>   and refer that function  listCollections () it will help you
>>
>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>> wrote:
>>
>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>
>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <nk.jothisankar@gmail.com
>>> > wrote:
>>>
>>>> H i Gowtha manan i have added you to the hangouts. please do check on
>>>> the same.
>>>>
>>>> I have managed to install everything and successfully created
>>>> components folder and added archive and rsm plugins to it.
>>>>
>>>> What i have to do further?
>>>>
>>>>
>>>>
>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ ideas2it.com
>>>> <gowthaman@ideas2it.com>>< /span> w rote:
>>>>
>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>> workng on ubuntu
>>>>>
>>>>> go to project directory ==> npm install -g bower
>>>>>
>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>
>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>
>>>>>> Sorry, but I don't use windows an d am not in a position to support
>>>>>> developmen t
>>>>>>
>>>>>> on a windows machine.
>>>>>>
>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>
>>>>>> However, "make dev" basically runs "npm install" and "bower update",
>>>>>> so if you run
>>>>>> those to commands individually, then you don't need to run "make dev".
>>>>>>
>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>> >    Hi JC,
>>>>>> >    I have managed to install and update bower as well but can't run
>>>>>> "make
>>>>>> >    dev" command.
>>>>>> >    i have tried on "git-bash" and got this
>>>>>> >
>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>> >      $ make dev
>>>>>> >      sh.exe": make: command not found
>>>>>> >
>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>> helpful
>>>>>> >
>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>> >      'make' is not recognized as an internal or external command,
>>>>>> >      operable program or batch file.
>>>>>> >
>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>> nk.jothisankar@gmail.com>
>>>>>> >    wrote:
>>>>>> >
>>>>>> >      Hi JC,
>>>>>> >      Thanks for the response.
>>>>>> >      Now only am trying to create a dev environment in windows. as
>>>>>> far now i
>>>>>> >      have used latest release for the implementation.
>>>>>> >      This is what i have done so far,
>>>>>> >      Installed git and cloned converse.js
>>>>>> >      installed node js
>>>>>> >      I don't know where i have to run this command "make dev" and
>>>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>>>> gives error
>>>>>> >      message as
>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>> >      'bower' is not recognized as an internal or external command,
>>>>>> >      operable program or batch file.
>>>>>> >      What am doing wrong?
>>>>>> >      Can you help me with creating a development environment?
>>>>>> >      Thanks in advance
>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>>>>>> wrote:
>>>>>> >
>>>>>> >        Hi Jothi
>>>>>> >
>>>>>> >        In order to show chat history from previous sessions, both
>>>>>> your XMPP
>>>>>> >        server and
>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>> message
>>>>>> >        retrieval).
>>>>>> >
>>>>>> >        There is a feature ticket open for this:
>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>> >
>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>> contributed an
>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>> >
>>>>>> >        Payment is not a requirement for features to be added, the
>>>>>> vast
>>>>>> >        majority of
>>>>>> >        work I've done on converse.js was for free, but for certain
>>>>>> larger
>>>>>> >        features,
>>>>>> >        such as this one, I'll only get to it once I'm sufficiently
>>>>>> motivated,
>>>>>> >        or once
>>>>>> >        I'm paid for it.
>>>>>> >
>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>> >
>>>>>> >        Regards
>>>>>> >        JC
>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>>>>>> >        >    Hi,
>>>>>> >        >
>>>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>>>> First of
>>>>>> >        all i would
>>>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>>>> >        application works
>>>>>> >        >    perfectly with XMPP.
>>>>>> >        >
>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>> openfire) for my
>>>>>> >        website
>>>>>> >        >    which could works just like Facebook chat box. With the
>>>>>> help of
>>>>>> >        >    converse.js i can able to prebind my users when they
>>>>>> logs in to
>>>>>> >        my site.
>>>>>> >        >    and everything works great as i already mentioned( works
>>>>>> >        perfectly ). I
>>>>>> >        >    would like to fetching each users chat history in chat
>>>>>> box just
>>>>>> >        like in
>>>>>> >        >    Facebook. so that when user opens a chat box it should
>>>>>> shows all
>>>>>> >        chat
>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>> Can't find
>>>>>> >        any
>>>>>> >        >    relative links for this feature.
>>>>>> >        >
>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>> >        >
>>>>>> >        >    Thanks in advance.
>>>>>> >        >
>>>>>> >        >    --
>>>>>> >        >    with regards,
>>>>>> >        >    Jothi sankar K
>>>>>> >
>>>>>> >      --
>>>>>> >      with regards,
>>>>>> >      Jothi sankar K
>>>>>> >
>>>>>> >    --
>>>>>> >    with regards,
>>>>>> >    Jothi sankar K
>>>>>> >
>>>>>> > References
>>>>>> >
>>>>>> >    Visible links
>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>> >    2. mailto:lists@opkode.com
>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> with regards,
>>>> Jothi sankar K
>>>>
>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-10 @ 11:23
i cant find the exact location of inject this code in converse.js

i have done this. is that correct? please do check

this.ChatBoxViews = Backbone.Overview.extend({

            initialize: function () {

.
.
.

loadHistory: function(attrs){
                /* Load older messages from openfire
                */
                console.log("loadHistory");
                converse.connection.archive.listCollections(contactId, rsm,
                    function(collections, responseRsm)  {
                        //Here you get the collection of messages
                        converse.log(collections);
                });
            }

.
.
.

where i can call this loadHistory function to load older messages when chat
box open.?

showChat: function (attrs) {

.

.

// i have add

this.loadHistory(attrs);

}



On Fri, Oct 10, 2014 at 4:38 PM, Gowthaman m <gowthaman@ideas2it.com> wrote:

> while loading chat you call archive.listCollections and get value then
> itrate and append ur chat box in html
>
> On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <nk.jothisankar@gmail.com>
> wrote:
>
> hi gowthaman
>
> i hava followed one mail conversation from converse.js official website
>
> In main.js
> inside paths: put this one
>
> "strophe.archive": "components/strophe.archive/strophe.archive"
>
>
>  shim: after vcard put this one
>
> 'strophe.archive':        { deps: ['strophe'] }
>
>
> and then in converse.js while open the tab put one function like load
> History there you can do
>
> converse.connection.archive.listCollections(contactId, rsm, function
> (collections, responseRsm)  {
>       //Here you get the collection of messages
> });
>
> this is what you have to do and you can get the history ...in collections
> object parse that you see the response then its easy to parse so you can do
> easily...
>
> like that i have added those lines in main.js
>
> then where i have to put the code snipet? and how can i add those list of
> previous chats(probably in collections) ?
>
>
>
> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
> wrote:
>
>> go through strophe.archive.js()
>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>   and refer that function   listCollections () it will help you
>>
>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>> wrote:
>>
>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>
>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <nk.jothisankar@gmail.com
>>> > wrote:
>>>
>>>> H i Gowtha manan i have added you to the hangouts. please do check on
>>>> the same.
>>>>
>>>> I have managed to install everything and successfully created
>>>> components folder and added archive and rsm plugins to it.
>>>>
>>>> What i have to do further?
>>>>
>>>>
>>>>
>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ ideas2it.com
>>>> <gowthaman@ideas2it.com>>< /span> w rote:
>>>>
>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>> workng on ubuntu
>>>>>
>>>>> go to project directory ==> npm install -g bower
>>>>>
>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>
>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>
>>>>>> Sorry, but I don't use windows an d am not in a position to support
>>>>>> developmen t
>>>>>>
>>>>>> on a windows machine.
>>>>>>
>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>
>>>>>> However, "make dev" basically runs "npm install" and "bower update",
>>>>>> so if you run
>>>>>> those to commands individually, then you don't need to run "make dev".
>>>>>>
>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>> >    Hi JC,
>>>>>> >    I have managed to install and update bower as well but can't run
>>>>>> "make
>>>>>> >    dev" command.
>>>>>> >    i have tried on "git-bash" and got this
>>>>>> >
>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>> >      $ make dev
>>>>>> >      sh.exe": make: command not found
>>>>>> >
>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>> helpful
>>>>>> >
>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>> >      'make' is not recognized as an internal or external command,
>>>>>> >      operable program or batch file.
>>>>>> >
>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>> nk.jothisankar@gmail.com>
>>>>>> >    wrote:
>>>>>> >
>>>>>> >      Hi JC,
>>>>>> >      Thanks for the response.
>>>>>> >      Now only am trying to create a dev environment in windows. as
>>>>>> far now i
>>>>>> >      have used latest release for the implementation.
>>>>>> >      This is what i have done so far,
>>>>>> >      Installed git and cloned converse.js
>>>>>> >      installed node js
>>>>>> >      I don't know where i have to run this command "make dev" and
>>>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>>>> gives error
>>>>>> >      message as
>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>> >      'bower' is not recognized as an internal or external command,
>>>>>> >      operable program or batch file.
>>>>>> >      What am doing wrong?
>>>>>> >      Can you help me with creating a development environment?
>>>>>> >      Thanks in advance
>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>>>>>> wrote:
>>>>>> >
>>>>>> >        Hi Jothi
>>>>>> >
>>>>>> >        In order to show chat history from previous sessions, both
>>>>>> your XMPP
>>>>>> >        server and
>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>> message
>>>>>> >        retrieval).
>>>>>> >
>>>>>> >        There is a feature ticket open for this:
>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>> >
>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>> contributed an
>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>> >
>>>>>> >        Payment is not a requirement for features to be added, the
>>>>>> vast
>>>>>> >        majority of
>>>>>> >        work I've done on converse.js was for free, but for certain
>>>>>> larger
>>>>>> >        features,
>>>>>> >        such as this one, I'll only get to it once I'm sufficiently
>>>>>> motivated,
>>>>>> >        or once
>>>>>> >        I'm paid for it.
>>>>>> >
>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>> >
>>>>>> >        Regards
>>>>>> >        JC
>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar wrote:
>>>>>> >        >    Hi,
>>>>>> >        >
>>>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>>>> First of
>>>>>> >        all i would
>>>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>>>> >        application works
>>>>>> >        >    perfectly with XMPP.
>>>>>> >        >
>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>> openfire) for my
>>>>>> >        website
>>>>>> >        >    which could works just like Facebook chat box. With the
>>>>>> help of
>>>>>> >        >    converse.js i can able to prebind my users when they
>>>>>> logs in to
>>>>>> >        my site.
>>>>>> >        >    and everything works great as i already mentioned( works
>>>>>> >        perfectly ). I
>>>>>> >        >    would like to fetching each users chat history in chat
>>>>>> box just
>>>>>> >        like in
>>>>>> >        >    Facebook. so that when user opens a chat box it should
>>>>>> shows all
>>>>>> >        chat
>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>> Can't find
>>>>>> >        any
>>>>>> >        >    relative links for this feature.
>>>>>> >        >
>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>> >        >
>>>>>> >        >    Thanks in advance.
>>>>>> >        >
>>>>>> >        >    --
>>>>>> >        >    with regards,
>>>>>> >        >    Jothi sankar K
>>>>>> >
>>>>>> >      --
>>>>>> >      with regards,
>>>>>> >      Jothi sankar K
>>>>>> >
>>>>>> >    --
>>>>>> >    with regards,
>>>>>> >    Jothi sankar K
>>>>>> >
>>>>>> > References
>>>>>> >
>>>>>> >    Visible links
>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>> >    2. mailto:lists@opkode.com
>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> with regards,
>>>> Jothi sankar K
>>>>
>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>>
>
>
> --
> with regards,
> Jothi sankar K
>
>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
>


-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-10 @ 11:37
where i have to call that.

archieve.listCollections()???

in converse.js showChat is the one which is open/create a chat box. is that
the place??? or someother place where we actually loading previous chats
from session history???


On Fri, Oct 10, 2014 at 4:53 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> i cant find the exact location of inject this code in converse.js
>
> i have done this. is that correct? please do check
>
> this.ChatBoxViews = Backbone.Overview.extend({
>
>             initialize: function () {
>
> .
> .
> .
>
> loadHistory: function(attrs){
>                 /* Load older messages from openfire
>                 */
>                 console.log("loadHistory");
>                 converse.connection.archive.listCollections(contactId,
> rsm,
>                     function(collections, responseRsm)  {
>                         //Here you get the collection of messages
>                         converse.log(collections);
>                 });
>             }
>
> .
> .
> .
>
> where i can call this loadHistory function to load older messages when
> chat box open.?
>
> showChat: function (attrs) {
>
> .
>
> .
>
> // i have add
>
> this.loadHistory(attrs);
>
> }
>
>
>
> On Fri, Oct 10, 2014 at 4:38 PM, Gowthaman m <gowthaman@ideas2it.com>
> wrote:
>
>> while loading chat you call archive.listCollections and get value then
>> itrate and append ur chat box in html
>>
>> On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>> wrote:
>>
>> hi gowthaman
>>
>> i hava followed one mail conversation from converse.js official website
>>
>> In main.js
>> inside paths: put this one
>>
>> "strophe.archive": "components/strophe.archive/strophe.archive"
>>
>>
>>  shim: after vcard put this one
>>
>> 'strophe.archive':        { deps: ['strophe'] }
>>
>>
>> and then in converse.js while open the tab put one function like load
>> History there you can do
>>
>> converse.connection.archive.listCollections(contactId, rsm, function
>> (collections, responseRsm)  {
>>       //Here you get the collection of messages
>> });
>>
>> this is what you have to do and you can get the history ...in collections
>> object parse that you see the response then its easy to parse so you can do
>> easily...
>>
>> like that i have added those lines in main.js
>>
>> then where i have to put the code snipet? and how can i add those list of
>> previous chats(probably in collections) ?
>>
>>
>>
>> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
>> wrote:
>>
>>> go through strophe.archive.js()
>>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>>   and refer that function   listCollections () it will help you
>>>
>>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>>> wrote:
>>>
>>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>>
>>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <
>>>> nk.jothisankar@gmail.com> wrote:
>>>>
>>>>> H i Gowtha manan i have added you to the hangouts. please do check on
>>>>> the same.
>>>>>
>>>>> I have managed to install everything and successfully created
>>>>> components folder and added archive and rsm plugins to it.
>>>>>
>>>>> What i have to do further?
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ ideas2it.com
>>>>> <gowthaman@ideas2it.com>>< /span> w rote:
>>>>>
>>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>>> workng on ubuntu
>>>>>>
>>>>>> go to project directory ==> npm install -g bower
>>>>>>
>>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>>
>>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>>
>>>>>>> Sorry, but I don't use windows an d am not in a position to support
>>>>>>> developmen t
>>>>>>>
>>>>>>> on a windows machine.
>>>>>>>
>>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>>
>>>>>>> However, "make dev" basically runs "npm install" and "bower update",
>>>>>>> so if you run
>>>>>>> those to commands individually, then you don't need to run "make
>>>>>>> dev".
>>>>>>>
>>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>>> >    Hi JC,
>>>>>>> >    I have managed to install and update bower as well but can't
>>>>>>> run "make
>>>>>>> >    dev" command.
>>>>>>> >    i have tried on "git-bash" and got this
>>>>>>> >
>>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>>> >      $ make dev
>>>>>>> >      sh.exe": make: command not found
>>>>>>> >
>>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>>> helpful
>>>>>>> >
>>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>>> >      'make' is not recognized as an internal or external command,
>>>>>>> >      operable program or batch file.
>>>>>>> >
>>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>>> nk.jothisankar@gmail.com>
>>>>>>> >    wrote:
>>>>>>> >
>>>>>>> >      Hi JC,
>>>>>>> >      Thanks for the response.
>>>>>>> >      Now only am trying to create a dev environment in windows. as
>>>>>>> far now i
>>>>>>> >      have used latest release for the implementation.
>>>>>>> >      This is what i have done so far,
>>>>>>> >      Installed git and cloned converse.js
>>>>>>> >      installed node js
>>>>>>> >      I don't know where i have to run this command "make dev" and
>>>>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>>>>> gives error
>>>>>>> >      message as
>>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>>> >      'bower' is not recognized as an internal or external command,
>>>>>>> >      operable program or batch file.
>>>>>>> >      What am doing wrong?
>>>>>>> >      Can you help me with creating a development environment?
>>>>>>> >      Thanks in advance
>>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]lists@opkode.com>
>>>>>>> wrote:
>>>>>>> >
>>>>>>> >        Hi Jothi
>>>>>>> >
>>>>>>> >        In order to show chat history from previous sessions, both
>>>>>>> your XMPP
>>>>>>> >        server and
>>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>>> message
>>>>>>> >        retrieval).
>>>>>>> >
>>>>>>> >        There is a feature ticket open for this:
>>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>>> >
>>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>>> contributed an
>>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>>> >
>>>>>>> >        Payment is not a requirement for features to be added, the
>>>>>>> vast
>>>>>>> >        majority of
>>>>>>> >        work I've done on converse.js was for free, but for certain
>>>>>>> larger
>>>>>>> >        features,
>>>>>>> >        such as this one, I'll only get to it once I'm sufficiently
>>>>>>> motivated,
>>>>>>> >        or once
>>>>>>> >        I'm paid for it.
>>>>>>> >
>>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>>> >
>>>>>>> >        Regards
>>>>>>> >        JC
>>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar
>>>>>>> wrote:
>>>>>>> >        >    Hi,
>>>>>>> >        >
>>>>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>>>>> First of
>>>>>>> >        all i would
>>>>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>>>>> >        application works
>>>>>>> >        >    perfectly with XMPP.
>>>>>>> >        >
>>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>>> openfire) for my
>>>>>>> >        website
>>>>>>> >        >    which could works just like Facebook chat box. With
>>>>>>> the help of
>>>>>>> >        >    converse.js i can able to prebind my users when they
>>>>>>> logs in to
>>>>>>> >        my site.
>>>>>>> >        >    and everything works great as i already mentioned(
>>>>>>> works
>>>>>>> >        perfectly ). I
>>>>>>> >        >    would like to fetching each users chat history in chat
>>>>>>> box just
>>>>>>> >        like in
>>>>>>> >        >    Facebook. so that when user opens a chat box it should
>>>>>>> shows all
>>>>>>> >        chat
>>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>>> Can't find
>>>>>>> >        any
>>>>>>> >        >    relative links for this feature.
>>>>>>> >        >
>>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>>> >        >
>>>>>>> >        >    Thanks in advance.
>>>>>>> >        >
>>>>>>> >        >    --
>>>>>>> >        >    with regards,
>>>>>>> >        >    Jothi sankar K
>>>>>>> >
>>>>>>> >      --
>>>>>>> >      with regards,
>>>>>>> >      Jothi sankar K
>>>>>>> >
>>>>>>> >    --
>>>>>>> >    with regards,
>>>>>>> >    Jothi sankar K
>>>>>>> >
>>>>>>> > References
>>>>>>> >
>>>>>>> >    Visible links
>>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>>> >    2. mailto:lists@opkode.com
>>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> with regards,
>>>>> Jothi sankar K
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> with regards,
>>>> Jothi sankar K
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>
>>>
>>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Gowthaman m
Date:
2014-10-10 @ 12:23
find below code in converse
return {
        'initialize': function (settings, callback) {
            Converse. initialize (settings, callback);
        },
       displaychatHistory : function(params){

           converse.connection.archive.listCollections(contactId, rsm,
function(){
  .... code...
})
       }


 and finally call the displaychatHistory() in whliee loading your chat box
ok

On Fri, Oct 10, 2014 at 5:07 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> where i have to call that.
>
> archieve.listCollections()???
>
> in converse.js showChat is the one which is open/create a chat box. is
> that the place??? or someother place where we actually loading previous
> chats from session history???
>
>
> On Fri, Oct 10, 2014 at 4:53 PM, Jothi Sankar <nk.jothisankar@gmail.com>
> wrote:
>
>> i cant find the exact location of inject this code in converse.js
>> i have done this. is that correct? please do check
>>
>> this.ChatBoxViews = Backbone.Overview.extend({
>>
>>             initialize: function () {
>>
>> .
>> .
>> .
>>
>> loadHistory: function(attrs){
>>                 /* Load older messages from openfire
>>                 */
>>                 console.log("loadHistory");
>>                 converse.connection.archive.listCollections(contactId,
>> rsm,
>>                     function(collections, responseRsm)  {
>>                         //Here you get the collection of messages
>>                         converse.log(collections);
>>                 });
>>     Â         }
>>
>> .
>> .
>> .
>>
>> where i can call this loadHistory function to load older messages when
>> chat box open.?
>>
>> showChat: function (attrs) {
>>
>> .
>>
>> .
>>
>> // i have add
>>
>> this.loadHistory(attrs);
>>
>> }
>>
>>
>>
>> On Fri, Oct 10, 2014 at 4:38 PM, Gowthaman m <gowthaman@ideas2it.com>
>> wrote:
>>
>>> while loading chat you call archive.listCollections and get value then
>>> itrate and append u r chat box in html
>>>
>>> On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>>> wrote:
>>>
>>> hi gowthaman
>>>
>>> i hava followed one mail conversation from converse.js official website
>>>
>>> In main.js
>>> inside paths: put this one
>>>
>>> "strophe.archive": "components/strophe.archive/strophe.archive"
>>>
>>>
>>>  shim: after vcard put this one
>>>
>>> 'strophe.archive':        { deps: ['strophe'] }
>>>
>>>
>>> and then in converse.js while open the tab put one function like load
>>> History there you can do
>>>
>>> converse.connection.archive.listCollections(contactId, rsm, function
>>> (collections, responseRsm)  {
>>>       //Here you get the collection of messages
>>> });
>>>
>>> this is what you have to do and you can get the history ...in collections
>>> object parse that you see the response then its easy to parse so you can do
>>> easily...
>>>
>>> like that i have added those lines in main.js
>>>
>>> then where i have to put the code snipet? and how can i add those list
>>> of previous chats(probably in collections) ?
>>>
>>>
>>>
>>> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
>>> wrote:
>>>
>>>> go through strophe.archive.js()
>>>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>>>   and refer that function *Â   listCollections () it will help you*
>>>>
>>>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com
>>>> > wrote:
>>>>
>>>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>>>
>>>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <
>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>
>>>>>> H i Gowtha manan i have added you to the hangouts. please do check on
>>>>>> the same.
>>>>>>
>>>>>> I have managed to install everything and successfully created
>>>>>> components folder and added archive and rsm plugins to it.
>>>>>>
>>>>>> What i have to do further?
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ ideas2it.com
>>>>>> <gowthaman@ideas2it.com>>< /span> w rote:
>>>>>>
>>>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>>>> workng on ubuntu
>>>>>>>
>>>>>>> go to project directory ==> npm install -g bower
>>>>>>>
>>>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>>>
>>>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>>>
>>>>>>>> Sorr y, but I don't use windows an d am not in a position to
>>>>>>>> support developmen t
>>>>>>>>
>>>>>>>> on a windows machine.
>>>>>>>>
>>>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>>>
>>>>>>>> However, "make dev" basically runs "npm install" and "bower
>>>>>>>> update", so if you run
>>>>>>>> those to commands individually, then you don't need to run "make
>>>>>>>> dev".
>>>>>>>>
>>>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>>>> >    Hi JC,
>>>>>>>> >    I have managed to install and update bower as well but can't
>>>>>>>> run "make
>>>>>>>> >    dev" command.
>>>>>>>> >    i have tried on "git-bash" and got this
>>>>>>>> >
>>>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>>>> >      $ make dev
>>>>>>>> >      sh.exe": make: command not found
>>>>>>>> >
>>>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>>>> helpful
>>>>>>>> >
>>>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>>>> >      'make' is not recognized as an internal or external command,
>>>>>>>> >      operable program or batch file.
>>>>>>>> >
>>>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>>>> nk.jothisankar@gmail.com>
>>>>>>>> >    wrote:
>>>>>>>> >
>>>>>>>> >      Hi JC,
>>>>>>>> >      Thanks for the response.
>>>>>>>> >      Now only am trying to create a dev environment in windows.
>>>>>>>> as far now i
>>>>>>>> >      have used latest release for the implementation.
>>>>>>>> >      This is what i have done so far,
>>>>>>>> >      Installed git and cloned converse.js
>>>>>>>> >      installed node js
>>>>>>>> >      I don't know where i have to run this command "make dev" and
>>>>>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>>>>>> gives error
>>>>>>>> >      message as
>>>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>>>> >      'bower' is not recognized as an internal or external command,
>>>>>>>> >      operable program or batch file.
>>>>>>>> >      What am doing wrong?
>>>>>>>> >      Can you help me with creating a development environment?
>>>>>>>> >      Thanks in advance
>>>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]
>>>>>>>> lists@opkode.com> wrote:
>>>>>>>> >
>>>>>>>> >        Hi Jothi
>>>>>>>> >
>>>>>>>> >        In order to show chat history from previous sessions, both
>>>>>>>> your XMPP
>>>>>>>> >        server and
>>>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>>>> message
>>>>>>>> >        retrieval).
>>>>>>>> >
>>>>>>>> >        There is a feature ticket open for this:
>>>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>>>> >
>>>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>>>> contributed an
>>>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>>>> >
>>>>>>>> >        Payment is not a requirement for features to be added, the
>>>>>>>> vast
>>>>>>>> >        majority of
>>>>>>>> >        work I've done on converse.js was for free, but for
>>>>>>>> certain larger
>>>>>>>> >        features,
>>>>>>>> >        such as this one, I'll only get to it once I'm
>>>>>>>> sufficiently motivated,
>>>>>>>> >        or once
>>>>>>>> >        I'm paid for it.
>>>>>>>> >
>>>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>>>> >
>>>>>>>> >        Regards
>>>>>>>> >        JC
>>>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar
>>>>>>>> wrote:
>>>>>>>> >        >    Hi,
>>>>>>>> >        >
>>>>>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>>>>>> First of
>>>>>>>> >        all i would
>>>>>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>>>>>> >        application works
>>>>>>>> >        >    perfectly with XMPP.
>>>>>>>> >        >
>>>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>>>> openfire) for my
>>>>>>>> >        website
>>>>>>>> >        >    which could works just like Facebook chat box. With
>>>>>>>> the help of
>>>>>>>> >        >    converse.js i can able to prebind my users when they
>>>>>>>> logs in to
>>>>>>>> >        my site.
>>>>>>>> >        >    and everything works great as i already mentioned(
>>>>>>>> works
>>>>>>>> >        perfectly ). I
>>>>>>>> >        >    would like to fetching each users chat history in
>>>>>>>> chat box just
>>>>>>>> >        like in
>>>>>>>> >        >    Facebook. so that when user opens a chat box it
>>>>>>>> should shows all
>>>>>>>> >        chat
>>>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>>>> Can't find
>>>>>>>> >        any
>>>>>>>> >        >    relative links for this feature.
>>>>>>>> >        >
>>>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>>>> >        >
>>>>>>>> >        >    Thanks in advance.
>>>>>>>> >        >
>>>>>>>> >        >    --
>>>>>>>> >        >    with regards,
>>>>>>>> >        >    Jothi sankar K
>>>>>>>> >
>>>>>>>> >      --
>>>>>>>> >      with regards,
>>>>>>>> >      Jothi sankar K
>>>>>>>> >
>>>>>>>> >    --
>>>>>>>> >    with regards,
>>>>>>>> >    Jothi sankar K
>>>>>>>> >
>>>>>>>> > References
>>>>>>>> >
>>>>>>>> >    Visible links
>>>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>>>> >    2. mailto:lists@opkode.com
>>>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> with regards,
>>>>>> Jothi sankar K
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> with regards,
>>>>> Jothi sankar K
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>
>>>
>>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 




Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-10 @ 12:50
Fine gowthaman i getting some clarity now, i have added the code snippet at
the place u mentioned. but still am confused in where i have call and how
to loop through the collections and make it visible in chat boxes.

On Fri, Oct 10, 2014 at 5:53 PM, Gowthaman m <gowthaman@ideas2it.com> wrote:

> find below code in converse
> return {
>         'initialize': function (settings, callback) {
>             Converse. initialize (settings, callback);
>         },
>        displaychatHistory : function(params){
>
>            converse.connection.archive.listCollections(contactId, rsm,
> function(){
>   .... code...
> })
>        }
>
>
>  and finally call the displaychatHistory() in whliee loading your chat
> box ok
>
> On Fri, Oct 10, 2014 at 5:07 PM, Jothi Sanka r <nk.jothisankar@gmail.com>
> wrote:
>
>> where i have to call that.
>>
>> archieve.listCollections()???
>>
>> in converse.js showChat is the one which is open/create a chat box. is
>> that the place??? or someother place where we actually loading previous
>> chats from session history???
>>
>>
>> On Fri, Oct 10, 2014 at 4:53 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>> wrote:
>>
>>> i cant find the exact location of inject this code in converse.js
>>> i have done this. is that correct? please do check
>>>
>>> this.ChatBoxViews = Backbone.Overview.extend({
>>>
>>>             initialize: function () {
>>>
>>> .
>>> .
>>> .
>>>
>>> loadHistory: function(attrs){
>>>                 /* Load older messages from openfire
>>>                 */
>>>                 console.log("loadHistory");
>>>                 converse.connection.archive.listCollections(contactId,
>>> rsm,
>>>                     function(collections, responseRsm)  {
>>>                         //Here you get the collection of messages
>>>                         converse.log(collections);
>>>                 });
>>>     Â         }
>>>
>>> .
>>> .
>>> .
>>>
>>> where i can call this loadHistory function to load older messages when
>>> chat box open.?
>>>
>>> showChat: function (attrs) {
>>>
>>> .
>>>
>>> .
>>>
>>> // i have add
>>>
>>> this.loadHistory(attrs);
>>>
>>> }
>>>
>>>
>>>
>> On Fri, Oct 10, 2014 at 4:38 PM, Gowthaman m <gowthaman@ideas2it.com>
>> wrote:
>>
>>> while loading chat you call archive.listCollections and get value then
>>> itrate and append u r chat box in html
>>>
>>> On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>>> wrote:
>>>
>>> hi gowthaman
>>>
>>> i hava followed one mail conversation from converse.js official website
>>>
>>> In main.js
>>> inside paths: put this one
>>>
>>> "strophe.archive": "components/strophe.archive/strophe.archive"
>>>
>>>
>>>  shim: after vcard put this one
>>>
>>> 'strophe.archive':        { deps: ['strophe'] }
>>>
>>>
>>> and then in converse.js while open the tab put one function like load
>>> History there you can do
>>>
>>> converse.connection.archive.listCollections(contactId, rsm, function
>>> (collections, responseRsm)  {
>>>       //Here you get the collection of messages
>>> });
>>>
>>> this is what you have to do and you can get the history ...in collections
>>> object parse that you see the response then its easy to parse so you can do
>>> easily...
>>>
>>> like that i have added those lines in main.js
>>>
>>> then where i have to put the code snipet? and how can i add those list
>>> of previous chats(probably in collections) ?
>>>
>>>
>>>
>>> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
>>> wrote:
>>>
>>>> go through strophe.archive.js()
>>>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>>>   and refer that function *Â   listCollections () it will help you*
>>>>
>>>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <nk.jothisankar@gmail.com
>>>> > wrote:
>>>>
>>>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>>>
>>>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <
>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>
>>>>>> H i Gowtha manan i have added you to the hangouts. please do check on
>>>>>> the same.
>>>>>>
>>>>>> I have managed to install everything and successfully created
>>>>>> components folder and added archive and rsm plugins to it.
>>>>>>
>>>>>> What i have to do further?
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@ ideas2it.com
>>>>>> <gowthaman@ideas2it.com>>< /span> w rote:
>>>>>>
>>>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>>>> workng on ubuntu
>>>>>>>
>>>>>>> go to project directory ==> npm install -g bower
>>>>>>>
>>>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>>>
>>>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>>>
>>>>>>>> Sorr y, but I don't use windows an d am not in a position to
>>>>>>>> support developmen t
>>>>>>>>
>>>>>>>> on a windows machine.
>>>>>>>>
>>>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>>>
>>>>>>>> However, "make dev" basically runs "npm install" and "bower
>>>>>>>> update", so if you run
>>>>>>>> those to commands individually, then you don't need to run "make
>>>>>>>> dev".
>>>>>>>>
>>>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>>>> >    Hi JC,
>>>>>>>> >    I have managed to install and update bower as well but can't
>>>>>>>> run "make
>>>>>>>> >    dev" command.
>>>>>>>> >    i have tried on "git-bash" and got this
>>>>>>>> >
>>>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>>>> >      $ make dev
>>>>>>>> >      sh.exe": make: command not found
>>>>>>>> >
>>>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>>>> helpful
>>>>>>>> >
>>>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>>>> >      'make' is not recognized as an internal or external command,
>>>>>>>> >      operable program or batch file.
>>>>>>>> >
>>>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>>>> nk.jothisankar@gmail.com>
>>>>>>>> >    wrote:
>>>>>>>> >
>>>>>>>> >      Hi JC,
>>>>>>>> >      Thanks for the response.
>>>>>>>> >      Now only am trying to create a dev environment in windows.
>>>>>>>> as far now i
>>>>>>>> >      have used latest release for the implementation.
>>>>>>>> >      This is what i have done so far,
>>>>>>>> >      Installed git and cloned converse.js
>>>>>>>> >      installed node js
>>>>>>>> >      I don't know where i have to run this command "make dev" and
>>>>>>>> >      "npm install" runs perfectly then if i run "bower update" it
>>>>>>>> gives error
>>>>>>>> >      message as
>>>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>>>> >      'bower' is not recognized as an internal or external command,
>>>>>>>> >      operable program or batch file.
>>>>>>>> >      What am doing wrong?
>>>>>>>> >      Can you help me with creating a development environment?
>>>>>>>> >      Thanks in advance
>>>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]
>>>>>>>> lists@opkode.com> wrote:
>>>>>>>> >
>>>>>>>> >        Hi Jothi
>>>>>>>> >
>>>>>>>> >        In order to show chat history from previous sessions, both
>>>>>>>> your XMPP
>>>>>>>> >        server and
>>>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>>>> message
>>>>>>>> >        retrieval).
>>>>>>>> >
>>>>>>>> >        There is a feature ticket open for this:
>>>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>>>> >
>>>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>>>> contributed an
>>>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>>>> >
>>>>>>>> >        Payment is not a requirement for features to be added, the
>>>>>>>> vast
>>>>>>>> >        majority of
>>>>>>>> >        work I've done on converse.js was for free, but for
>>>>>>>> certain larger
>>>>>>>> >        features,
>>>>>>>> >        such as this one, I'll only get to it once I'm
>>>>>>>> sufficiently motivated,
>>>>>>>> >        or once
>>>>>>>> >        I'm paid for it.
>>>>>>>> >
>>>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>>>> >
>>>>>>>> >        Regards
>>>>>>>> >        JC
>>>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar
>>>>>>>> wrote:
>>>>>>>> >        >    Hi,
>>>>>>>> >        >
>>>>>>>> >        >    This is jothi sankar from chennai. I am a freelancer.
>>>>>>>> First of
>>>>>>>> >        all i would
>>>>>>>> >        >    like to hats-off to you for gave us a much needed chat
>>>>>>>> >        application works
>>>>>>>> >        >    perfectly with XMPP.
>>>>>>>> >        >
>>>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>>>> openfire) for my
>>>>>>>> >        website
>>>>>>>> >        >    which could works just like Facebook chat box. With
>>>>>>>> the help of
>>>>>>>> >        >    converse.js i can able to prebind my users when they
>>>>>>>> logs in to
>>>>>>>> >        my site.
>>>>>>>> >        >    and everything works great as i already mentioned(
>>>>>>>> works
>>>>>>>> >        perfectly ). I
>>>>>>>> >        >    would like to fetching each users chat history in
>>>>>>>> chat box just
>>>>>>>> >        like in
>>>>>>>> >        >    Facebook. so that when user opens a chat box it
>>>>>>>> should shows all
>>>>>>>> >        chat
>>>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>>>> Can't find
>>>>>>>> >        any
>>>>>>>> >        >    relative links for this feature.
>>>>>>>> >        >
>>>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>>>> >        >
>>>>>>>> >        >    Thanks in advance.
>>>>>>>> >        >
>>>>>>>> >        >    --
>>>>>>>> >        >    with regards,
>>>>>>>> >        >    Jothi sankar K
>>>>>>>> >
>>>>>>>> >      --
>>>>>>>> >      with regards,
>>>>>>>> >      Jothi sankar K
>>>>>>>> >
>>>>>>>> >    --
>>>>>>>> >    with regards,
>>>>>>>> >    Jothi sankar K
>>>>>>>> >
>>>>>>>> > References
>>>>>>>> >
>>>>>>>> >    Visible links
>>>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>>>> >    2. mailto:lists@opkode.com
>>>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> with regards,
>>>>>> Jothi sankar K
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> with regards,
>>>>> Jothi sankar K
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>
>>>
>>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>
>
>
> --
> with regards,
> Jothi sankar K
>
>
>
> --
>
>
>
>
> Thanks
>
> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>
>
>


-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-11 @ 06:33
Hai Gowthaman,

as of yesterday i have worked with amd version of implementation. while
adding some plugins its better for me to go with non_amd version. So i have
shifted to non_amd.html. so now i can able to put new function in
converse.js and able to hit the archive but am not getting any response i
guess. that call back function never fired

On Fri, Oct 10, 2014 at 6:20 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> Fine gowthaman i getting some clarity now, i have added the code snippet
> at the place u mentioned. but still am confused in where i have call and
> how to loop through the collections and make it visible in chat boxes.
>
> On Fri, Oct 10, 2014 at 5:53 PM, Gowthaman m <gowthaman@ideas2it.com>
> wrote:
>
>> find below code in converse
>> return {
>>         'initialize': function (settings, callback) {
>>             Converse. initialize (settings, callback);
>>         },
>>        displaychatHistory : function(params){
>>
>>            converse.connection.archive.listCollections(contactId, rsm,
>> function(){
>>   .... code...
>> })
>>        }
>>
>>
>>  and finally call the displaychatHistory() in whliee loading your chat
>> box ok
>>
>> On Fri, Oct 10, 2014 at 5:07 PM, Jothi Sanka r <nk.jothisankar@gmail.com>
>> wrote:
>>
>>> where i have to call that.
>>>
>>> archieve.listCollections()???
>>>
>>> in converse.js showChat is the one which is open/create a chat box. is
>>> that the place??? or someother place where we actually loading previous
>>> chats from session history???
>>>
>>>
>>> On Fri, Oct 10, 2014 at 4:53 PM, Jothi Sankar <nk.jothisankar@gmail.com>
>>> wrote:
>>>
>>>> i cant find the exact location of inject this code in converse.js
>>>> i have done this. is that correct? please do check
>>>>
>>>> this.ChatBoxViews = Backbone.Overview.extend({
>>>>
>>>>             initialize: function () {
>>>>
>>>> .
>>>> .
>>>> .
>>>>
>>>> loadHistory: function(attrs){
>>>>                 /* Load older messages from openfire
>>>>                 */
>>>>                 console.log("loadHistory");
>>>>                 converse.connection.archive.listCollections(contactId,
>>>> rsm,
>>>>                     function(collections, responseRsm)  {
>>>>                         //Here you get the collection of messages
>>>>                         converse.log(collections);
>>>>                 });
>>>>     Â         }
>>>>
>>>> .
>>>> .
>>>> .
>>>>
>>>> where i can call this loadHistory function to load older messages when
>>>> chat box open.?
>>>>
>>>> showChat: function (attrs) {
>>>>
>>>> .
>>>>
>>>> .
>>>>
>>>> // i have add
>>>>
>>>> this.loadHistory(attrs);
>>>>
>>>> }
>>>>
>>>>
>>>>
>>> On Fri, Oct 10, 2014 at 4:38 PM, Gowthaman m <gowthaman@ideas2it.com>
>>> wrote:
>>>
>>>> while loading chat you call archive.listCollections and get value then
>>>> itrate and append u r chat box in html
>>>>
>>>> On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <nk.jothisankar@gmail.com
>>>> > wrote:
>>>>
>>>> hi gowthaman
>>>>
>>>> i hava followed one mail conversation from converse.js official website
>>>>
>>>> In main.js
>>>> inside paths: put this one
>>>>
>>>> "strophe.archive": "components/strophe.archive/strophe.archive"
>>>>
>>>>
>>>>  shim: after vcard put this one
>>>>
>>>> 'strophe.archive':        { deps: ['strophe'] }
>>>>
>>>>
>>>> and then in converse.js while open the tab put one function like load
>>>> History there you can do
>>>>
>>>> converse.connection.archive.listCollections(contactId, rsm, function
>>>> (collections, responseRsm)  {
>>>>       //Here you get the collection of messages
>>>> });
>>>>
>>>> this is what you have to do and you can get the history ...in collections
>>>> object parse that you see the response then its easy to parse so you can do
>>>> easily...
>>>>
>>>> like that i have added those lines in main.js
>>>>
>>>> then where i have to put the code snipet? and how can i add those list
>>>> of previous chats(probably in collections) ?
>>>>
>>>>
>>>>
>>>> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
>>>> wrote:
>>>>
>>>>> go through strophe.archive.js()
>>>>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>>>>   and refer that function *Â   listCollections () it will help you*
>>>>>
>>>>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <
>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>
>>>>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>>>>
>>>>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <
>>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>>
>>>>>>> H i Gowtha manan i have added you to the hangouts. please do check
>>>>>>> on the same.
>>>>>>>
>>>>>>> I have managed to install everything and successfully created
>>>>>>> components folder and added archive and rsm plugins to it.
>>>>>>>
>>>>>>> What i have to do further?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@
>>>>>>> ideas2it.com <gowthaman@ideas2it.com>>< /span> w rote:
>>>>>>>
>>>>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>>>>> workng on ubuntu
>>>>>>>>
>>>>>>>> go to project directory ==> npm install -g bower
>>>>>>>>
>>>>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>>>>
>>>>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>>>>
>>>>>>>>> Sorr y, but I don't use windows an d am not in a position to
>>>>>>>>> support developmen t
>>>>>>>>>
>>>>>>>>> on a windows machine.
>>>>>>>>>
>>>>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>>>>
>>>>>>>>> However, "make dev" basically runs "npm install" and "bower
>>>>>>>>> update", so if you run
>>>>>>>>> those to commands individually, then you don't need to run "make
>>>>>>>>> dev".
>>>>>>>>>
>>>>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>>>>> >    Hi JC,
>>>>>>>>> >    I have managed to install and update bower as well but can't
>>>>>>>>> run "make
>>>>>>>>> >    dev" command.
>>>>>>>>> >    i have tried on "git-bash" and got this
>>>>>>>>> >
>>>>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>>>>> >      $ make dev
>>>>>>>>> >      sh.exe": make: command not found
>>>>>>>>> >
>>>>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>>>>> helpful
>>>>>>>>> >
>>>>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>>>>> >      'make' is not recognized as an internal or external command,
>>>>>>>>> >      operable program or batch file.
>>>>>>>>> >
>>>>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>>>>> nk.jothisankar@gmail.com>
>>>>>>>>> >    wrote:
>>>>>>>>> >
>>>>>>>>> >      Hi JC,
>>>>>>>>> >      Thanks for the response.
>>>>>>>>> >      Now only am trying to create a dev environment in windows.
>>>>>>>>> as far now i
>>>>>>>>> >      have used latest release for the implementation.
>>>>>>>>> >      This is what i have done so far,
>>>>>>>>> >      Installed git and cloned converse.js
>>>>>>>>> >      installed node js
>>>>>>>>> >      I don't know where i have to run this command "make dev" and
>>>>>>>>> >      "npm install" runs perfectly then if i run "bower update"
>>>>>>>>> it gives error
>>>>>>>>> >      message as
>>>>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>>>>> >      'bower' is not recognized as an internal or external
>>>>>>>>> command,
>>>>>>>>> >      operable program or batch file.
>>>>>>>>> >      What am doing wrong?
>>>>>>>>> >      Can you help me with creating a development environment?
>>>>>>>>> >      Thanks in advance
>>>>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]
>>>>>>>>> lists@opkode.com> wrote:
>>>>>>>>> >
>>>>>>>>> >        Hi Jothi
>>>>>>>>> >
>>>>>>>>> >        In order to show chat history from previous sessions,
>>>>>>>>> both your XMPP
>>>>>>>>> >        server and
>>>>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>>>>> message
>>>>>>>>> >        retrieval).
>>>>>>>>> >
>>>>>>>>> >        There is a feature ticket open for this:
>>>>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>>>>> >
>>>>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>>>>> contributed an
>>>>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>>>>> >
>>>>>>>>> >        Payment is not a requirement for features to be added,
>>>>>>>>> the vast
>>>>>>>>> >        majority of
>>>>>>>>> >        work I've done on converse.js was for free, but for
>>>>>>>>> certain larger
>>>>>>>>> >        features,
>>>>>>>>> >        such as this one, I'll only get to it once I'm
>>>>>>>>> sufficiently motivated,
>>>>>>>>> >        or once
>>>>>>>>> >        I'm paid for it.
>>>>>>>>> >
>>>>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>>>>> >
>>>>>>>>> >        Regards
>>>>>>>>> >        JC
>>>>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar
>>>>>>>>> wrote:
>>>>>>>>> >        >    Hi,
>>>>>>>>> >        >
>>>>>>>>> >        >    This is jothi sankar from chennai. I am a
>>>>>>>>> freelancer. First of
>>>>>>>>> >        all i would
>>>>>>>>> >        >    like to hats-off to you for gave us a much needed
>>>>>>>>> chat
>>>>>>>>> >        application works
>>>>>>>>> >        >    perfectly with XMPP.
>>>>>>>>> >        >
>>>>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>>>>> openfire) for my
>>>>>>>>> >        website
>>>>>>>>> >        >    which could works just like Facebook chat box. With
>>>>>>>>> the help of
>>>>>>>>> >        >    converse.js i can able to prebind my users when they
>>>>>>>>> logs in to
>>>>>>>>> >        my site.
>>>>>>>>> >        >    and everything works great as i already mentioned(
>>>>>>>>> works
>>>>>>>>> >        perfectly ). I
>>>>>>>>> >        >    would like to fetching each users chat history in
>>>>>>>>> chat box just
>>>>>>>>> >        like in
>>>>>>>>> >        >    Facebook. so that when user opens a chat box it
>>>>>>>>> should shows all
>>>>>>>>> >        chat
>>>>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>>>>> Can't find
>>>>>>>>> >        any
>>>>>>>>> >        >    relative links for this feature.
>>>>>>>>> >        >
>>>>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>>>>> >        >
>>>>>>>>> >        >    Thanks in advance.
>>>>>>>>> >        >
>>>>>>>>> >        >    --
>>>>>>>>> >        >    with regards,
>>>>>>>>> >        >    Jothi sankar K
>>>>>>>>> >
>>>>>>>>> >      --
>>>>>>>>> >      with regards,
>>>>>>>>> >      Jothi sankar K
>>>>>>>>> >
>>>>>>>>> >    --
>>>>>>>>> >    with regards,
>>>>>>>>> >    Jothi sankar K
>>>>>>>>> >
>>>>>>>>> > References
>>>>>>>>> >
>>>>>>>>> >    Visible links
>>>>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>>>>> >    2. mailto:lists@opkode.com
>>>>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> with regards,
>>>>>>> Jothi sankar K
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> with regards,
>>>>>> Jothi sankar K
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> with regards,
>>>> Jothi sankar K
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>>
>>
>> --
>>
>>
>>
>>
>> Thanks
>>
>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>
>>
>>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 
with regards,
Jothi sankar K

Re: [conversejs] Reg: Support for load history in converse.js

From:
Jothi Sankar
Date:
2014-10-13 @ 05:08
Hi gowthaman,

You are the one who can help me with this. i have tried a lot searching
regards this issue. still i can't figured out my issues and the callback
functions yet fired. plz do reply ASAP

On Sat, Oct 11, 2014 at 12:03 PM, Jothi Sankar <nk.jothisankar@gmail.com>
wrote:

> Hai Gowthaman,
>
> as of yesterday i have worked with amd version of implementation. while
> adding some plugins its better for me to go with non_amd version. So i have
> shifted to non_amd.html. so now i can able to put new function in
> converse.js and able to hit the archive but am not getting any response i
> guess. that call back function never fired
>
> On Fri, Oct 10, 2014 at 6:20 PM, Jothi Sankar <nk.jothisankar@gmail.com>
> wrote:
>
>> Fine gowthaman i getting some clarity now, i have added the code snippet
>> at the place u mentioned. but still am confused in where i have call and
>> how to loop through the collections and make it visible in chat boxes.
>>
>> On Fri, Oct 10, 2014 at 5:53 PM, Gowthaman m <gowthaman@ideas2it.com>
>> wrote:
>>
>>> find below code in converse
>>> return {
>>>         'initialize': function (settings, callback) {
>>>             Converse. initialize (settings, callback);
>>>         },
>>>        displaychatHistory : function(params){
>>>
>>>            converse.connection.archive.listCollections(contactId, rsm,
>>> function(){
>>>   .... code...
>>> })
>>>        }
>>>
>>>
>>>  and finally call the displaychatHistory() in whliee loading your chat
>>> box ok
>>>
>>> On Fri, Oct 10, 2014 at 5:07 PM, Jothi Sanka r <nk.jothisankar@gmail.com
>>> > wrote:
>>>
>>>> where i have to call that.
>>>>
>>>> archieve.listCollections()???
>>>>
>>>> in converse.js showChat is the one which is open/create a chat box. is
>>>> that the place??? or someother place where we actually loading previous
>>>> chats from session history???
>>>>
>>>>
>>>> On Fri, Oct 10, 2014 at 4:53 PM, Jothi Sankar <nk.jothisankar@gmail.com
>>>> > wrote:
>>>>
>>>>> i cant find the exact location of inject this code in converse.js
>>>>> i have done this. is that correct? please do check
>>>>>
>>>>> this.ChatBoxViews = Backbone.Overview.extend({
>>>>>
>>>>>             initialize: function () {
>>>>>
>>>>> .
>>>>> .
>>>>> .
>>>>>
>>>>> loadHistory: function(attrs){
>>>>>                 /* Load older messages from openfire
>>>>>                 */
>>>>>                 console.log("loadHistory");
>>>>>                 converse.connection.archive.listCollections(contactId,
>>>>> rsm,
>>>>>                     function(collections, responseRsm)  {
>>>>>                         //Here you get the collection of messages
>>>>>                         converse.log(collections);
>>>>>                 });
>>>>>     Â         }
>>>>>
>>>>> .
>>>>> .
>>>>> .
>>>>>
>>>>> where i can call this loadHistory function to load older messages when
>>>>> chat box open.?
>>>>>
>>>>> showChat: function (attrs) {
>>>>>
>>>>> .
>>>>>
>>>>> .
>>>>>
>>>>> // i have add
>>>>>
>>>>> this.loadHistory(attrs);
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>>
>>>> On Fri, Oct 10, 2014 at 4:38 PM, Gowthaman m <gowthaman@ideas2it.com>
>>>> wrote:
>>>>
>>>>> while loading chat you call archive.listCollections and get value
>>>>> then itrate and append u r chat box in html
>>>>>
>>>>> On Fri, Oct 10, 2014 at 4:25 PM, Jothi Sankar <
>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>
>>>>> hi gowthaman
>>>>>
>>>>> i hava followed one mail conversation from converse.js official website
>>>>>
>>>>> In main.js
>>>>> inside paths: put this one
>>>>>
>>>>> "strophe.archive": "components/strophe.archive/strophe.archive"
>>>>>
>>>>>
>>>>>  shim: after vcard put this one
>>>>>
>>>>> 'strophe.archive':        { deps: ['strophe'] }
>>>>>
>>>>>
>>>>> and then in converse.js while open the tab put one function like load
>>>>> History there you can do
>>>>>
>>>>> converse.connection.archive.listCollections(contactId, rsm, function
>>>>> (collections, responseRsm)  {
>>>>>       //Here you get the collection of messages
>>>>> });
>>>>>
>>>>> this is what you have to do and you can get the history ...in collections
>>>>> object parse that you see the response then its easy to parse so you can do
>>>>> easily...
>>>>>
>>>>> like that i have added those lines in main.js
>>>>>
>>>>> then where i have to put the code snipet? and how can i add those list
>>>>> of previous chats(probably in collections) ?
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 10, 2014 at 3:15 PM, Gowthaman m <gowthaman@ideas2it.com>
>>>>> wrote:
>>>>>
>>>>>> go through strophe.archive.js()
>>>>>> 
<https://github.com/metajack/strophejs-plugins/blob/master/archive/strophe.archive.js>
>>>>>>   and refer that function *Â   listCollections () it will help you*
>>>>>>
>>>>>> On Fri, Oct 10, 2014 at 2:50 PM, Jothi Sankar <
>>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>>
>>>>>>> Are you there? sorry there is some problem with my hangouts i guess.
>>>>>>>
>>>>>>> On Fri, Oct 10, 2014 at 12:07 PM, Jothi Sankar <
>>>>>>> nk.jothisankar@gmail.com> wrote:
>>>>>>>
>>>>>>>> H i Gowtha manan i have added you to the hangouts. please do check
>>>>>>>> on the same.
>>>>>>>>
>>>>>>>> I have managed to install everything and successfully created
>>>>>>>> components folder and added archive and rsm plugins to it.
>>>>>>>>
>>>>>>>> What i have to do further?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Oct 10, 2014 at 8:47 AM, Gowthaman m <gowthaman@
>>>>>>>> ideas2it.com <gowthaman@ideas2it.com>>< /span> w rote:
>>>>>>>>
>>>>>>>> Jothi i dont have that much experience  node js with windows7 i am
>>>>>>>>> workng on ubuntu
>>>>>>>>>
>>>>>>>>> go to project directory ==> npm install -g bower
>>>>>>>>>
>>>>>>>>>  add me your hanghout : "gowthaman.ideas2it@gmail.com"
>>>>>>>>>
>>>>>>>>> On Thu, Oct 9, 2014 at 9:51 PM, JC Brand <lists@opkode.com> wrote:
>>>>>>>>>
>>>>>>>>>> Sorr y, but I don't use windows an d am not in a position to
>>>>>>>>>> support developmen t
>>>>>>>>>>
>>>>>>>>>> on a windows machine.
>>>>>>>>>>
>>>>>>>>>> In order to use "make" on windows, you need to install it first:
>>>>>>>>>> http://gnuwin32.sourceforge.net/packages/make.htm
>>>>>>>>>>
>>>>>>>>>> However, "make dev" basically runs "npm install" and "bower
>>>>>>>>>> update", so if you run
>>>>>>>>>> those to commands individually, then you don't need to run "make
>>>>>>>>>> dev".
>>>>>>>>>>
>>>>>>>>>> On Thu, Oct 09, 2014 at 08:39:51PM +0530, Jothi Sankar wrote:
>>>>>>>>>> >    Hi JC,
>>>>>>>>>> >    I have managed to install and update bower as well but can't
>>>>>>>>>> run "make
>>>>>>>>>> >    dev" command.
>>>>>>>>>> >    i have tried on "git-bash" and got this
>>>>>>>>>> >
>>>>>>>>>> >      machine2@JOSAN ~/converse.js (master)
>>>>>>>>>> >      $ make dev
>>>>>>>>>> >      sh.exe": make: command not found
>>>>>>>>>> >
>>>>>>>>>> >    system cmd as administrator and as a normal user nothing is
>>>>>>>>>> helpful
>>>>>>>>>> >
>>>>>>>>>> >      C:\Users\machine2\converse.js>make dev
>>>>>>>>>> >      'make' is not recognized as an internal or external
>>>>>>>>>> command,
>>>>>>>>>> >      operable program or batch file.
>>>>>>>>>> >
>>>>>>>>>> >    Whats wrong? where i have to run this command actually???
>>>>>>>>>> >    On Thu, Oct 9, 2014 at 8:24 PM, Jothi Sankar <[1]
>>>>>>>>>> nk.jothisankar@gmail.com>
>>>>>>>>>> >    wrote:
>>>>>>>>>> >
>>>>>>>>>> >      Hi JC,
>>>>>>>>>> >      Thanks for the response.
>>>>>>>>>> >      Now only am trying to create a dev environment in windows.
>>>>>>>>>> as far now i
>>>>>>>>>> >      have used latest release for the implementation.
>>>>>>>>>> >      This is what i have done so far,
>>>>>>>>>> >      Installed git and cloned converse.js
>>>>>>>>>> >      installed node js
>>>>>>>>>> >      I don't know where i have to run this command "make dev"
>>>>>>>>>> and
>>>>>>>>>> >      "npm install" runs perfectly then if i run "bower update"
>>>>>>>>>> it gives error
>>>>>>>>>> >      message as
>>>>>>>>>> >      C:\Users\machine2\converse.js>bower update
>>>>>>>>>> >      'bower' is not recognized as an internal or external
>>>>>>>>>> command,
>>>>>>>>>> >      operable program or batch file.
>>>>>>>>>> >      What am doing wrong?
>>>>>>>>>> >      Can you help me with creating a development environment?
>>>>>>>>>> >      Thanks in advance
>>>>>>>>>> >      On Thu, Oct 9, 2014 at 7:09 PM, JC Brand <[2]
>>>>>>>>>> lists@opkode.com> wrote:
>>>>>>>>>> >
>>>>>>>>>> >        Hi Jothi
>>>>>>>>>> >
>>>>>>>>>> >        In order to show chat history from previous sessions,
>>>>>>>>>> both your XMPP
>>>>>>>>>> >        server and
>>>>>>>>>> >        converse.js needs to support XEP-0013 (flexible offline
>>>>>>>>>> message
>>>>>>>>>> >        retrieval).
>>>>>>>>>> >
>>>>>>>>>> >        There is a feature ticket open for this:
>>>>>>>>>> >        [3]https://github.com/jcbrand/converse.js/issues/174
>>>>>>>>>> >
>>>>>>>>>> >        This is an oft requested feature, but so far no-one has
>>>>>>>>>> contributed an
>>>>>>>>>> >        implementation of it or has been willing to pay for it.
>>>>>>>>>> >
>>>>>>>>>> >        Payment is not a requirement for features to be added,
>>>>>>>>>> the vast
>>>>>>>>>> >        majority of
>>>>>>>>>> >        work I've done on converse.js was for free, but for
>>>>>>>>>> certain larger
>>>>>>>>>> >        features,
>>>>>>>>>> >        such as this one, I'll only get to it once I'm
>>>>>>>>>> sufficiently motivated,
>>>>>>>>>> >        or once
>>>>>>>>>> >        I'm paid for it.
>>>>>>>>>> >
>>>>>>>>>> >        Pull requests are welcome if anyone else implements this.
>>>>>>>>>> >
>>>>>>>>>> >        Regards
>>>>>>>>>> >        JC
>>>>>>>>>> >        On Thu, Oct 09, 2014 at 12:06:13PM +0530, Jothi Sankar
>>>>>>>>>> wrote:
>>>>>>>>>> >        >    Hi,
>>>>>>>>>> >        >
>>>>>>>>>> >        >    This is jothi sankar from chennai. I am a
>>>>>>>>>> freelancer. First of
>>>>>>>>>> >        all i would
>>>>>>>>>> >        >    like to hats-off to you for gave us a much needed
>>>>>>>>>> chat
>>>>>>>>>> >        application works
>>>>>>>>>> >        >    perfectly with XMPP.
>>>>>>>>>> >        >
>>>>>>>>>> >        >    I am trying to implement a web chat client (with
>>>>>>>>>> openfire) for my
>>>>>>>>>> >        website
>>>>>>>>>> >        >    which could works just like Facebook chat box. With
>>>>>>>>>> the help of
>>>>>>>>>> >        >    converse.js i can able to prebind my users when
>>>>>>>>>> they logs in to
>>>>>>>>>> >        my site.
>>>>>>>>>> >        >    and everything works great as i already mentioned(
>>>>>>>>>> works
>>>>>>>>>> >        perfectly ). I
>>>>>>>>>> >        >    would like to fetching each users chat history in
>>>>>>>>>> chat box just
>>>>>>>>>> >        like in
>>>>>>>>>> >        >    Facebook. so that when user opens a chat box it
>>>>>>>>>> should shows all
>>>>>>>>>> >        chat
>>>>>>>>>> >        >    histories in it(history of messages from openfire).
>>>>>>>>>> Can't find
>>>>>>>>>> >        any
>>>>>>>>>> >        >    relative links for this feature.
>>>>>>>>>> >        >
>>>>>>>>>> >        >    Hope you can help me to implement t his feature.
>>>>>>>>>> >        >
>>>>>>>>>> >        >    Thanks in advance.
>>>>>>>>>> >        >
>>>>>>>>>> >        >    --
>>>>>>>>>> >        >    with regards,
>>>>>>>>>> >        >    Jothi sankar K
>>>>>>>>>> >
>>>>>>>>>> >      --
>>>>>>>>>> >      with regards,
>>>>>>>>>> >      Jothi sankar K
>>>>>>>>>> >
>>>>>>>>>> >    --
>>>>>>>>>> >    with regards,
>>>>>>>>>> >    Jothi sankar K
>>>>>>>>>> >
>>>>>>>>>> > References
>>>>>>>>>> >
>>>>>>>>>> >    Visible links
>>>>>>>>>> >    1. mailto:nk.jothisankar@gmail.com
>>>>>>>>>> >    2. mailto:lists@opkode.com
>>>>>>>>>> >    3. https://github.com/jcbrand/converse.js/issues/174
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> with regards,
>>>>>>>> Jothi sankar K
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> with regards,
>>>>>>> Jothi sankar K
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> with regards,
>>>>> Jothi sankar K
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> with regards,
>>>> Jothi sankar K
>>>>
>>>
>>>
>>>
>>> --
>>> with regards,
>>> Jothi sankar K
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Gowthaman M <http://erated.me/p/gowthaman-murugan/>
>>>
>>>
>>>
>>
>>
>> --
>> with regards,
>> Jothi sankar K
>>
>
>
>
> --
> with regards,
> Jothi sankar K
>



-- 
with regards,
Jothi sankar K