Mibew Messenger Community

General => General Discussion => Topic started by: icuser on February 23, 2015, 03:59:04 PM

Title: File Transfer From Chat
Post by: icuser on February 23, 2015, 03:59:04 PM
Is there any plan to incorporate the ability to transfer files to a chat participant?
Title: Re: File Transfer From Chat
Post by: Dmitriy Simushev on February 23, 2015, 10:16:55 PM
Such ability can be implemented as a plugin for Mibew 2.0 by one of third-party developers. It should not be included in the core.

The bad news are I cannot see any of third-party developers near here. If you are a developer we (developers of the core) could guide you how to create such plugin, but do not ask us to make it for you.
Title: Re: File Transfer From Chat
Post by: m19830507 on July 21, 2015, 10:07:34 AM
Such ability can be implemented as a plugin for Mibew 2.0 by one of third-party developers. It should not be included in the core.

The bad news are I cannot see any of third-party developers near here. If you are a developer we (developers of the core) could guide you how to create such plugin, but do not ask us to make it for you.

please guide me how to create such plugin
Title: Re: File Transfer From Chat
Post by: lisawdegregorio on July 21, 2015, 10:21:33 AM
Such ability can be implemented as a plugin for Mibew 2.0 by one of third-party developers. It should not be included in the core.

The bad news are I cannot see any of third-party developers near here. If you are a developer we (developers of the core) could guide you how to create such plugin, but do not ask us to make it for you.
Can you provide specific guidance?
Title: Re: File Transfer From Chat
Post by: Dmitriy Simushev on July 30, 2015, 10:01:34 AM
Well, here are some thoughts about such plugin.

First of all you have to create a button in the chat window for AJAX-like file uploading. Next you should define a route for processing uploaded files. After that a custom plugin message with file link should be sent to chat thread.

In details:
  - For AJAX-like files uploading search the Google.
  - For buttons in chat window check https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/chat/models/controls/history.js (https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/chat/models/controls/history.js), https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/default/collections/controls.js (https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/default/collections/controls.js) and https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/chat/modules/chat.js (https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/chat/modules/chat.js)
  - For custom routes see https://github.com/Mibew/first-message-plugin/blob/master/routing.yml (https://github.com/Mibew/first-message-plugin/blob/master/routing.yml)
  - For sending messages see https://github.com/Mibew/mibew/blob/master/src/mibew/libs/classes/Mibew/Thread.php#L893 (https://github.com/Mibew/mibew/blob/master/src/mibew/libs/classes/Mibew/Thread.php#L893)

That's all I can help you.