Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LOGIN_BOX_SECURE_LOGIN (contains underscores??)


Guest

Recommended Posts

I have been creating a new shop and found when i include the login box it seems to include the Underscores in the links. EG: LOGIN_BOX_SECURE_LOGIN

 

LOOK AT BOTTOM RIGHT OF PAGE FOR LOGIN BOX

 

Click to see Site

 

here is the code for the login box:

 

<?php
/*
 LoginBox v5.2.wfc1.0
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License

 IMPORTANT NOTE:

 This script is not part of the official osC distribution
 but an add-on contributed to the osC community. Please
 read the README and INSTALL documents that are provided
 with this file for further information and installation notes.

 LoginBox v5.0 was originally designed by Aubrey Kilian <[email protected]>
 LoginBox v5.2 rewritten by Linda McGrath <[email protected]>
 LoginBox v5.2.wfc1.0 modified by Justin of World Famous Comics <[email protected]>
 LoginBox v5.21 modified by Noel Latsha <[email protected]>
*/

// WebMakers.com Added: Do not show if on login or create account
if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') )  {
?>
<!-- loginbox //-->
<?php
if (!tep_session_is_registered('customer_id')) {
?>
	  <tr>
		<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
							 'text'  => HEADER_TITLE_LOGIN
							);
new infoBoxHeading($info_box_contents, false, false);
$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=\"center\" class=\"boxText\">
			  " . ENTRY_EMAIL_ADDRESS . "
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"boxText\">
			  <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"15\" value=\"\">
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"boxText\">
			  " . ENTRY_PASSWORD . "
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"boxText\">
			  <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"15\" value=\"\"
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"boxText\">
			  " . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "
			</td>
		  </tr>
		</form>
		</table><BR>
	  <center>
	   <A HREF=\"" . tep_href_link(FILENAME_LOGIN, '', 'SSL') . "\">" . LOGIN_BOX_SECURE_LOGIN . "</A><BR>

		" . tep_draw_separator('pixel_trans.gif', '9', '4') . "<BR><A HREF=\"" . tep_href_link(FILENAME_CREATE_ACCOUNT, '','SSL') . "\">" . LOGIN_BOX_NEW_USER . "</A><BR>

		" . tep_draw_separator('pixel_trans.gif', '9', '4') . "<BR><A HREF=\"" . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . "\">" . LOGIN_BOX_PASSWORD_FORGOTTEN . "</A>
	   </center>
		  ";
$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
							 'text'  => $loginboxcontent
							);
new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<?php
 } else {

 // If you want to display anything when the user IS logged in, put it
 // in here...  Possibly a "You are logged in as :" text or something.
 }
?>
<!-- loginbox_eof //-->
<?php
// WebMakers.com Added: My Account Info Box
} else {
 if (tep_session_is_registered('customer_id')) {
?>

<!-- my_account_info //-->
	  <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT
						  );
 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  =>
									  '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . LOGIN_BOX_MY_ACCOUNT . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_EDIT . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'NONSSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '">' . HEADER_TITLE_LOGOFF . '</a>'
						  );
 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- my_account_info_eof //-->

<?php
 }
}
?>

 

:'( Any ideas what im doing incorrect???

 

 

many kind regards

 

DJFlex

Link to comment
Share on other sites

this would be in a language definition file, look at the installation procedures, it will tell you where you should place it.

 

Cheers i solved it but getting the latest Loginbox 5.5 and changing the English language box.

 

:D It worked a treat ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...