Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login box contrib not pointing to https like it should


Guest

Recommended Posts

Here's my site.

 

Just installed a login box on the top left. But, the links are all pointing to http and not https; how do I fix this?

 

Here's a copy of the file I installed...catalog/includes/boxes/loginbox.php

 

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License

 Autologin added by DJ Downey http://www.liquidgfx.com

*/

// 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'  => BOX_LOGINBOX_HEADING
							);
new infoBoxHeading($info_box_contents, $newtheme, false, false);
$loginboxcontent = "
		<form name=\"login\" method=\"post\" action=\"" . tep_href_link(FILENAME_LOGIN, 'action=process') . "\">
		<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
		  <tr>
			<td align=\"center\" class=\"infoBoxContents\">
				" . tep_box_greeting_top() . "
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"infoBoxContents\">
			  " . BOX_LOGINBOX_EMAIL . "
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"infoBoxContents\">
			  <input type=\"text\" name=\"email_address\" maxlength=\"96\" size=\"20\" value=\"\">
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"infoBoxContents\">
			  " . BOX_LOGINBOX_PASSWORD . " <A HREF=\"" . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . "\">" . BOX_LOGINBOX_FORGOT_PASSWORD . "</A>
			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"infoBoxContents\">
			  <input type=\"password\" name=\"password\" maxlength=\"40\" size=\"20\" value=\"\">
			</td>
		  </tr>
		  <tr>
			<td class=\"infoBoxContents\" align=\"center\">
			  " . tep_image_submit('button_login2.gif', IMAGE_BUTTON_LOGIN) . "

			</td>
		  </tr>
		  <tr>
			<td align=\"center\" class=\"infoBoxContents\">
			  " . BOX_LOGINBOX_NEW . "
			</td>
		  </tr>
		</table>
		</form>
		  ";
$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, $newtheme, false, false);
 $loginboxcontent = "
	  <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
		<tr>
		  <td align=\"center\" class=\"loginBoxGreeting\">
		  " . tep_box_greeting_top() . "
		  </td>
		</tr>
		<tr>
	  </table>
		";
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center',
						   'text'  => $loginboxcontent . 
				  '<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, '', 'SSL') . '">' . LOGIN_BOX_PRODUCT_NOTIFICATIONS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"><b>' . LOGIN_BOX_LOGOFF . '</b></a>'
   				  );
 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- my_account_info_eof //-->

<?php
 }
}
?>

 

You see all those references to SSL? Well, when I installed the file, they initially read 'NONSSL' so I changed them all to read SSL thinking that might do it, but...nope. Any ideas?

 

Andrea

Link to comment
Share on other sites

Have you tried the support thread for the contribution? Anytime you have a problem with a specific contribution the support thread should be your first stop

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

I've looked in that section twice; I can't find a support thread about this at all.

 

Even looked at the install instructions again to see if they listed a support thread; sometimes they do. This one did not.

 

Andrea

Link to comment
Share on other sites

Well, I guess there's more than one way to skin a cat.

 

Never could find a support thread for LoginBox Best.

 

So...I went into the language definitions and changed everything from calls to simple file names, to the complete URL of the link with the https prefix. Works like a charm!

 

Andrea

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...