Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

login form


proman2008

Recommended Posts

Posted
Simon look I got errors - can not solve them

 

what I done wrong?

 

127.jpg

missed some defines in the lanuage files?

Posted

this is the bottom of the english.php

 

and I put there

 

define('SEARCH_VALUE','Search...');
require(DIR_WS_LANGUAGES . $language . '/' . 'loginbox.php');
?>

Posted
this is the bottom of the english.php

 

and I put there

 

define('SEARCH_VALUE','Search...');
require(DIR_WS_LANGUAGES . $language . '/' . 'loginbox.php');
?>

What else did it say to do?

Posted

well on column_right.php I add

 

just this line

 

	require(DIR_WS_BOXES . 'loginbox.php');

 

then I put greeting _string

 

////
// Return a customer greeting
 function tep_customer_greeting() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW));
} else {
  $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_string;
 }
// Return a loginbox infobox customer greeting top
 function tep_box_greeting_top() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_top_string = sprintf(BOX_GREETING_TOP_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_top_string;
 }

////
// Return a loginbox infobox customer greeting bottom
 function tep_box_greeting_bottom() {
global $customer_id, $customer_first_name;

if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
  $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));
} else {
  $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

return $greeting_box_bottom_string;
 }

 

 

then I have uploaded all files in directory

 

/catalog/includes/boxes/loginbox.php
/catalog/includes/languages/english/loginbox.php
/catalog/includes/languages/english/buttons/button_login.gif (optional)

Posted

if the files are in the correct locations, check your edits.

Posted

where you added the code in the english fille, just add the SAME thing for all of the "code" that you see as errors.

 

They actually arent errors, they are just calling for a language define that isnt there.

 

BOX_GREETING_TOP_GUEST

BOX_LOGINBOX_EMAIL

BOX_LOGINBOX_PASSWORD

BOX_LOGINBOX_FORGOT_PASSWORD

 

BOX_LOGINBOX_HEADING

 

take all of those and put them into this code:

define('REPLACE_WITH_CODE_ABOVE','enter what you want to appear here');

 

and put into the english.php file.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Posted

well I put there all line - it works

 

but there is not a link on the cretae a new account

 

and there is no user name after login in

Posted

can you post a link or PM. i need to see to understand.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Archived

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

×
×
  • Create New...