bubbasheeko Posted June 6, 2007 Posted June 6, 2007 I utilized the login box that is for use with STS. I however want php to trigger whether you see the login box or the account options. I have set up my own account links. I added the check to see if the visitor is logged in and it works great inside the template system. <?php if (!tep_session_is_registered('customer_id')) { ?><div id="login"> <form action="/catalog/login.php?action=process" method="post" name="login" > <font color="#FFFFFF" face="Georgia">Email Address:</font><font face="Georgia"><br> <input type="text" name="email_address" size="20" style="border:1px solid #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"/><br/> </font><font face="Georgia" color="#FFFFFF">Password:</font><font face="Georgia"><br> <input type="password" name="password" size="20" style="border:1px solid #000000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"/><br/> </font> <a id="sign_in" onclick="login.submit()"> <font face="Georgia"> <input type="button" value="Sign In" name="B1" style="padding:1px; border:1px solid #000000; font-family:Georgia; font-size:10pt"></font></a><font face="Georgia"> <br> <br> <a id="sign_up" href="create_account.php"> <font color="#FFFFFF">Sign up</font></a><font color="#FFFFFF"> <br> </font><a id="forgot" href="password_forgotten.php"> <font color="#FFFFFF">Forgot Password?</font></a></font></form> <? } Here is the problem (strong word for something I am hoping will be relatively easy), there are pages on the root of the server folder. These pages need to interact with the catalog, and the interacting is the login box. Any ideas how I can make a login box work outside of the catalog folder, away from the template? Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.