Jump to content

Problem with newsletter block


WODP

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>
Link to comment
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>
Link to comment
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 ?

Link to comment
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?

Link to comment
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

Link to comment
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.

Link to comment
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'}
Link to comment
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.

Link to comment
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
×
×
  • Create New...