Download & Extend

adding a login to the access denied message people get who can't immediately download private files

Project:Private Upload
Version:6.x-1.0-rc2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

i made a template called page-system-files-private.tpl.php to take the place of the access denied message when someone who isn't logged in clicks on a file title. However when they login, the file will download but the page won't re-direct to show that the person is in fact, logged in. Below is what i have so far. Is there a way to add in some kind of re-direct so that the user form isn't left being shown even though the person has been able to download the file?

Either that or is there someway to hide file titles that are marked as private via css to anonymous users?

<div class="content clear-block">
          <?php if (!$logged_in): ?>
          <?php echo"To access this additional content, you must be a member.
Please sign up. It's quick, it's free, it's easy!"
?>

          <?php print drupal_get_form("user_login") ?>
          <?php echo 'If you are not a member please sign up.'; ?>
          <?php print drupal_get_form('user_register'); ?>
         <?php else: ?>
      <?php print $content ?>
           <?php endif; ?>
  </div>

becky

nobody click here