We need custom Bitrix component that will be included into ours that already exists (ours will be parent for this new one that need to be created).
This custom control is for writing custom messages/comments (with possible attachments and links) and it will display these messages as social media activity stream.
The behaviour is the same like existing "socialnetwork" components (existing rich editor for adding and existing activity feed listing control) and it will be best to use existing Bitrix components for this (i.e. seee /bitrix/components/bitrix/socialnetwork.log.ex). To see this functionality just add one Task and then write some comments - this is what we need.
These message are writen into existing "b_sonet_log" and "b_sonet_log_comment" tables. Permissions are in existing "b_sonet_log_right" table. When you add the new Bitrix task then the automatic message about the new task is written into "b_sonet_log" table and when you comment on this task it is written in "b_sonet_log_comment" table.
Every message will have appropriate ENTITY_TYPE_ID (to which parent object it belongs) and ENTITY_ID (ID of parent object).
Interaction will go like this:
1) User will write a message and maybe attach some files to it (or to link employees). This is the same functionality that Bitrix already have in native socialnetwork message editor control.
2) After message is added it will be displayed in social media feed just bellow the editor (like Bitrix have in socialnetwork control) and each message when it is clicked on "More..." menu will have all menu commands that Bitrix already have (View, Edit, Delete, Add to favourites...). When owner click on "Edit" then editor will appears just bellow the message to edit it (like Bitrix already have in Activity stream).
3) We need to make some messages visible only to certain employees (to be able to set permission who can see this message). If nothing is set then everybody see it (also visible in default activity stream on Dashboard). Some messages need to be private (and not to be seen in Dashboard Activity stream). If this can be solved with existing Bitrix functionality you need to teach us how to use it (restrict permissions). If this is not possible with existing Bitrix functionality then the user will see new option "Set permissions" in "More..." menu (at the bottom of every message there is this menu) and this will be shown only to owner or the parent object. There he will be able to choose employees (Bitrix users) which can see this message only. This new component gets from parent component PARENT_OWNER_ID, PARENT_ENTITY_TYPE_ID, PARENT_ENTITY_ID.
Sending you screenshot.