Ok, this is such a cool/easy idea, I just had to add it. Your will need a copy of 6.x-dev to test it out, or the latest from the DRUPAL-6--1 branch in CVS. Then just wrap the print $message in your page.tpl.php with
am i blind? i can't find a popups-6.x-1.x-dev.tar.gz file. Normally i just search at http://ftp.drupal.org/files/projects/ for the latest dev.
Do i miss something?
Hi starbow - works really well, thanks! Should I mark the issue as closed? Or is it good to leave as fixed so people can see this cool new feature? I was using Lightbox2 for this functionality, but the popups api does a much better job with this :)
I can't seem to have the above solution done. I'm using popups for 2 forms:
1. contact us webform
2. tellafriend form
However, when a user submits a form without filling the required fields, red border is styled around each empty field, but no error messages are shown.
We also need error messages in our popup, any ideas? I tried adding that to our theme to no avail, normally it just says print $messages but I put this instead:
Did you use the "Scan all pages for popup links" setting on module config page?
Also, are you using the 1.x version or 2.x? It may not have made it into the new version...didn't actually end up needing this so I can't verify it still works.
This was originally implemented in 6.x-1.1-rc2 where I had it working. Maybe the maintainer can offer some info on whether it is working in the latest alpha6 release...
You could try uninstalling the module and downgrading the the 1.1 release. If it's working, you'll know where the problem is. If it's not, it's probably your theme call...
Thanks for trying it is most appreciated! We have flushed the caches for sure. So if I output the drupal messages in _init I don't see anything at all even when there are errors from form submitting in the popup. I upgraded to 6.x-2.0-alpha6 to no avail... As for page.tpl.php, what code should I have in there exactly? I don't want error messages to appear IN the popup, I want error messages from forms in the pop-up to appear in the popup. Thanks again for your help!
Comments
Comment #1
starbow commentedOk, this is such a cool/easy idea, I just had to add it. Your will need a copy of 6.x-dev to test it out, or the latest from the DRUPAL-6--1 branch in CVS. Then just wrap the print $message in your page.tpl.php with
Let me know what you think.
Comment #2
alexkessler commentedam i blind? i can't find a popups-6.x-1.x-dev.tar.gz file. Normally i just search at http://ftp.drupal.org/files/projects/ for the latest dev.
Do i miss something?
Comment #3
starbow commentedHmm, looks like the system is no longer kicking out dev's. You can get the new popup.js over at
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/popups/popu...
Comment #4
gausarts commentedForgive me, but I can't see the with code. Would you write that again, please. Thanks
Comment #5
starbow commentedhttp://tinyurl.com/5jfh6v
Comment #6
starbow commentedThis is now included in rc4.
Wrap your messages in
in your page.tpl.php.
Then use the "Scan all pages for popup links" setting, and it should just work.
Comment #7
scottrigbyHi starbow - works really well, thanks! Should I mark the issue as closed? Or is it good to leave as fixed so people can see this cool new feature? I was using Lightbox2 for this functionality, but the popups api does a much better job with this :)
Comment #8
starbow commentedGreat. Just leave it as fixed. It will auto-close if no one else touches it for two weeks.
cheers.
Comment #10
mpaler commentedthis should be coded like this:
or else you'll get an empty popup on every page...
Comment #11
Poieo commentedThis works great, except its not picking up the selected skin for the site message popups.
Anyone seeing the same thing?
Comment #12
operations commentedI can't seem to have the above solution done. I'm using popups for 2 forms:
1. contact us webform
2. tellafriend form
However, when a user submits a form without filling the required fields, red border is styled around each empty field, but no error messages are shown.
Thanks,
Comment #13
drubage commentedWe also need error messages in our popup, any ideas? I tried adding that to our theme to no avail, normally it just says print $messages but I put this instead:
This pop-up is a custom page defined in hook_menu by our module.
Comment #14
drubage commentedAnyone know how to get the drupal error messages to show in the popups dialog?
Comment #15
Poieo commentedDid you use the "Scan all pages for popup links" setting on module config page?
Also, are you using the 1.x version or 2.x? It may not have made it into the new version...didn't actually end up needing this so I can't verify it still works.
Comment #16
drubage commentedYes we have enabled "Scan all pages for popup links.". We are using 6.x-2.0-alpha6.
Comment #17
Poieo commentedThis was originally implemented in 6.x-1.1-rc2 where I had it working. Maybe the maintainer can offer some info on whether it is working in the latest alpha6 release...
You could try uninstalling the module and downgrading the the 1.1 release. If it's working, you'll know where the problem is. If it's not, it's probably your theme call...
Comment #18
Poieo commentedJust tested the 2.0 release and it is working just fine. Must have an issue with your theme call...
Feel free to post your page.tpl.php code. Also, be sure you've flushed your cache tables since you installed the module.
Comment #19
drubage commentedThanks for trying it is most appreciated! We have flushed the caches for sure. So if I output the drupal messages in _init I don't see anything at all even when there are errors from form submitting in the popup. I upgraded to 6.x-2.0-alpha6 to no avail... As for page.tpl.php, what code should I have in there exactly? I don't want error messages to appear IN the popup, I want error messages from forms in the pop-up to appear in the popup. Thanks again for your help!