sigzag Posted February 7, 2004 Share Posted February 7, 2004 I am building my first site and have installed the contribution "loginbox-1.0.zip" but seem to be having a problem with the coding. I have placed the box in my right hand upper column. Prior to logging into an account the box views too wide as compared to the other info boxes. Once logged into an account the box shrinks down to the normal 150 pixels wide. Also instead of showing the text "email login" and password" some of the scripting is visible, again only prior to logging in. Go to http://www.countryherbstore.com to view problem. Here is the login.php snippet that might help resolve the issue: <?php $loginboxcontent = " <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"> <form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . "\"> <tr> <td align=\"left\" class=\"main\"> " . BOX_LOGINBOX_EMAIL . " </td> </tr> <tr> <td align=\"left\" class=\"main\"> <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"10\" value=\"\"> </td> </tr> <tr> <td align=\"left\" class=\"main\"> " . BOX_LOGINBOX_PASSWORD . " </td> </tr> <tr> <td align=\"left\" class=\"main\"> <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"10\" value=\"\" </td> </tr> <tr> <td class=\"main\" align=\"center\"> " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . " </td> </tr> </form> </table> "; $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $loginboxcontent ); new infoBox($info_box_contents); ?> Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2004 Share Posted February 7, 2004 You are missing the language defines from catalog/includes/languages/english.php: define('BOX_LOGINBOX_EMAIL', 'Email Address'); define('BOX_LOGINBOX_PASSWORD', 'Password'); The second one (treated as one word) is what makes your box so wide :P Matti Link to comment Share on other sites More sharing options...
sigzag Posted February 8, 2004 Author Share Posted February 8, 2004 Thanks Johnson...that did the trick. I will update the file for the login box contibution to include this info and submit it. Link to comment Share on other sites More sharing options...
marcom Posted February 8, 2004 Share Posted February 8, 2004 Hi i'm working with the contribution LoginBox v5.2.wfc1.0, It works great but now i'm trying to get the line " Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?" in the loginbox.. I tried everything but the line won't show up in the box.. I really don't know how to do this and hope there is somebody out there who does.. for example see http://www.countryherbstore.com/ . My site is http://shop.marcomsweb.net I appriciate all help.. (sorry for the poor english..) Marco van Meurs Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.