librelist archives

« back to archive

Retrieve Chat Messages from xmpp

Retrieve Chat Messages from xmpp

From:
Adil Malik
Date:
2014-06-13 @ 05:30
Dear Sir,

How are you, hope you are fine. I'm using converse.js for my website with
xmpp server. Converse.js is really awesome that is offering a number of
great features.
I have enabled the user messages to save on server so we can keep chat
history. The messages are being saved on server while chat but the issue is
when we log out from website and log in again then all messages
(conversation) are removed from the chat box.
I need you to please help or guide me for how can i retrieve those messages
(conversation) to the chat box user respectively.
Many many thanks in advance and waiting to here from you.

Regards,
Adil Malik

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
jitu@ideas2it
Date:
2014-06-13 @ 05:59
Hi Adil Malik,

   Here i got the history by like this you can make use , Hope it was
helpfull to you ....


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

But for that you have to include* strophe.archive.js *in your converse....
Be Happy :)




On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com> wrote:

> Dear Sir,
>
> How are you, hope you are fine. I'm using converse.js for my website with
> xmpp server. Converse.js is really awesome that is offering a number of
> great features.
> I have enabled the user messages to save on server so we can keep chat
> history. The messages are being saved on server while chat but the issue is
> when we log out from website and log in again then all messages
> (conversation) are removed from the chat box.
> I need you to please help or guide me for how can i retrieve those
> messages (conversation) to the chat box user respectively.
> Many many thanks in advance and waiting to here from you.
>
>  Regards,
> Adil Malik
>

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
Adil Malik
Date:
2014-06-13 @ 06:49
Hi,
Thank you so much for giving solution:)
But I'm having hard to find and implement it, can you please guide that:
Where(in which file) do i have to put the function and how to include*
strophe.archive.js *in my converse.js
*God Bless You:)*


On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it <jitendara@ideas2it.com>
wrote:

> Hi Adil Malik,
>
>    Here i got the history by like this you can make use , Hope it was
> helpfull to you ....
>
>
> *converse.connection.archive.listCollections(contactId, rsm, function
> (collections, responseRsm)  { *
> *      //Here you get the collection of messages*
> *});*
>
> But for that you have to include* strophe.archive.js *in your
> converse.... Be Happy :)
>
>
>
>
> On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com> wrote:
>
>> Dear Sir,
>>
>> How are you, hope you are fine. I'm using converse.js for my website
>> with  xmpp server. Converse.js is really awesome that is offering a number
>> of great features.
>> I have enabled the user messages to save on server so we can keep chat
>> history. The messages are being saved on server while chat but the issue is
>> when we log out from website and log in again then all messages
>> (conversation) are removed from the chat box.
>> I need you to please help or guide me for how can i retrieve those
>> messages (conversation) to the chat box user respectively.
>> Many many thanks in advance and waiting to here from you.
>>
>>  Regards,
>> Adil Malik
>>
>
>


-- 
Regards,
Adil Malik
Jr. Web App Developer
Smonte (Pvt.) Limited, Pakistan

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
jitu@ideas2it
Date:
2014-06-13 @ 07:05
Can i know which version of converse you are using non_amd version or amd
version according to that i can tell where you have to put ...

You can put get the strophe.archive.js from here
https://github.com/metajack/strophejs-plugins/tree/master/archive

And you want to include the converse into your components directory and if
you are using non_amd version then you can include your non_amd.html
otherwise index.html you have to include and main.js also you have to
include the path then make a query like above i give..

Hope it will be helpfull to you ...


On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik <adil.z@smonte.com> wrote:

> Hi,
> Thank you so much for giving solution:)
> But I'm having hard to find and implement it, can you please guide that:
> Where(in which file) do i have to put the function and how to include*
> strophe.archive.js *in my converse.js
> *God Bless You:)*
>
>
> On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it <jitendara@ideas2it.com>
> wrote:
>
>> Hi Adil Malik,
>>
>>    Here i got the history by like this you can make use , Hope it was
>> helpfull to you ....
>>
>>
>> *converse.connection.archive.listCollections(contactId, rsm, function
>> (collections, responseRsm)  { *
>> *      //Here you get the collection of messages*
>> *});*
>>
>> But for that you have to include* strophe.archive.js *in your
>> converse.... Be Happy :)
>>
>>
>>
>>
>> On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com> wrote:
>>
>>> Dear Sir,
>>>
>>> How are you, hope you are fine. I'm using converse.js for my website
>>> with  xmpp server. Converse.js is really awesome that is offering a number
>>> of great features.
>>> I have enabled the user messages to save on server so we can keep chat
>>> history. The messages are being saved on server while chat but the issue is
>>> when we log out from website and log in again then all messages
>>> (conversation) are removed from the chat box.
>>> I need you to please help or guide me for how can i retrieve those
>>> messages (conversation) to the chat box user respectively.
>>> Many many thanks in advance and waiting to here from you.
>>>
>>>  Regards,
>>> Adil Malik
>>>
>>
>>
>
>
> --
> Regards,
> Adil Malik
> Jr. Web App Developer
> Smonte (Pvt.) Limited, Pakistan
>

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
Adil Malik
Date:
2014-06-13 @ 07:53
Yes I'm using AMD version and i have downloaded the code for
*strophe.archive.js*
Please guide to proceed it further. Thank you:)


On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it <jitendara@ideas2it.com>
wrote:

> Can i know which version of converse you are using non_amd version or amd
> version according to that i can tell where you have to put ...
>
> You can put get the strophe.archive.js from here
> https://github.com/metajack/strophejs-plugins/tree/master/archive
>
> And you want to include the converse into your components directory and if
> you are using non_amd version then you can include your non_amd.html
> otherwise index.html you have to include and main.js also you have to
> include the path then make a query like above i give..
>
> Hope it will be helpfull to you ...
>
>
> On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik <adil.z@smonte.com> wrote:
>
>> Hi,
>> Thank you so much for giving solution:)
>> But I'm having hard to find and implement it, can you please guide that:
>> Where(in which file) do i have to put the function and how to include*
>> strophe.archive.js *in my converse.js
>> *God Bless You:)*
>>
>>
>> On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it <jitendara@ideas2it.com>
>> wrote:
>>
>>> Hi Adil Malik,
>>>
>>>    Here i got the history by like this you can make use , Hope it was
>>> helpfull to you ....
>>>
>>>
>>> *converse.connection.archive.listCollections(contactId, rsm, function
>>> (collections, responseRsm)  { *
>>> *      //Here you get the collection of messages*
>>> *});*
>>>
>>> But for that you have to include* strophe.archive.js *in your
>>> converse.... Be Happy :)
>>>
>>>
>>>
>>>
>>> On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com> wrote:
>>>
>>>> Dear Sir,
>>>>
>>>> How are you, hope you are fine. I'm using converse.js for my website
>>>> with  xmpp server. Converse.js is really awesome that is offering a number
>>>> of great features.
>>>> I have enabled the user messages to save on server so we can keep chat
>>>> history. The messages are being saved on server while chat but the issue is
>>>> when we log out from website and log in again then all messages
>>>> (conversation) are removed from the chat box.
>>>> I need you to please help or guide me for how can i retrieve those
>>>> messages (conversation) to the chat box user respectively.
>>>> Many many thanks in advance and waiting to here from you.
>>>>
>>>>  Regards,
>>>> Adil Malik
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Adil Malik
>> Jr. Web App Developer
>> Smonte (Pvt.) Limited, Pakistan
>>
>
>


-- 
Regards,
Adil Malik
Jr. Web App Developer
Smonte (Pvt.) Limited, Pakistan

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
jitu@ideas2it
Date:
2014-06-13 @ 08:29
Hope this is not available in converse.js, And converse.js is the best
coding standard i hope so and easily any one can get the flow ,  but you
can implement according to your requirement.

Create one Folder inside componenets named as strophe.archive and inside
strophe.archive.js file create and do below :

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...




On Fri, Jun 13, 2014 at 1:23 PM, Adil Malik <adil.z@smonte.com> wrote:

> Yes I'm using AMD version and i have downloaded the code for
> *strophe.archive.js*
> Please guide to proceed it further. Thank you:)
>
>
> On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it <jitendara@ideas2it.com>
> wrote:
>
>> Can i know which version of converse you are using non_amd version or amd
>> version according to that i can tell where you have to put ...
>>
>> You can put get the strophe.archive.js from here
>> https://github.com/metajack/strophejs-plugins/tree/master/archive
>>
>> And you want to include the converse into your components directory and
>> if you are using non_amd version then you can include your non_amd.html
>> otherwise index.html you have to include and main.js also you have to
>> include the path then make a query like above i give..
>>
>> Hope it will be helpfull to you ...
>>
>>
>> On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik <adil.z@smonte.com> wrote:
>>
>>> Hi,
>>> Thank you so much for giving solution:)
>>> But I'm having hard to find and implement it, can you please guide that:
>>> Where(in which file) do i have to put the function and how to include*
>>> strophe.archive.js *in my converse.js
>>> *God Bless You:)*
>>>
>>>
>>> On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it <jitendara@ideas2it.com>
>>> wrote:
>>>
>>>> Hi Adil Malik,
>>>>
>>>>    Here i got the history by like this you can make use , Hope it was
>>>> helpfull to you ....
>>>>
>>>>
>>>> *converse.connection.archive.listCollections(contactId, rsm, function
>>>> (collections, responseRsm)  { *
>>>> *      //Here you get the collection of messages*
>>>> *});*
>>>>
>>>> But for that you have to include* strophe.archive.js *in your
>>>> converse.... Be Happy :)
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com> wrote:
>>>>
>>>>> Dear Sir,
>>>>>
>>>>> How are you, hope you are fine. I'm using converse.js for my website
>>>>> with  xmpp server. Converse.js is really awesome that is offering a number
>>>>> of great features.
>>>>> I have enabled the user messages to save on server so we can keep chat
>>>>> history. The messages are being saved on server while chat but the issue is
>>>>> when we log out from website and log in again then all messages
>>>>> (conversation) are removed from the chat box.
>>>>> I need you to please help or guide me for how can i retrieve those
>>>>> messages (conversation) to the chat box user respectively.
>>>>> Many many thanks in advance and waiting to here from you.
>>>>>
>>>>>  Regards,
>>>>> Adil Malik
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Adil Malik
>>> Jr. Web App Developer
>>> Smonte (Pvt.) Limited, Pakistan
>>>
>>
>>
>
>
> --
> Regards,
> Adil Malik
> Jr. Web App Developer
> Smonte (Pvt.) Limited, Pakistan
>

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
Adil Malik
Date:
2014-06-13 @ 09:42
Alright thank you so mthuch for your help.:)
Let me follow the steps and do accordingly and if there is any issue i'll
reply
*God Bless you Jitendara*!


On Fri, Jun 13, 2014 at 1:29 PM, jitu@ideas2it <jitendara@ideas2it.com>
wrote:

> Hope this is not available in converse.js, And converse.js is the best
> coding standard i hope so and easily any one can get the flow ,  but you
> can implement according to your requirement.
>
> Create one Folder inside componenets named as strophe.archive and inside
> strophe.archive.js file create and do below :
>
> 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...
>
>
>
>
> On Fri, Jun 13, 2014 at 1:23 PM, Adil Malik <adil.z@smonte.com> wrote:
>
>> Yes I'm using AMD version and i have downloaded the code for
>> *strophe.archive.js*
>> Please guide to proceed it further. Thank you:)
>>
>>
>> On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it <jitendara@ideas2it.com>
>> wrote:
>>
>>> Can i know which version of converse you are using non_amd version or
>>> amd version according to that i can tell where you have to put ...
>>>
>>> You can put get the strophe.archive.js from here
>>> https://github.com/metajack/strophejs-plugins/tree/master/archive
>>>
>>> And you want to include the converse into your components directory and
>>> if you are using non_amd version then you can include your non_amd.html
>>> otherwise index.html you have to include and main.js also you have to
>>> include the path then make a query like above i give..
>>>
>>> Hope it will be helpfull to you ...
>>>
>>>
>>> On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik <adil.z@smonte.com> wrote:
>>>
>>>> Hi,
>>>> Thank you so much for giving solution:)
>>>> But I'm having hard to find and implement it, can you please guide that:
>>>> Where(in which file) do i have to put the function and how to include*
>>>> strophe.archive.js *in my converse.js
>>>> *God Bless You:)*
>>>>
>>>>
>>>> On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it <jitendara@ideas2it.com
>>>> > wrote:
>>>>
>>>>> Hi Adil Malik,
>>>>>
>>>>>    Here i got the history by like this you can make use , Hope it was
>>>>> helpfull to you ....
>>>>>
>>>>>
>>>>> *converse.connection.archive.listCollections(contactId, rsm, function
>>>>> (collections, responseRsm)  { *
>>>>> *      //Here you get the collection of messages*
>>>>> *});*
>>>>>
>>>>> But for that you have to include* strophe.archive.js *in your
>>>>> converse.... Be Happy :)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com>
>>>>> wrote:
>>>>>
>>>>>> Dear Sir,
>>>>>>
>>>>>> How are you, hope you are fine. I'm using converse.js for my website
>>>>>> with  xmpp server. Converse.js is really awesome that is offering a number
>>>>>> of great features.
>>>>>> I have enabled the user messages to save on server so we can keep
>>>>>> chat history. The messages are being saved on server while chat but the
>>>>>> issue is when we log out from website and log in again then all messages
>>>>>> (conversation) are removed from the chat box.
>>>>>> I need you to please help or guide me for how can i retrieve those
>>>>>> messages (conversation) to the chat box user respectively.
>>>>>> Many many thanks in advance and waiting to here from you.
>>>>>>
>>>>>>  Regards,
>>>>>> Adil Malik
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Adil Malik
>>>> Jr. Web App Developer
>>>> Smonte (Pvt.) Limited, Pakistan
>>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Adil Malik
>> Jr. Web App Developer
>> Smonte (Pvt.) Limited, Pakistan
>>
>
>


-- 
Regards,
Adil Malik
Jr. Web App Developer
Smonte (Pvt.) Limited, Pakistan

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
Adil Malik
Date:
2014-06-13 @ 15:14
Hello,

Sorry I'm disturbing you again again. I've to create folder inside
*components* folder and there is no folder like this. Can you please tell
where this folder is exactly. I'm very thankful for your assistance


On Fri, Jun 13, 2014 at 2:42 PM, Adil Malik <adil.z@smonte.com> wrote:

> Alright thank you so mthuch for your help.:)
> Let me follow the steps and do accordingly and if there is any issue i'll
> reply
> *God Bless you Jitendara*!
>
>
> On Fri, Jun 13, 2014 at 1:29 PM, jitu@ideas2it <jitendara@ideas2it.com>
> wrote:
>
>> Hope this is not available in converse.js, And converse.js is the best
>> coding standard i hope so and easily any one can get the flow ,  but you
>> can implement according to your requirement.
>>
>> Create one Folder inside componenets named as strophe.archive and inside
>> strophe.archive.js file create and do below :
>>
>> 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...
>>
>>
>>
>>
>> On Fri, Jun 13, 2014 at 1:23 PM, Adil Malik <adil.z@smonte.com> wrote:
>>
>>> Yes I'm using AMD version and i have downloaded the code for
>>> *strophe.archive.js*
>>> Please guide to proceed it further. Thank you:)
>>>
>>>
>>> On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it <jitendara@ideas2it.com>
>>> wrote:
>>>
>>>> Can i know which version of converse you are using non_amd version or
>>>> amd version according to that i can tell where you have to put ...
>>>>
>>>> You can put get the strophe.archive.js from here
>>>> https://github.com/metajack/strophejs-plugins/tree/master/archive
>>>>
>>>> And you want to include the converse into your components directory and
>>>> if you are using non_amd version then you can include your non_amd.html
>>>> otherwise index.html you have to include and main.js also you have to
>>>> include the path then make a query like above i give..
>>>>
>>>> Hope it will be helpfull to you ...
>>>>
>>>>
>>>> On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik <adil.z@smonte.com> wrote:
>>>>
>>>>> Hi,
>>>>> Thank you so much for giving solution:)
>>>>> But I'm having hard to find and implement it, can you please guide
>>>>> that:
>>>>> Where(in which file) do i have to put the function and how to include*
>>>>> strophe.archive.js *in my converse.js
>>>>> *God Bless You:)*
>>>>>
>>>>>
>>>>> On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it <
>>>>> jitendara@ideas2it.com> wrote:
>>>>>
>>>>>> Hi Adil Malik,
>>>>>>
>>>>>>    Here i got the history by like this you can make use , Hope it was
>>>>>> helpfull to you ....
>>>>>>
>>>>>>
>>>>>> *converse.connection.archive.listCollections(contactId, rsm, function
>>>>>> (collections, responseRsm)  { *
>>>>>> *      //Here you get the collection of messages*
>>>>>> *});*
>>>>>>
>>>>>> But for that you have to include* strophe.archive.js *in your
>>>>>> converse.... Be Happy :)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik <adil.z@smonte.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Dear Sir,
>>>>>>>
>>>>>>> How are you, hope you are fine. I'm using converse.js for my website
>>>>>>> with  xmpp server. Converse.js is really awesome that is offering a number
>>>>>>> of great features.
>>>>>>> I have enabled the user messages to save on server so we can keep
>>>>>>> chat history. The messages are being saved on server while chat but the
>>>>>>> issue is when we log out from website and log in again then all messages
>>>>>>> (conversation) are removed from the chat box.
>>>>>>> I need you to please help or guide me for how can i retrieve those
>>>>>>> messages (conversation) to the chat box user respectively.
>>>>>>> Many many thanks in advance and waiting to here from you.
>>>>>>>
>>>>>>>  Regards,
>>>>>>> Adil Malik
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Adil Malik
>>>>> Jr. Web App Developer
>>>>> Smonte (Pvt.) Limited, Pakistan
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> Adil Malik
>>> Jr. Web App Developer
>>> Smonte (Pvt.) Limited, Pakistan
>>>
>>
>>
>
>
> --
> Regards,
> Adil Malik
> Jr. Web App Developer
> Smonte (Pvt.) Limited, Pakistan
>



-- 
Regards,
Adil Malik
Jr. Web App Developer
Smonte (Pvt.) Limited, Pakistan

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
Jc Brand
Date:
2014-06-14 @ 20:10
Hi Adil

If you don't have a components folder and don't know why you don't have it,
then you've clearly not read the documentation:

https://conversejs.org/docs/html/index.html#development


On Fri, Jun 13, 2014 at 08:14:31PM +0500, Adil Malik wrote:
>    Hello,
> 
>    Sorry I'm disturbing you again again. I've to create folder inside
>    components folder and there is no folder like this. Can you please tell
>    where this folder is exactly. I'm very thankful for your assistance
> 
>    On Fri, Jun 13, 2014 at 2:42 PM, Adil Malik <[1]adil.z@smonte.com> wrote:
> 
>      Alright thank you so mthuch for your help.:)
>      Let me follow the steps and do accordingly and if there is any issue
>      i'll reply
>      God Bless you Jitendara!
> 
>      On Fri, Jun 13, 2014 at 1:29 PM, jitu@ideas2it
>      <[2]jitendara@ideas2it.com> wrote:
> 
>        Hope this is not available in converse.js, And converse.js is the best
>        coding standard i hope so and easily any one can get the flow ,  but
>        you can implement according to your requirement.
>        Create one Folder inside componenets named as strophe.archive and
>        inside strophe.archive.js file create and do below :
>        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...
> 
>        On Fri, Jun 13, 2014 at 1:23 PM, Adil Malik <[3]adil.z@smonte.com>
>        wrote:
> 
>          Yes I'm using AMD version and i have downloaded the code for
>          strophe.archive.js
>          Please guide to proceed it further. Thank you:)
> 
>          On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it
>          <[4]jitendara@ideas2it.com> wrote:
> 
>            Can i know which version of converse you are using non_amd version
>            or amd version according to that i can tell where you have to put
>            ...
>            You can put get the strophe.archive.js from
>            
here [5]https://github.com/metajack/strophejs-plugins/tree/master/archive
>            And you want to include the converse into your components
>            directory and if you are using non_amd version then you can
>            include your non_amd.html otherwise index.html you have to include
>            and main.js also you have to include the path then make a query
>            like above i give..
>            Hope it will be helpfull to you ...
> 
>            On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik
>            <[6]adil.z@smonte.com> wrote:
> 
>              Hi,
>              Thank you so much for giving solution:)
>              But I'm having hard to find and implement it, can you please
>              guide that:
>              Where(in which file) do i have to put the function and how to
>              include strophe.archive.js in my converse.js
>              God Bless You:)
> 
>              On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it
>              <[7]jitendara@ideas2it.com> wrote:
> 
>                Hi Adil Malik,
>                   Here i got the history by like this you can make use , Hope
>                it was helpfull to you ....
>                converse.connection.archive.listCollections(contactId, rsm,
>                function (collections, responseRsm)  {
>                      //Here you get the collection of messages
>                });
>                But for that you have to include strophe.archive.js in your
>                converse.... Be Happy :)
> 
>                On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik
>                <[8]adil.z@smonte.com> wrote:
> 
>                  Dear Sir,
> 
>                  How are you, hope you are fine. I'm using converse.js for my
>                  website with  xmpp server. Converse.js is really awesome
>                  that is offering a number of great features.
>                  I have enabled the user messages to save on server so we can
>                  keep chat history. The messages are being saved on server
>                  while chat but the issue is when we log out from website and
>                  log in again then all messages (conversation) are removed
>                  from the chat box.
>                  I need you to please help or guide me for how can i retrieve
>                  those messages (conversation) to the chat box user
>                  respectively.
>                  Many many thanks in advance and waiting to here from you.
>                   
>                  Regards,
>                  Adil Malik
> 
>              --
>              Regards,
>              Adil Malik 
>              Jr. Web App Developer
>              Smonte (Pvt.) Limited, Pakistan
> 
>          --
>          Regards,
>          Adil Malik 
>          Jr. Web App Developer
>          Smonte (Pvt.) Limited, Pakistan
> 
>      --
>      Regards,
>      Adil Malik 
>      Jr. Web App Developer
>      Smonte (Pvt.) Limited, Pakistan
> 
>    --
>    Regards,
>    Adil Malik 
>    Jr. Web App Developer
>    Smonte (Pvt.) Limited, Pakistan
> 
> References
> 
>    Visible links
>    1. mailto:adil.z@smonte.com
>    2. mailto:jitendara@ideas2it.com
>    3. mailto:adil.z@smonte.com
>    4. mailto:jitendara@ideas2it.com
>    5. https://github.com/metajack/strophejs-plugins/tree/master/archive
>    6. mailto:adil.z@smonte.com
>    7. mailto:jitendara@ideas2it.com
>    8. mailto:adil.z@smonte.com

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
jitu@ideas2it
Date:
2014-06-15 @ 06:24
Nope JC He need to include archive facilities to converse so i assist to
add a folder inside components as strophe.archive and add that file....

HI adil , you have to add folder named as strophe.archive and add that
archive file inside that folder and give that relative path to main.js file
then hope that query will make you get the history...




On Sun, Jun 15, 2014 at 1:40 AM, JC Brand <lists@opkode.com> wrote:

> Hi Adil
>
> If you don't have a components folder and don't know why you don't have it,
> then you've clearly not read the documentation:
>
> https://conversejs.org/docs/html/index.html#development
>
>
> On Fri, Jun 13, 2014 at 08:14:31PM +0500, Adil Malik wrote:
> >    Hello,
> >
> >    Sorry I'm disturbing you again again. I've to create folder inside
> >    components folder and there is no folder like this. Can you please
> tell
> >    where this folder is exactly. I'm very thankful for your assistance
> >
> >    On Fri, Jun 13, 2014 at 2:42 PM, Adil Malik <[1]adil.z@smonte.com>
> wrote:
> >
> >      Alright thank you so mthuch for your help.:)
> >      Let me follow the steps and do accordingly and if there is any issue
> >      i'll reply
> >      God Bless you Jitendara!
> >
> >      On Fri, Jun 13, 2014 at 1:29 PM, jitu@ideas2it
> >      <[2]jitendara@ideas2it.com> wrote:
> >
> >        Hope this is not available in converse.js, And converse.js is the
> best
> >        coding standard i hope so and easily any one can get the flow ,
>  but
> >        you can implement according to your requirement.
> >        Create one Folder inside componenets named as strophe.archive and
> >        inside strophe.archive.js file create and do below :
> >        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...
> >
> >        On Fri, Jun 13, 2014 at 1:23 PM, Adil Malik <[3]adil.z@smonte.com
> >
> >        wrote:
> >
> >          Yes I'm using AMD version and i have downloaded the code for
> >          strophe.archive.js
> >          Please guide to proceed it further. Thank you:)
> >
> >          On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it
> >          <[4]jitendara@ideas2it.com> wrote:
> >
> >            Can i know which version of converse you are using non_amd
> version
> >            or amd version according to that i can tell where you have to
> put
> >            ...
> >            You can put get the strophe.archive.js from
> >            here [5]
> https://github.com/metajack/strophejs-plugins/tree/master/archive
> >            And you want to include the converse into your components
> >            directory and if you are using non_amd version then you can
> >            include your non_amd.html otherwise index.html you have to
> include
> >            and main.js also you have to include the path then make a
> query
> >            like above i give..
> >            Hope it will be helpfull to you ...
> >
> >            On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik
> >            <[6]adil.z@smonte.com> wrote:
> >
> >              Hi,
> >              Thank you so much for giving solution:)
> >              But I'm having hard to find and implement it, can you please
> >              guide that:
> >              Where(in which file) do i have to put the function and how
> to
> >              include strophe.archive.js in my converse.js
> >              God Bless You:)
> >
> >              On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it
> >              <[7]jitendara@ideas2it.com> wrote:
> >
> >                Hi Adil Malik,
> >                   Here i got the history by like this you can make use ,
> Hope
> >                it was helpfull to you ....
> >                converse.connection.archive.listCollections(contactId,
> rsm,
> >                function (collections, responseRsm)  {
> >                      //Here you get the collection of messages
> >                });
> >                But for that you have to include strophe.archive.js in
> your
> >                converse.... Be Happy :)
> >
> >                On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik
> >                <[8]adil.z@smonte.com> wrote:
> >
> >                  Dear Sir,
> >
> >                  How are you, hope you are fine. I'm using converse.js
> for my
> >                  website with  xmpp server. Converse.js is really awesome
> >                  that is offering a number of great features.
> >                  I have enabled the user messages to save on server so
> we can
> >                  keep chat history. The messages are being saved on
> server
> >                  while chat but the issue is when we log out from
> website and
> >                  log in again then all messages (conversation) are
> removed
> >                  from the chat box.
> >                  I need you to please help or guide me for how can i
> retrieve
> >                  those messages (conversation) to the chat box user
> >                  respectively.
> >                  Many many thanks in advance and waiting to here from
> you.
> >
> >                  Regards,
> >                  Adil Malik
> >
> >              --
> >              Regards,
> >              Adil Malik
> >              Jr. Web App Developer
> >              Smonte (Pvt.) Limited, Pakistan
> >
> >          --
> >          Regards,
> >          Adil Malik
> >          Jr. Web App Developer
> >          Smonte (Pvt.) Limited, Pakistan
> >
> >      --
> >      Regards,
> >      Adil Malik
> >      Jr. Web App Developer
> >      Smonte (Pvt.) Limited, Pakistan
> >
> >    --
> >    Regards,
> >    Adil Malik
> >    Jr. Web App Developer
> >    Smonte (Pvt.) Limited, Pakistan
> >
> > References
> >
> >    Visible links
> >    1. mailto:adil.z@smonte.com
> >    2. mailto:jitendara@ideas2it.com
> >    3. mailto:adil.z@smonte.com
> >    4. mailto:jitendara@ideas2it.com
> >    5. https://github.com/metajack/strophejs-plugins/tree/master/archive
> >    6. mailto:adil.z@smonte.com
> >    7. mailto:jitendara@ideas2it.com
> >    8. mailto:adil.z@smonte.com
>

Re: [conversejs] Retrieve Chat Messages from xmpp

From:
Jc Brand
Date:
2014-06-15 @ 21:10
On Sun, Jun 15, 2014 at 11:54:31AM +0530, jitu@ideas2it wrote:
>    Nope JC He need to include archive facilities to converse so i assist to
>    add a folder inside components as strophe.archive and add that file....

I read the whole thread and understand what's going on.
 
Let's see again what he wrote:

>    >    I've to create folder inside components folder and there is no 
folder like this.
>    >    Can you please tell where this folder is exactly.

Looks pretty clear to me that he doesn't have the components folder and 
doesn't know why.

In any case, I appreciate you making the effort to explain to him the 
steps required.
Thanks for doing that.

Converse.js should really have a plugin infrastructure, so that tasks like this
could be standardized and done without having to touch the core code.

JC

>    HI adil , you have to add folder named as strophe.archive and add that
>    archive file inside that folder and give that relative path to main.js
>    file then hope that query will make you get the history...
> 
>    On Sun, Jun 15, 2014 at 1:40 AM, JC Brand <[1]lists@opkode.com> wrote:
> 
>      Hi Adil
> 
>      If you don't have a components folder and don't know why you don't have
>      it,
>      then you've clearly not read the documentation:
> 
>      [2]https://conversejs.org/docs/html/index.html#development
> 
>      On Fri, Jun 13, 2014 at 08:14:31PM +0500, Adil Malik wrote:
>      >    Hello,
>      >
>      >    Sorry I'm disturbing you again again. I've to create folder inside
>      >    components folder and there is no folder like this. Can you please
>      tell
>      >    where this folder is exactly. I'm very thankful for your assistance
>      >
>      >    On Fri, Jun 13, 2014 at 2:42 PM, Adil Malik
>      <[1][3]adil.z@smonte.com> wrote:
>      >
>      >      Alright thank you so mthuch for your help.:)
>      >      Let me follow the steps and do accordingly and if there is any
>      issue
>      >      i'll reply
>      >      God Bless you Jitendara!
>      >
>      >      On Fri, Jun 13, 2014 at 1:29 PM, jitu@ideas2it
>      >      <[2][4]jitendara@ideas2it.com> wrote:
>      >
>      >        Hope this is not available in converse.js, And converse.js is
>      the best
>      >        coding standard i hope so and easily any one can get the flow ,
>       but
>      >        you can implement according to your requirement.
>      >        Create one Folder inside componenets named as strophe.archive
>      and
>      >        inside strophe.archive.js file create and do below :
>      >        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...
>      >
>      >        On Fri, Jun 13, 2014 at 1:23 PM, Adil Malik
>      <[3][5]adil.z@smonte.com>
>      >        wrote:
>      >
>      >          Yes I'm using AMD version and i have downloaded the code for
>      >          strophe.archive.js
>      >          Please guide to proceed it further. Thank you:)
>      >
>      >          On Fri, Jun 13, 2014 at 12:05 PM, jitu@ideas2it
>      >          <[4][6]jitendara@ideas2it.com> wrote:
>      >
>      >            Can i know which version of converse you are using non_amd
>      version
>      >            or amd version according to that i can tell where you have
>      to put
>      >            ...
>      >            You can put get the strophe.archive.js from
>      >          
>      
 here [5][7]https://github.com/metajack/strophejs-plugins/tree/master/archive
>      >            And you want to include the converse into your components
>      >            directory and if you are using non_amd version then you can
>      >            include your non_amd.html otherwise index.html you have to
>      include
>      >            and main.js also you have to include the path then make a
>      query
>      >            like above i give..
>      >            Hope it will be helpfull to you ...
>      >
>      >            On Fri, Jun 13, 2014 at 12:19 PM, Adil Malik
>      >            <[6][8]adil.z@smonte.com> wrote:
>      >
>      >              Hi,
>      >              Thank you so much for giving solution:)
>      >              But I'm having hard to find and implement it, can you
>      please
>      >              guide that:
>      >              Where(in which file) do i have to put the function and
>      how to
>      >              include strophe.archive.js in my converse.js
>      >              God Bless You:)
>      >
>      >              On Fri, Jun 13, 2014 at 10:59 AM, jitu@ideas2it
>      >              <[7][9]jitendara@ideas2it.com> wrote:
>      >
>      >                Hi Adil Malik,
>      >                   Here i got the history by like this you can make use
>      , Hope
>      >                it was helpfull to you ....
>      >                converse.connection.archive.listCollections(contactId,
>      rsm,
>      >                function (collections, responseRsm)  {
>      >                      //Here you get the collection of messages
>      >                });
>      >                But for that you have to include strophe.archive.js in
>      your
>      >                converse.... Be Happy :)
>      >
>      >                On Fri, Jun 13, 2014 at 11:00 AM, Adil Malik
>      >                <[8][10]adil.z@smonte.com> wrote:
>      >
>      >                  Dear Sir,
>      >
>      >                  How are you, hope you are fine. I'm using converse.js
>      for my
>      >                  website with  xmpp server. Converse.js is really
>      awesome
>      >                  that is offering a number of great features.
>      >                  I have enabled the user messages to save on server so
>      we can
>      >                  keep chat history. The messages are being saved on
>      server
>      >                  while chat but the issue is when we log out from
>      website and
>      >                  log in again then all messages (conversation) are
>      removed
>      >                  from the chat box.
>      >                  I need you to please help or guide me for how can i
>      retrieve
>      >                  those messages (conversation) to the chat box user
>      >                  respectively.
>      >                  Many many thanks in advance and waiting to here from
>      you.
>      >                   
>      >                  Regards,
>      >                  Adil Malik
>      >
>      >              --
>      >              Regards,
>      >              Adil Malik 
>      >              Jr. Web App Developer
>      >              Smonte (Pvt.) Limited, Pakistan
>      >
>      >          --
>      >          Regards,
>      >          Adil Malik 
>      >          Jr. Web App Developer
>      >          Smonte (Pvt.) Limited, Pakistan
>      >
>      >      --
>      >      Regards,
>      >      Adil Malik 
>      >      Jr. Web App Developer
>      >      Smonte (Pvt.) Limited, Pakistan
>      >
>      >    --
>      >    Regards,
>      >    Adil Malik 
>      >    Jr. Web App Developer
>      >    Smonte (Pvt.) Limited, Pakistan
>      >
>      > References
>      >
>      >    Visible links
>      >    1. mailto:[11]adil.z@smonte.com
>      >    2. mailto:[12]jitendara@ideas2it.com
>      >    3. mailto:[13]adil.z@smonte.com
>      >    4. mailto:[14]jitendara@ideas2it.com
>      >    5.
>      [15]https://github.com/metajack/strophejs-plugins/tree/master/archive
>      >    6. mailto:[16]adil.z@smonte.com
>      >    7. mailto:[17]jitendara@ideas2it.com
>      >    8. mailto:[18]adil.z@smonte.com
> 
> References
> 
>    Visible links
>    1. mailto:lists@opkode.com
>    2. https://conversejs.org/docs/html/index.html#development
>    3. mailto:adil.z@smonte.com
>    4. mailto:jitendara@ideas2it.com
>    5. mailto:adil.z@smonte.com
>    6. mailto:jitendara@ideas2it.com
>    7. https://github.com/metajack/strophejs-plugins/tree/master/archive
>    8. mailto:adil.z@smonte.com
>    9. mailto:jitendara@ideas2it.com
>   10. mailto:adil.z@smonte.com
>   11. mailto:adil.z@smonte.com
>   12. mailto:jitendara@ideas2it.com
>   13. mailto:adil.z@smonte.com
>   14. mailto:jitendara@ideas2it.com
>   15. https://github.com/metajack/strophejs-plugins/tree/master/archive
>   16. mailto:adil.z@smonte.com
>   17. mailto:jitendara@ideas2it.com
>   18. mailto:adil.z@smonte.com