View Single Post
  #8  
Old 07-03-2009, 12:55 PM
 
mike5906 mike5906 is offline
 

Member
  
Join Date: Jun 2009
Posts: 18
 

Default Re: News letter box pre-ticked

Quote:
Originally Posted by swifty1
Thanks for that Vetrivel, i have added the checked="checked" in the code below after type="checkbox", this has worked but i am unsure as what to do with the rest of the code on the same line, do you have any sugestions.

Cheers Tony

<td><input type="checkbox" checked="checked" name="subscription[{$listid}]" {if $subscription[$listid] ne ""}checked="checked"{/if} /></td>
<td>{$newslists[idx].name}</td>

Actually, you're really hurting the user experience here. If you just want people who are registering to have the box preticked, but members to act correctly (so they can tell what they are subscribed to), you should do this:

{if not $login} checked="checked"{/if}

That way, during the registration process they are ticked, but when visiting their profile, only what they are really subscribed to is ticked.
__________________
Mike | X-Cart 4.2.1 | Ubuntu 64 Server
MurraySoft :: The Application Storeā• for DotNetNuke, SharePoint, Web Design Templates, X-Cart and more!
http://www.MurraySoft.com/
Reply With Quote