soshaugh Posted May 29, 2009 Share Posted May 29, 2009 Hi all I have STSv4.5.8 and tried to install Loginbox_Best_1_2_3_4, subsequently I was getting place holder names displayed so decided to remove Loginbox_Best_1_2_3_4. Pretty straight forward I thought, just edit 2 files and delete 2 new files that were installed. But I am still getting place holder names displayed as well as normal content. I really would like some help to avoid re-installing osCommerce (again). Below are the installation instructions for Loginbox_Best_1_2_3_4 Insert this to the place you like in the /catalog/includes/column_left.php or in the /catalog/includes/column_right.php // BOF: WebMakers Added: Login Box My Account require(DIR_WS_BOXES . 'loginbox.php'); // EOF: WebMakers Added: Login Box My Account ================================================================================ ============= Insert to the file /catalog/includes/functions/general.php // 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; } ================================================================================ ============= upload files to your catalog: /catalog/includes/boxes/loginbox.php /catalog/includes/languages/english/loginbox.php /catalog/includes/languages/russian/loginbox.php /catalog/includes/languages/itallian/loginbox.php Quote Link to comment Share on other sites More sharing options...
bkellum Posted May 30, 2009 Share Posted May 30, 2009 Hi all I have STSv4.5.8 and tried to install Loginbox_Best_1_2_3_4, subsequently I was getting place holder names displayed so decided to remove Loginbox_Best_1_2_3_4. Pretty straight forward I thought, just edit 2 files and delete 2 new files that were installed. But I am still getting place holder names displayed as well as normal content. I really would like some help to avoid re-installing osCommerce (again). Below are the installation instructions for Loginbox_Best_1_2_3_4 Insert this to the place you like in the /catalog/includes/column_left.php or in the /catalog/includes/column_right.php // BOF: WebMakers Added: Login Box My Account require(DIR_WS_BOXES . 'loginbox.php'); // EOF: WebMakers Added: Login Box My Account ================================================================================ ============= Insert to the file /catalog/includes/functions/general.php // 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; } ================================================================================ ============= upload files to your catalog: /catalog/includes/boxes/loginbox.php /catalog/includes/languages/english/loginbox.php /catalog/includes/languages/russian/loginbox.php /catalog/includes/languages/itallian/loginbox.php I would be glad to assist you if you post all of your STS related support questions in the STSv4 Forum in order for all STS users to benefit from the question and the resolution (Link is provided in the STS User Manual as well as in my signature below). Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
Recommended Posts
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.