Zuncan Posted June 29, 2004 Posted June 29, 2004 Hi! Little confused. I know it?s not impossible at all, but I just dont know. When a person writes a review of a product, his/her full name displays above the review. I would just like to display the first name. NOT the aftername. When a member login to my page, his/her name displayes on the first mainpage. "Welcome back Bruce! Would you like to.." Thats how I want it! Just the first name. Please help me / Zuncan So what?! Who care in a hundred years anyway?
CentralMass Posted June 29, 2004 Posted June 29, 2004 You fix this not where it displays but where it gets entered...in product_reviews_write.php find $customer_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); Replace with $customer_query = tep_db_query("select customers_firstname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); This gets removed from the entry point allowing you to just enter the first name of the logged in user. customers_lastname Note, More testing may need to be done with this. BACKUP ALL YOUR FILES FIRST, I AM NOT RESPONSIBLE Need Hosting? Just ask!
Zuncan Posted June 29, 2004 Author Posted June 29, 2004 Thanks big time Mr non responsible ;) So what?! Who care in a hundred years anyway?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.