Author Topic: File Transfer From Chat  (Read 15290 times)

0 Members and 1 Guest are viewing this topic.

icuser

  • Jr. Member
  • **
  • Posts: 1
File Transfer From Chat
« on: February 23, 2015, 03:59:04 PM »
Is there any plan to incorporate the ability to transfer files to a chat participant?

Dmitriy Simushev

  • Native
  • *****
  • Posts: 345
Re: File Transfer From Chat
« Reply #1 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.

m19830507

  • Jr. Member
  • **
  • Posts: 1
Re: File Transfer From Chat
« Reply #2 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

lisawdegregorio

  • Jr. Member
  • **
  • Posts: 1
Re: File Transfer From Chat
« Reply #3 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?

Dmitriy Simushev

  • Native
  • *****
  • Posts: 345
Re: File Transfer From Chat
« Reply #4 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/default/collections/controls.js and 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
  - For sending messages see https://github.com/Mibew/mibew/blob/master/src/mibew/libs/classes/Mibew/Thread.php#L893

That's all I can help you.