Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ssl questions


kitchenniche

Recommended Posts

Hi,

 

I've searched this forum for half an hour now and didn't get an answer to my question:

 

If i am on my site and click on "create account" the site does NOT turn to https. If i am on my site and click on login and then on create account, the site turns to https.

 

I don't get that. Does somebody know how to change it so that the create account is always secure?

 

many thanks :thumbsup:

 

sandra

HIM - Dark Light - Out on 26/09/05
Link to comment
Share on other sites

Hello

 

I don?t have this problem but?.

 

the link in question is in the general.php file in the functions folder. In the tep_customer_greeting() function.

 

Hope this points you in the right direction

 

Billy

Link to comment
Share on other sites

Hi Billy,

 

Thank you for your reply

 

I found the following in general.php and it looks like the create accout should appear in SSL but it does not:

 

$greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

$greeting_box_top_string = sprintf(BOX_GREETING_TOP_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

$greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

I have the clickable "create account link" in my loginbox so i've done a search in that file as well i i just found that:

 

if ( (!strstr($_SERVER['PHP_SELF'],'login.php')) and (!strstr($_SERVER['PHP_SELF'],'create_account.php')) and !tep_session_is_registered('customer_id') ) {

 

 

Any ideas?

 

Many Thanks

 

Sandra

HIM - Dark Light - Out on 26/09/05
Link to comment
Share on other sites

Did you comment out the code to check if it is being used to create the link?

 

If it is the problem might be in the tep_href_link function in html_output.php

 

If all else fail you could always hard code the link

 

Hope I am being of help

 

Billy

Link to comment
Share on other sites

Did you comment out the code to check if it is being used to create the link?

 

If it is the problem might be in the tep_href_link function in html_output.php

 

If all else fail you could always hard code the link

 

Hope I am being of help

 

Billy

 

Thanks for your help.

 

I have comment out the code and it is not being used to create the link.

 

How can i hard code the link?

 

Thanks very much

 

Sandra

HIM - Dark Light - Out on 26/09/05
Link to comment
Share on other sites

First thing is first you have to find the code where the link is being created, either to fix the problem or to delete it and replace it with hard code. I assumed that the link that was giving you problems was on the main page. The line would look something like this

 

Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

 

I always do this by echoing somthing, or by commenting stuff out until I figure out where it is. I start with the file in the URL, and fallow any function to their corresponding files

 

Cheers,

 

Billy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...