Conversation Block as Bulletin board

Permalink
For Concrete5.7.5.9

I'm trying to create a message/bulletin board with the conversation block and I would like to know how to add some extra features and design to this block.

Some questions:
---------------------
1 - How to add something like equalheight or masonry after the load/ajax event of this block. Especially after a comment is added or deleted.
---
Answer
---
Added masonry init to the end of the display file override. application/elements/conversation/display.php

Basically it came down to this (with the proper html and css for the layout)
application/elements/conversation/display.php
<script>
   $(document).ready(function() {
      var $grid = $('.ccm-conversation-messages').masonry({
         itemSelector: 'div.message',
         columnWidth: 'div.message-sizer',
         percentPosition: true
      });
       $(document).ajaxComplete(function() {
          $grid.masonry('reloadItems')
          $grid.masonry('layout');
       });
   });
</script>

---------------------

2 - How to add extra fields to a message for example: subject/topic/tags?

---------------------
3 - Create a list of the latest comments (as a block), I tried
https://www.concrete5.org/community/forums/5-7-discussion/conversati... but getting an error on the sql syntax.
---
Answer
---
List of latest conversations example works with some code changes. See reply on OP.
---------------------
4 - How to clear the inputs / textarea after posting?
---
Answer
---
Manage to solve it with this:
if(!$.trim($("#cnvMessageBody").val())) {
  $( ".ccm-conversation-message-form .redactor-editor p").replaceWith("<p>​</p>");
}

---------------------
It's complex because its hooking into core in al different places.

c5dragon
 
c5dragon replied on at Permalink Reply
c5dragon
[1] The only thing missing is a way to trigger some events after the conversation is deleted or added. [Updated]

[4] Even on the default conversation block the inputs are not cleared. Some [p] element with textarea content stays visible. [Updated]
c5dragon replied on at Permalink Best Answer Reply 1 Attachment
c5dragon
The Final Result [Attached]