Guest Posted January 5, 2003 Share Posted January 5, 2003 The current osCommerce Online Demonstration login page does not seem to match the login.php that is downloaded in the current snapshot. I like the one in the demo, simple.... and it sets a cookie to have the info filled in and automatically remember you next visit. Also, the default.php changes to "welcome back xxxx" instead of "welcome Guest". Was this a mod added later or am I missing something? I searched the contributions but couldn't find any new login page, only Linda's login box (which is geat Linda, thanks!). I appreciate any help steering me in the right diection. Kevin Link to comment Share on other sites More sharing options...
blueline Posted January 5, 2003 Share Posted January 5, 2003 This is the source when taken from the login.php page from the demo. <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading">Let Me In!</td> <td rowspan="2" align="right"><img src="images/table_background_login.gif" border="0" alt=" Let Me In! " width="57" height="40"></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt=" " width="100%" height="10"></td> </tr> <tr> <td><form name="login" method="post" action="http://www.oscommerce.com/osCommerce/login.php?action=process&email_address="><br><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="right" class="main">Enter your e-mail address:</td> <td class="main"><input type="text" name="email_address" maxlength="96" value=""></td> </tr> <tr> <td align="right" class="main"><input type="radio" name="user" value="new" checked></td> <td class="main">I am a new customer.</td> </tr> <tr> <td align="right" class="main"><input type="radio" name="user" value="returning"></td> <td class="main">I am a returning customer,<br> and my password is:<br><input type="password" name="password" maxlength="40" value=""></td> </tr> <tr><label for="setcookie"> <td align="right" class="main"><input type="checkbox" name="setcookie" value="1" id="setcookie" ></td> <td class="main">Save login information in a cookie?</td> </label></tr> <tr> <td colspan="2"><br><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="smallText"><a href="http://www.oscommerce.com/osCommerce/password_forgotten.php">Forgot your password? Click here</a></td> <td align="right" class="smallText"><input type="image" src="includes/languages/english/images/buttons/button_continue.gif" border="0" alt="Continue"></td> </tr> </table></td> </tr> </table></form></td> </tr> </table></td> <!-- body_text_eof //--> Pretty simple. Just use a form to post to the login.php file. Hope this helps, Chris Chris Sullivan Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2003 Share Posted January 5, 2003 thanks... this is definately different from the page I downloaded as the current snapshot. Is there a diff in the default.php & ../english/default.php as well? Link to comment Share on other sites More sharing options...
blueline Posted January 5, 2003 Share Posted January 5, 2003 This isn't from the snapshot download. All I did was 'view source' on the login.php shown in the snapshot. There may be a little bit different code in the /catalog/login.php page...not sure. There will definitely be a difference when it comes to: catalog/includes/languages/english/login.php as you have to change the text in the page. -Chris Chris Sullivan Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2003 Share Posted January 5, 2003 Thanks for all the help. Actually, I didn't know you could view the source (php included) for the online demo... I will check out other pages that way. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.