ufa57 Posted June 2, 2005 Share Posted June 2, 2005 I've installed a Login Box contribution, and it's mostly working except I get this error message: Fatal error: Call to undefined function: tep_box_greeting_top() in /home/natural/public_html/store/includes/boxes/loginbox.php on line 108 Fatal error: Call to undefined function: tep_box_greeting_top() in /home/natural/public_html/store/includes/boxes/loginbox.php on line 37 They both call the same function. How do I go about defining this function so it actually works? Here's a part of the code that's in the general file that's related to the installation of this box. // 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; } Thanks in advance. My store Link to comment Share on other sites More sharing options...
♥Vger Posted June 2, 2005 Share Posted June 2, 2005 Install the file includes/languages/english/loginbox.php that comes with the contribution. Also, use the ReadMe.txt file that comes with the contribution. Vger Link to comment Share on other sites More sharing options...
ufa57 Posted June 2, 2005 Author Share Posted June 2, 2005 Install the file includes/languages/english/loginbox.php that comes with the contribution. Also, use the ReadMe.txt file that comes with the contribution. Vger <{POST_SNAPBACK}> I have installed the loginbox.php and used the ReadMe.txt. Link to comment Share on other sites More sharing options...
♥Vger Posted June 2, 2005 Share Posted June 2, 2005 You have not completed all the installation. You need to go back over it and find out what it was that you missed out. Vger Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.