Private Uploads and Popup modules updated

I have recently updated two of my favorite modules.

With some prodding and sponsorship from Initiatives of Change (www.iofc.org), I ported "Private Upload":http://drupal.org/project/private_upload to Drupal 6. It turns out there is even more need for this module in D6 than there was in Drupal 5, as D6 out-of-the box offers almost no protection for private files.

And I finally backported all the innovations for "Popup Modal Dialogs":http://drupal.org/project/popups back from the Drupal 7 patch I created to the D6 module. The biggest one is using HTTP headers instead of mangling the URL to request the JSON version of a page, which is invisible to most users, but simplified the code quite a bit. It is also prettier and easier to theme.

I am still no closer to getting the Popup patch into Drupal 7. My issue, "#193311: Ajax Popups in Drupal 7":http://drupal.org/node/193311 is still postponed waiting on "#145551: Enable loading and rendering into JSON, XML, etc":http://drupal.org/node/145551 which is still waiting for "#134478: Refactor page (and node) rendering":http://drupal.org/node/134478. My current hope is that Peter Wolanin's talk at DrupalCon "Page serving and rendering (XHTML/XML/JSON, etc.) - now and Drupal 7":http://szeged2008.drupalcon.org/program/sessions/page-serving-and-rendering-xhtmlxmljson-etc-now-and-drupal-7 will get things moving again.

Question about Modal Windows

Would this Popup Modal Dialogs work for a contact form? I'm attempting to a put my contact form in a modal window and submit via ajax, as seen here:
http://www.ericmmartin.com/simplemodal/

I can easily get it working in a non-drupal environment but with drupal, the buttons do nothing at all. I figured since you have done a lot of work with modal dialogs you may have a hint as to why the "form action" seems to be completely inactive. I'm not getting an JS errors. My markup looks like this:

<form action='download/' method='post'>
<input type='button' name='contact' value='Demo' class='demo' />
</form>

Is there something I need to do to make Drupal recognize my modal content? I'm sorry to bother you with such a silly question. I just figured since you seem like an expert on it that you might be able to recognize the problem right away. Please feel free to email me at: misscoffey@gmail.com if you have the time. Thank you.

Actually it is not a silly

Actually it is not a silly question, but Drupal form handling can get pretty complex. I suspect you don't have the correct form token, and Drupal's security layer is rejecting your form. You will need to read up on the FormAPI.
Or you could just use my module, which should work fine for the contact form.

popup form mod

I ran into this thread and i looked at those demos..neat stuff.
but you say you have a module that does something like the contact form..wow, there is a module that will do that for D6 ?
Could you please tell the dummy's like me what the module name is, so i can get in put in...
I am at a loss with drupal, i am more of a html person(popup form,no problem).
I would like anonymous users to click a link for a popup contact form (to the node author or user name) that will leave the anonymous user on the same page after the form is submitted. I have the contact anonymous module installed and that makes things easier, but a pop up would be some real cool icing on that cake!!
Thanks for this thread,
dave

Same module

Use the Popups module (now called Popups API). Check the "Scan all pages" setting on the popups settings page. Create your link as

<?php
 
<a href="contact" class="popups-form">Contact Me</a>
?>

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.