Advanced Development Solutions Home
Advanced Development Solutions Home
Advanced Development Solutions Home

Description / Features
Read Me First
Installation / Upgrade
Module Configuration
Template Layouts
FAQ
     

Tell a Friend Module Help for MIVA Merchant v5

Module Template Layouts Explained

This module automatically creates and configures an ADS_TAF Tell a Friend page template, Settings and Email templates, when it is first installed. This page contains module specific Original templates and comments that will assist you with making adjustments, to the actual template code. HTML and template scripting knowledge is required to make template modifications. If you do not have these skills it is recommended you contact ADS representative to get assistance with template design and customization.

ADS_TAF Tell a Friend Page Template:
(ADS Tell a Friend items and variables are shown and explained below in red.)

<html>
<head>
<title>&mvt:store:name;: Tell a Friend</title>
<base href="&mvt:global:basehref;">
<mvt:item name="head" />
</head>
<mvt:item name="body">
<mvt:item name="hdft" param="global_header" />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="left" valign="bottom" colspan=2 >
<mvt:item name="navbar" />
</td></tr>
<tr><td align="left" valign="bottom">
<mvt:item name="hdft" param="header" />
</td></tr>
<tr><td align="left" valign="top" bgcolor="&mvt:colors:ctgy_bg;">
<table border="0" cellpadding="10" cellspacing="0">
<tr><td align="left" valign="top" nowrap>
<mvt:item name="fonts" param="ctgy_font">
<mvt:item name="customerlink" />
<mvt:item name="affiliatelink" />
<mvt:item name="category_tree" />
</mvt:item>
</td></tr>
</table>
</td><td align="left" valign="top" width="80%">
<br>
<blockquote>
<mvt:if expr="NOT ISNULL g.ADS_PageCode"><mvt:comment>If Page Tiltle Exists</mvt:comment>
<mvt:item name="fonts" param="hdr_font">
<b>&mvte:global:ADS_PageName;</b><BR><mvt:comment>Display Page Tiltle </mvt:comment>
</mvt:item>
</mvt:if>
<mvt:if expr="g.ads_taf_submit"><mvt:comment>Check if Form is Submitted</mvt:comment>
<mvt:item name="ads-tellafriend" param="process" /><BR><mvt:comment>Required Module Item that processes the Requst</mvt:comment>
<mvt:if expr="l.settings:form_error"><mvt:comment>If Required Fields are Missing and Field Array</mvt:comment>
<mvt:foreach iterator="missing_field" array="form_error">
<FONT SIZE="2" COLOR="red" FACE="arial">&mvt:missing_field; is Required.</FONT><BR>
</mvt:foreach>
<mvt:elseif expr="l.settings:send_error"><mvt:comment>If Email Errors an Error Array</mvt:comment>
<mvt:foreach iterator="unable2send" array="send_error">
<FONT SIZE="2" COLOR="red" FACE="arial">&mvt:unable2send;<BR>Unable to send request. Please contact the webmaster with details about this error.</FONT><BR>
</mvt:foreach>
<mvt:else><mvt:comment>Tell a Friend Email Sent Message</mvt:comment>
<FONT SIZE="2" FACE="arial">Your request has been sent. Thank You! </FONT><BR>
</mvt:if>
</mvt:if>
<mvt:if expr="NOT g.ads_taf_submit OR l.settings:form_error OR l.settings:send_error"><mvt:comment>Tell a Friend Form</mvt:comment>
<form method="POST" action="&mvt:global:sessionurl;">
<input type="hidden" name="Screen" value="&mvt:global:Screen;">
<input type="hidden" name="Store_Code" value="&mvte:store:code;">
<input type="hidden" name="Product_Code" value="&mvt:global:Product_Code;">
<input type="hidden" name="Category_Code" value="&mvt:global:Product_Code;">
<input type="hidden" name="required" value="EMail,Message"><mvt:comment>Required Fields List</mvt:comment>
<table width="90%">
<tr valign="top">
<td align="left"><b><CENTER><FONT SIZE="3" FACE="arial">
<mvt:if expr="NOT ISNULL g.Product_Code">
Product: &mvt:product:name;
<mvt:else>
Store Front
</mvt:if>
<BR><table border="1" cellspacing="0" frame="border" rules="none" style="border-collapse: collapse" width="330" cellpadding="0" bordercolor="#333333">
<tr>
<td width="100%" height="14" align="left" valign="top" style="padding-left: 10; padding-top: 1; padding-bottom: 1" bgcolor="#666666">
<b><font face="Arial" size="2" color="#FFFFFF">Enter up to three
Email Addresses:</font></b></td>
</tr>
<tr>
<td width="100%" align="left" valign="top" style="padding: 10" bgcolor="#FFFFFF">
<font face="Arial" size="2">
<center>
1. <b><font size="2" face="Arial, Helvetica, sans-serif">
<input name="EMail" type="text" id="EMail" value="&mvt:global:EMail;" size="40" maxlength="40">
</font></b> <br>
2. <font face="Arial, Helvetica, sans-serif" size="2"><b><font size="2" face="Arial, Helvetica, sans-serif">
<input name="Second_EMail" type="text" id="Second_EMail" size="40" maxlength="40" value="&mvt:global:Second_EMail;">
</font></b></font> <br>
3. <font face="Arial, Helvetica, sans-serif" size="2"><b><font size="2" face="Arial, Helvetica, sans-serif">
<input name="Third_EMail" type="text" id="Third_EMail" size="40" maxlength="40" value="&mvt:global:Third_EMail;">
</font></b></font>
</center>
</font> <font face="Arial" size="2">&nbsp; </font></td>
</tr>
</table>
<br>
</FONT>
<table border="1" cellspacing="0" frame="border" rules="none" style="border-collapse: collapse" width="330" cellpadding="0" bordercolor="#333333">
<tr>
<td width="100%" height="14" align="left" valign="top" style="padding-left: 10; padding-top: 1; padding-bottom: 1" bgcolor="#666666">
<b><font size="3" face="arial"><font color="#FFFFFF" size="2">Tell them who you are, and enter your message:</font></font></b></td>
</tr>
<tr>
<td width="100%" align="left" valign="top" style="padding: 10" bgcolor="#FFFFFF">
<center>
<p><font size="2" face="Arial"><b>
<TEXTAREA name="Message" cols="35" rows="5" id="Message">&mvt:global:Message;</TEXTAREA>
</b></font></p>
<p align="right"><font size="2" face="Arial"><b>
<input name="ads_taf_submit" type=submit value="Send" border=0><mvt:comment>Submit Form Field - Name is used in the IF statement</mvt:comment>
</b></font>
<INPUT name="reset" TYPE="reset" value="Reset">
</p>
</center>
</td>
</tr>
</table>
<b><font size="2" face="arial" color="#333333">Product Information will be included automatically</font></b>
</CENTER>
</b> </td>
</tr>
</table>
</form>
</mvt:if>
</blockquote>
</td></tr>
<tr><td align="left" valign="bottom">
<mvt:item name="hdft" param="footer" />
</td></tr>
</table>
<mvt:item name="hdft" param="global_footer" />
</mvt:item>
</html>


ADS Tell a Friend Email HTML Template:
(Use global variables to populate Email message with form field elements. Global variables are shown below in red.)

<html>
<head>
<title>&mvt:store:name;: &mvt:product:name;</title>
<base href="&mvt:global:basehref;">
<mvt:item name="head" />
</head>
<mvt:item name="body">
<mvt:item name="hdft" param="global_header" />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="left" valign="bottom" colspan=2 >
<mvt:item name="navbar" />
</td></tr>
<tr><td align="left" valign="bottom" colspan=2>
<mvt:item name="hdft" param="header" />
</td></tr>
<tr><td align="left" valign="top" bgcolor="&mvt:colors:ctgy_bg;">
<table border="0" cellpadding="10" cellspacing="0">
<tr><td align="left" valign="top" nowrap>
<mvt:item name="fonts" param="ctgy_font">
<mvt:item name="customerlink" />
<mvt:item name="affiliatelink" />
<mvt:item name="category_tree" /><br><br>
</mvt:item>
</td></tr>
</table>
</td><td align="left" valign="top" width="80%">
<br>
<blockquote>
<mvt:if expr="NOT ISNULL g.Product_Code"><mvt:comment>If Send Product Page</mvt:comment>
<mvt:item name="prod_ctgy_hdft" param="prod_header" />
<table cellspacing="0" frame="border" rules="none" style="border-collapse: collapse" width="330" cellpadding="0" bordercolor="#333333" align="center">
<tr valign="top">
<td style="padding-left: 10; padding-top: 1; padding-bottom: 1"><B><FONT size="2" face="Arial, Helvetica, sans-serif">&mvt:global:Message; <mvt:comment>Visitor Message Display</mvt:comment></FONT></B></td>
</tr>
</table><BR>
<mvt:item name="product_display" />
<mvt:item name="prod_ctgy_hdft" param="prod_footer" />
<mvt:else><mvt:comment>Send Storefront Page</mvt:comment>
<table cellspacing="0" frame="border" rules="none" style="border-collapse: collapse" width="330" cellpadding="0" bordercolor="#333333" align="center">
<tr valign="top">
<td style="padding-left: 10; padding-top: 1; padding-bottom: 1"><B><FONT size="2" face="Arial, Helvetica, sans-serif">&mvt:global:Message; <mvt:comment>Visitor Message Display</mvt:comment></FONT></B></td>
</tr>
</table><BR>
<mvt:item name="mmui_messages" param="welcome" />
</mvt:if>
</blockquote>
</td></tr>
<tr><td align="left" valign="bottom">
<mvt:item name="hdft" param="footer" />
</td></tr>
</table>
<mvt:item name="hdft" param="global_footer" />
</mvt:item>
</html>


"architects of the web since 1998"
Learn more about our services

Build Your Business Online!

SERVICES | CONTACT US | HOME