After upgrading the ecard module yesterday I found that I no longer get the ecard form on content types set as ecards. I'm using Contemplate on the ecard node output--there are no longer any ecard form body variables of any type. Disabling the template for the ecard content type doesn't have any affect on the forms. They're still missing.

I've uninstalled the ecard module and reinstalled using a clean copy. Of course I've run update.php, too. Any ideas? Ecard 6.x-1.1 was working fine.

Comments

moonpowered’s picture

I have the same problem!

kars-t’s picture

Assigned: Unassigned » kars-t

Hi
thank you for using the module :)

Please check your setting and resubmit the pages. And make sure the the roles have the rights to send and view ecards.
I will look into the code again but my testing was successfull the time I made the release.

kars-t’s picture

Status: Active » Patch (to be ported)

ASAP the sites functions correctly I try to make a new release.

If you can you can change this function:


/**
 * Implementation of hook_nodeapi().
 */

function ecard_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'view':
      $types_to_ecard = variable_get('ecard_nodetypes', array());
      if (!in_array($node->type, $types_to_ecard)) {
        break;
      }
    // Add our form as a content item.
    if ($teaser == FALSE) {
      //no form if ecard view is set
      if ($node->content['ecard_view'] && variable_get('ecard_hide_send_view', 0)) {
        return;
      }
      $node->content['ecard_form'] = array(
        '#value' => drupal_get_form('ecard_form', $node),
        '#weight' => 100,
      );

    }
  }
}

kars-t’s picture

Status: Patch (to be ported) » Fixed

Seems to work.

Fixed in 6.x-1.5

andrewtf’s picture

Definitely works. Thanks!

Status: Fixed » Closed (fixed)

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