Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi, i installed the loginbox 5.6 but the login button ain't showing up... (red cross)

 

The button (button_login.gif) is placed in the folder: C:\xampplite\htdocs\includes\languages\dutch\images\buttons

 

This is the loginbox.php script

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 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.php -   Version 5.4
 This puts a login request in a box with a login button.
 If already logged in, will not show anything.

 Modified to utilize SSL to bypass Security Alert
*/

// 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('text'  => BOX_HEADING_LOGIN_BOX);

new infoBoxHeading($info_box_contents, false, false);

$loginboxcontent = tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'))
								 . BOX_LOGINBOX_EMAIL
					 		 . tep_draw_input_field('email_address', '', 'size="10" maxlength="100" style="width: ' . (BOX_WIDTH-30) . 'px"')
							 .'<br><br>'
							 . BOX_LOGINBOX_PASSWORD
							 . tep_draw_password_field('password', '', 'size="10" maxlength="40" style="width: ' . (BOX_WIDTH-30) . 'px"')
							 .'<a href="'
							 . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL')
							 . '">'
							 . BOX_LOGINBOX_FORGOT_PASSWORD 
							 . '</a>'
							 . tep_image_submit('b' . COLOUR . '/button_login.gif', IMAGE_BUTTON_LOGIN)
							 . '</form><br><br>'
							 .  BOX_LOGINBOX_TEXT_NEW
							 . '<a href="'
							 . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')
							 . '">'
							 . BOX_LOGINBOX_NEW
							 . '</a>'
							;								 

$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 :" box 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_ACCOUNT_HISTORY, '', 'SSL') . '">' . LOGIN_BOX_ACCOUNT_HISTORY . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . LOGIN_BOX_ADDRESS_BOOK . '</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') . '">' . LOGIN_BOX_LOGOFF . '</a>');
 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- my_account_info_eof //-->

<?php 
 } 

} 

?>

 

Somebody have the same problem? or know how to fix it ?

Posted

Found the solution:

 

Change:

. tep_image_submit('b' . COLOUR . '/button_login.gif', IMAGE_BUTTON_LOGIN)

 

to:

. tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL')

 

 

Might be handy for someone who have the same problem...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...