Guest Posted June 10, 2003 Posted June 10, 2003 Removed login for english.php, now I get this Text /Text_GREETING_GUEST, can't find out where it's comming from. :roll:
orchard Posted June 10, 2003 Posted June 10, 2003 That means you don't have a definition for TEXT_GREETING_GUEST. PHP prints the name of the define when there is no definition for it. You should search for it using something like AgentRansack. Defines like that are normally in the includes/languages/english directory or includes/languages/english.php. In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:
Guest Posted June 10, 2003 Posted June 10, 2003 I took the define out of english.php, I think this is coming from functions general.php but can't figure out how to turn it off without losing the page
orchard Posted June 10, 2003 Posted June 10, 2003 You have to either remove the reference to TEXT_GREETING_GUEST in this section of general.php if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING_PERSONAL, $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')); } or define TEXT_GREETING_GUEST somewhere like in english.php. I you just want no greeting at all, you could comment out the code section above and replace it with $greeting_string = ''; In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:
Guest Posted June 10, 2003 Posted June 10, 2003 I tried taking out the wholt string and lost the page, what would I take out to lose the greeting ? Or what whould I replace ?
orchard Posted June 10, 2003 Posted June 10, 2003 I think if you add define('TEXT_GREETING_GUEST', ''); or change the section in general.php to if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW)); } else { $greeting_string = ''; } You will get what you want, but I haven't tried it. In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink:
Guest Posted June 10, 2003 Posted June 10, 2003 Should of said, if I sign in and rturn to the default page I get the personal geeting, I checked out and returned to shop.
Guest Posted June 10, 2003 Posted June 10, 2003 Also needed to remove sprintf(TEXT_GREETING_PERSONAL, LINE AND END string , the same way. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.