Mibew Messenger Community
General => General Discussion => Topic started 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?
-
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.
-
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
-
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?
-
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.