Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! Login Box does not show, STS+Login box 5.5


fayeff

Recommended Posts

I install STS-2_01 first, then I try to install the loginbox 5.5 contribution, I followed all the steps, but the login box just doesn't want to show up. Here are the changes I did:

 

1.uploaded loginbox.php to catelog/include/boxes

 

2.sts_user_code.php

 

 

// $sts_block_name = 'loginbox';

// require(STS_START_CAPTURE);

// require(DIR_WS_BOXES . 'loginbox.php');

// require(STS_STOP_CAPTURE);

// $template['loginbox'] = strip_unwanted_tags($sts_block['loginbox'], 'loginbox');

?>

 

3.column_left.php, added to line 12

 

// BOF: WebMakers Added: Login Box My Account

require(DIR_WS_BOXES . 'loginbox.php');

// EOF: WebMakers Added: Login Box My Account

 

4.catelog/include/languages/english.php,added

// BOF: WebMakers Added: Login Box My Account

// login box text in includes/boxes/loginbox.php

define('BOX_HEADING_LOGIN_BOX', 'Sign in');

 

define('BOX_LOGINBOX_EMAIL', '<center>E-mail address:</center>');

define('BOX_LOGINBOX_PASSWORD', '<center>Password:<center>');

define('BOX_LOGINBOX_TEXT_NEW', '<center>Are you a new client? <center>');

define('BOX_LOGINBOX_NEW', '<center><u>create an account</u><center>');

define('BOX_LOGINBOX_FORGOT_PASSWORD', '<center><u>(forgotten)</u></center><br>');

define('IMAGE_BUTTON_LOGIN', 'Login');

 

define('BOX_HEADING_LOGIN_BOX_MY_ACCOUNT','My account info');

define('LOGIN_BOX_ACCOUNT_EDIT','Edit account info.');

define('LOGIN_BOX_ACCOUNT_HISTORY','Account history');

define('LOGIN_BOX_ADDRESS_BOOK','My address book');

define('LOGIN_BOX_PRODUCT_NOTIFICATIONS','Product notifications');

define('LOGIN_BOX_MY_ACCOUNT','General information');

define('LOGIN_BOX_LOGOFF','Log off');

// EOF: WebMakers Added: Login Box My Account

 

5.put"$loginbox into sts_template.html

 

 

 

Please tell me what I did wrong.Thnaks!!!!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

I made my own login box and it works great with STS....you can stick it anywhere...

 

sorry, its a little dirty looking :).....I just copy and pasted from the LOGIN.PHP file :) made it a little less wide..

 

go to: http://www.i-muffs.com/create_profile.php

 

to see how I've used it

 

<table border="0" cellspacing="0" cellpadding="1">
              
              <?php
 if ($messageStack->size('login') > 0) {
?>
     <tr>
       <td><?php echo $messageStack->output('login'); ?><br></td>
     </tr>
     
       <?
       }
       ?>
              <tr>      
                  <td colspan="1" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_CREATE_ACCOUNT, 'action=process', 'SSL')); ?>
                  <b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>
                 </tr>
                 <tr>
                   <td colspan="1"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>
                 </tr>
                 <tr>
                   <td colspan="1"><?php //echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                 </tr>
                 <tr>
                   <td><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>
                   </tr>
                   <tr>
                   <td><?php echo tep_draw_input_field('email_address','','size="16"'); ?></td>
                 </tr>
                 <tr>
                   <td><b><?php echo ENTRY_PASSWORD; ?></b></td>
                   </tr>
                   <tr>
                   <td><?php echo tep_draw_password_field('password','','size="16"'); ?></td>
                 </tr>
                 <tr>
                   <td colspan="1"><?php //echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                 </tr>
                 <tr>
                   <td class="smallText" colspan="1"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
                 </tr>
                
                 <tr>
                   <td colspan="1">
                     <tr>
                       <td align="center"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></form></td>
                     </tr>
                   </table>
                 

Link to comment
Share on other sites

BTW, this is the code for STS_USER_CODE.PHP

 

$sts_block_name = 'loginbox';
require(STS_START_CAPTURE);
require(DIR_WS_BOXES . 'loginbox.php');
require(STS_STOP_CAPTURE);
$template['loginbox'] = strip_unwanted_tags($sts_block['loginbox'], 'loginbox');

 

then with STS you just $loginbox where ever you want! :)

Link to comment
Share on other sites

personally, whenever I don't have to, I just make my own boxes. I hate making the call to the dynamic code for creating an infobox.

 

sure it's got alot of options with the parameters you can use, but thats only if you want to stay in a similar stock OSC look. with STS when you change the look drastically, you don't want a square box.

 

BTW, the site isn't done yet, there is still alot of work to do.

Link to comment
Share on other sites

personally, whenever I don't have to, I just make my own boxes.  I hate making the call to the dynamic code for creating an infobox.

 

sure it's got alot of options with the parameters you can use, but thats only if you want to stay in a similar stock OSC look.  with STS when you change the look drastically, you don't want a square box.

 

BTW, the site isn't done yet, there is still alot of work to do.

 

Sorry, i just see your post today, thank you so much, I 'll try again.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...