I really like this module, unfortunately it behaves a little bit strange on my page. The message is shown for a half second or so over the content (Drupal's usual place for messages) than it disappears and the popup is showing up.
I really like this module, unfortunately it behaves a little bit strange on my page. The message is shown for a half second or so over the content (Drupal's usual place for messages) than it disappears and the popup is showing up.
Comments
Comment #1
mohammed j. razemWell, ya it's because the default $messages in drupal are being printed in you page.tpl.php.
At the mean time this module prints it's messages in the $closure region in page.tpl.php. And the JS does the job of showing better messages, an hiding you default messages!
That's because it's meant to degrade if JS is not enabled! So it doesn't alter your default $messages
Solution: You can delete the $messages variable in your page.tpl.php (but in this case, browser with JS disabled won't see you messages.)
I will try to work out a better solution for this...
Comment #2
Noddy commentedMaybe a solution:
In page.tpl.php I've wrapped this line into
<noscript>tags:<?php if ($show_messages && $messages): print $messages; endif; ?>Now $message is shown over the content only if javascript is turned off. If javascript is turned on, Better Messages is doing the job . Works pretty nice for me and I couldn't find any side effects.
Comment #3
mohammed j. razemHi,
I have just committed a new release, with a fix for this bug and lot of modifications.
Thanks for reminding me about :)