FYI: I noticed a small problem with this otherwise excellent module. When I view a node with file attachments (private or public) the file attachments table appears at the bottom of the node when I'm logged in but at the top when I'm anonymous.

I fixed it by adding a new line in the `private_upload_nodeapi` function

      // Always rebuild the files table and overwrite default.
      $node->content['files']['#value'] = theme('private_upload_attachments', $node->files);
      /********************
      **new line here
      ********************/
      $node->content['files']['#weight'] = 50;
      break;

Basically, I explicitly set the weight of the table to something high (like in the core `upload` module) to make sure it behaved like the core module.

Comments

starbow’s picture

Thanks for the tip. I will make sure this gets into the next roll.

starbow’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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