View Single Post
  #1  
Old 12-02-2008, 07:18 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Automatic addition to a newslist all new customer

Automatic addition to a newslist all new customer (hide the check box on signup).

Replace your "skin1/modules/News_Management/register_newslists.tpl" with this code:

PHP Code:
{if $login ne ""}
{if 
$active_modules.News_Management and $newslists}
{if 
$hide_header eq ""}
<
tr>
<
td height="20" colspan="3"><b>{$lng.lbl_newsletter}</b><hr size="1" noshade="noshade" /></td>
</
tr>
{/if}

<
tr>
<
td colspan="3">{$lng.lbl_newsletter_signup_text}</td>
</
tr>

<
tr>
<
td colspan="2">&nbsp;</td>
<
td>
<
table border="0">

{
section name=idx loop=$newslists}
{
assign var="listid" value=$newslists[idx].listid}
<
tr>
<
td><input type="checkbox" name="subscription[{$listid}]" {if $subscription[$listidne ""}checked="checked"{/if} /></td>
<
td>{$newslists[idx].name}</td>
</
tr>
<
tr>
<
td>&nbsp;</td>
<
td><i>{$newslists[idx].descr}</i></td>
</
tr>
{/
section}

</
table>
</
td>
</
tr>

{/if}

{else}
<
tr>
<
td colspan="3">
<
div style="display:none;">
    {
section name=idx loop=$newslists}
        {
assign var="listid" value=$newslists[idx].listid}
        <
input type="checkbox"  name="subscription[{$listid}]" checked="checked" />
    {/
section}
</
div>
</
td>
</
tr>
{/if} 
Reply With Quote