PDA

View Full Version : Miva Tip: Login and Logout links


lfreeman
03-29-06, 03:38 PM
MIVA DYNAMIC LOGIN LINK
<mvt:if expr="g.Basket:cust_id EQ 0">
<a href="&mvt:global:secure_sessionurl;Screen=LOGN&Order=0&Store_Code=&mvt:global:Store_Code;">Sign In</a>
<mvt:else>
<a href="&mvt:global:secure_sessionurl;Screen=ACNT&Order=0&Store_Code=&mvt:global:Store_Code;">Account</a>
</mvt:if>

STATIC LOGIN LINK
<a href="https://www.yourdomain.com/mm5/merchant.mvc?Screen=LOGN&Store_Code=storecode">Sign In</a>

LOGOUT LINK
<mvt:if expr="g.Basket:cust_id EQ 0">
<a href="&mvt:global:sessionurl;Action=LOGO&Screen=SFNT&Store_Code=&mvta:global:Store_Code;">Logout</a>
</mvt:if>

STATIC LOGOUT LINK
<a href="http://www.yourdomain.com/mm5/merchant.mvc?Screen=LOGO&Store_Code=storecode">Log Out</a>

MIVA LOGIN FORM
<form method="post" action="&mvt:global:secure_sessionurl;">
<input type="hidden" name="Store_Code" value="&mvt:store:code;">
<input type="hidden" name="Screen" value="OCST">
<table width="450" border="0" align="center" cellpadding="4" cellspacing="0">
<tr align="left" valign="middle">
<td width="84" valign="top" nowrap>
<font size="2" face="Arial, Helvetica, sans-serif">
<mvt:item name="fonts" param="body_font">
<b><i>Username:</i></b></mvt:item></font></td>
<td width="65" valign="top" nowrap>
<font size="2" face="Arial, Helvetica, sans-serif"><mvt:item name="fonts" param="body_font">
<input type="text" size="10" name="Customer_Login" value="&mvt:global:Customer_Login;">
</mvt:item>
</font></td>
<td width="231" valign="top" nowrap>
<font size="2" face="Arial, Helvetica, sans-serif">
<mvt:item name="fonts" param="body_font">
<input type="radio" name="Action" value="LOGN" checked>
<i><b>Password:</b></i>
<input type="password" size="10" name="Customer_Password">
<br>
<input type="radio" name="Action" value="EMPW">
Please Email Me My Password</mvt:item>
</font></td>
<td width="188" valign="top">
<div align="left">
<mvt:item name="fonts" param="body_font">
<mvt:item name="buttons" param="Login" />
</mvt:item>
</div></td>
</tr>
</table>
</form>

Red Flare
04-11-06, 08:32 AM
I think there is a part of code missing from the logout link:
Here is what I have on my site:
<a href="http://www.yoursite.com/mm5/merchant.mvc?Action=LOGO&Screen=SFNT&Store_Code=storecode">Log Out</a>

Vic - WolfPaw Computers
04-11-06, 09:09 AM
Linda,

While helpful, many of your examples of code have whitespaces in them, which will render the code inoperable.

You may find it better to use the code button to surround the code for easier reading and display.

Red Flare
04-11-06, 09:30 AM
You may find it better to use the code button to surround the code for easier reading and display.


Thanks for pointing this out! I didn't know about this feature :)

lfreeman
04-18-06, 12:03 AM
Linda,

While helpful, many of your examples of code have whitespaces in them, which will render the code inoperable.

You may find it better to use the code button to surround the code for easier reading and display.

Thanks Vic, I fixed this one and will try to update my others.