I want to display a Shout Form for Heartbeat. Is there a PHP Snippet I need? I've tried the documentation and I've searched Drupal.

Thanks in advance.

Comments

Stalski’s picture

Assigned: Unassigned » Stalski
Status: Active » Fixed

The shout form block is back and will be available in the dev release and the next planned official release.

DarkLight’s picture

Awesome. Thank you. :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jaochoo’s picture

Version: 6.x-4.3 » 6.x-4.x-dev
Status: Closed (fixed) » Active

I have the following problem: I placed the Shout block in my content-top region and set the permission for "authenticated user" to allow "make shout." The Shout block appears, displaying a "Make Shout" headline and a textbox with a gray "What are you doing?" inside. However, when I click inside the textbox, it turns into a different textbox (those you know from Drupal with a JQuery-controlled slider to adjust its height) without displaying any button to submit it. I can write into the box, but I cannot submit it, so the shout actually will never be set.

I am using the lates dev-version and Firefox.

Stalski’s picture

This is impossible. There's no code within heartbeat that has that funtionality.

Could it be that you enabled the example module and the downloadable heartbeat_implementations module? As i mentioned several times before, this is NOT for production usage!!!!
The code that does what you describe, is within this module.

$(document).ready(function() {

  $('.block-shouts .resizable-textarea').removeClass('resizable-textarea').addClass('resizable-testarea');
  
  $('.block-shouts textarea.resizable').bind('focus', function() {
    this.innerHTML = '';
    $('.block-shouts .resizable-testarea').removeClass('resizable-testarea').addClass('resizable-textarea');
    $(this).parents('.block-shouts').find('.shout-submit').show('fast');
    
  });
});

The javascript code is here. What you are missing is the custom css code ... It's only to show you what you can achieve, not a production module.

Stalski’s picture

Status: Active » Closed (fixed)

Please don't reopen tickets. I prefer new issues since all subscribers to this issue receive emails.
And also please don't submit issues here that have nothing to do with the module.

thx in advance

Stalski