Jump to content

Problem with newsletter block


WODP
 Share

Recommended Posts

Hello.
I'm turning to you for help. I don't know what else to do.
In my site i have a newsletter integrated in footer:

{l s=[b]'Newsletter' mod='blocknewsletter'[/b]}

   {if $msg}

{$msg}
   {/if}
       <form action="{$base_dir}" method="post">

<input type="text" name="email" size="18" value="{if $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}">
          <input type="submit" value="Subscribe" class="button_small_cart" name="submitNewsletter" />

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





       </form>

Share this post


Link to post
Share on other sites

I have also tried modifying footer to this:



But if i remove Newsletter block from left side it's not working either...

{l s='Newsletter' mod='blocknewsletter'}

   {if $msg}

{$msg}
   {/if}
       <form action="{$base_dir}" method="post">

<input type="text" name="email" size="18" value="vaš email">
          <input type="submit" value="Subscribe" class="button_small_cart" name="submitNewsletter" />




Prijava
Odjava


               <input type="submit" value="ok" class="button_mini" name="submitNewsletter" />


       </form>

Share this post


Link to post
Share on other sites

Have you tried to add following code to blocknewsletter.php

    function hookFooter($params)
   {
       return $this->hookLeftColumn($params);
   }



and transplanting module to footer or did you just edit footer.tpl ?

Share this post


Link to post
Share on other sites

hello razaro,
thank you for your reply.

Would you be so kind and check my site Link
In theme there has already been modification as i was looking.

If i have on left side visible Newsletter (Prijava na obvestila) than footer version is working ok (both are). I don't know how to hide from left side and that footer would be still working.

What do you reccomend me?

Share this post


Link to post
Share on other sites

For n.2 it looks OK but that is just code that don't work because it is not connected to module block newsletter.
So try following, image is in attachment.
Backup footer.tpl and make changes as in picture.
Delete code in red and in that place move {$HOOK_FOOTER}.
In modules >> positions footer section make sure block newsletter comes before block various links.
That you need to change css for block newsletter ,maybe just some classes, so that block look like deleted code.
And it is some work but just compare styles and it should be OK.

26622_OSwDEvfspfbu80gqORoy_t

Share this post


Link to post
Share on other sites

Hello razaro,
after trying your suggestion, i got Newsletter block hooked on footer, but it wasn't looking ok.
Is it possible to set so that the newsletter already integrated in footer would work?

Thank you for your efforts, really appreciate it!
W.

Share this post


Link to post
Share on other sites

This is footer Newsletter:

    {l s='Newsletter' mod='blocknewsletter'}

   {if $msg}

{$msg}
   {/if}
       <form action="{$base_dir}" method="post">

<input type="text" name="email" size="18" value="{if $value}{$value}{else}{l s='your e-mail' 

mod='blocknewsletter'}{/if}">
          <input type="submit" value="Subscribe" class="button_small_cart" name="submitNewsletter" />

{l s='Subscribe' 

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

mod='blocknewsletter'}

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 1 month later...

Hello!
Perhaps it is a late answer but I did it in this way:

Copy the code for newsletter from the footer and insert it in and replace the excisting code in the blocknewsletter.tpl, change the hook footer as razaro mentioned before. It worked for me and I got the same design.

Share this post


Link to post
Share on other sites

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