Jump to content

Fancybox/Thickbox popup on newsletter subscribe/unsubscribe


cammo
 Share

Recommended Posts

I have set my newsletter block as a fixed height in my theme layout and don't want the error and success messages to appear below the block once the submit button is clicked.

I'd like to be able to utilise the inbuilt thickbox (or is it fancybox?) to display the error or success message in a simple modal popup so it doesn't mess with my layout.

<!-- Block Newsletter module-->

Sign up to our newsletter & receive 10% off your next online order
   <form action="{$link->getPageLink('index.php')}" method="post">
       <input class="email" type="text" name="email" size="18" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}">

{l s='Subscribe' mod='blocknewsletter'}
{l s='Unsubscribe' mod='blocknewsletter'}

       <input type="submit" value="ok" class="button_mini" name="submitNewsletter" />
   </form>
   {if isset($msg) && $msg}
{$msg}{/if}

<!-- /Block Newsletter module-->



Somehow when it determines which message to display in this bit:

{if isset($msg) && $msg}
{$msg}{/if}


I want it to show it in a modal popup?

Any ideas?

Share this post


Link to post
Share on other sites

  • 11 months later...
  • 7 months later...
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More