Difference between revisions of "Nats common mailer examples"
From TMM Wiki
Jump to navigationJump to searchLine 22: | Line 22: | ||
<b>5 Latest FHG for {$sites[1]}:</b> | <b>5 Latest FHG for {$sites[1]}:</b> | ||
{display_adtools data_only=1 order="published_date DESC" count=5 category=2 typeid=2 siteid=1} | {display_adtools data_only=1 order="published_date DESC" count=5 category=2 typeid=2 siteid=1} | ||
+ | |||
{foreach from=$programs key=program_id item=program_name} | {foreach from=$programs key=program_id item=program_name} | ||
<br /><br /> Program: <b>{$program_name}</b>: | <br /><br /> Program: <b>{$program_name}</b>: | ||
− | {foreach from=$adtools key=adtool_id item=adtool_data} | + | {foreach from=$adtools key=adtool_id item=adtool_data} |
− | {nats_encode programid=$programid siteid=1 userid=$toid adtoolid=$adtool_id url=1 gallery_url=$adtool_data.url}<br /> | + | {nats_encode programid=$programid siteid=1 userid=$toid adtoolid=$adtool_id url=1 gallery_url=$adtool_data.url}<br /> |
− | + | <a href="{$encoded}">{$adtool_data.name}</a><br /> | |
− | + | <b>{$adtool_data.description}</b> | |
− | {/foreach} | + | {/foreach} |
{/foreach} | {/foreach} | ||
</pre> | </pre> |
Revision as of 09:18, 1 October 2009
This page is here to give you a list of common mailers that are done through NATS.
NOTE: Even when copying these examples you should ALWAYS run test e-mails to make sure your e-mail will be sent out properly.
Latest FHG
Template Functions Used
Nats_encode
Nats_display_adtools
list_sites
list_programs
Example Code
{list_sites} {list_programs} <b>5 Latest FHG for {$sites[1]}:</b> {display_adtools data_only=1 order="published_date DESC" count=5 category=2 typeid=2 siteid=1} {foreach from=$programs key=program_id item=program_name} <br /><br /> Program: <b>{$program_name}</b>: {foreach from=$adtools key=adtool_id item=adtool_data} {nats_encode programid=$programid siteid=1 userid=$toid adtoolid=$adtool_id url=1 gallery_url=$adtool_data.url}<br /> <a href="{$encoded}">{$adtool_data.name}</a><br /> <b>{$adtool_data.description}</b> {/foreach} {/foreach}