proman2008 Posted August 30, 2008 Posted August 30, 2008 how to show just a simple login form on the front page ? like this?
Guest Posted August 31, 2008 Posted August 31, 2008 http://addons.oscommerce.com/info/2538 http://addons.oscommerce.com/info/2179 have a look
proman2008 Posted August 31, 2008 Author Posted August 31, 2008 http://addons.oscommerce.com/info/2538 http://addons.oscommerce.com/info/2179 have a look thanks Simon I will try
proman2008 Posted August 31, 2008 Author Posted August 31, 2008 Simon look I got errors - can not solve them what I done wrong?
Guest Posted August 31, 2008 Posted August 31, 2008 Simon look I got errors - can not solve them what I done wrong? missed some defines in the lanuage files?
proman2008 Posted August 31, 2008 Author Posted August 31, 2008 this is the bottom of the english.php and I put there define('SEARCH_VALUE','Search...'); require(DIR_WS_LANGUAGES . $language . '/' . 'loginbox.php'); ?>
Guest Posted August 31, 2008 Posted August 31, 2008 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?
proman2008 Posted August 31, 2008 Author Posted August 31, 2008 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)
Guest Posted August 31, 2008 Posted August 31, 2008 if the files are in the correct locations, check your edits.
lindsayanng Posted August 31, 2008 Posted August 31, 2008 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!!
proman2008 Posted August 31, 2008 Author Posted August 31, 2008 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
lindsayanng Posted August 31, 2008 Posted August 31, 2008 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!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.