I'm stumped. I'm not so sure what is the answer. I'll do some investigation and get back to you if I got an useful answer. You should email the people at iPage as they probably can help you..
Or to have it like "Carine B.".
tep_db_query("insert into "TABLE_REVIEWS" (products_id, customers_id, customers_name, reviews_rating, date_added) values ('"(int)$HTTP_GET_VARS['products_id']"', '"(int)$customer_id"', '"tep_db_input($customer['customers_firstname'])' 'tep_db_input(substr($customer['customers_lastname'],0,1)'.')"', '"tep_db_input($rating)"', now())");.
Also on line 154 it then should show the same while filling out the review form:.
<td class="main"><?php echo '<b>'SUB_TITLE_FROM'</b> 'tep_output_string_protected($customer['customers_firstname']' 'substr($customer['customers_lastname'], 0, 1)'.'); ?></td>..
None of these ideas work. I've completely deleted any refernce to the word "Lastname" and it still shows it. How do you erase the last name?..
All of these ideas worked on my site.
Be explicite, where do you see the last name; when you create a review comment or when you look at existing reviews ? .
What to do you want ? Not store the last name at all ? .
The instructions above store the full details; but only display the initial...
And on approx. line 154.
(...) tep_output_string_protected($customer['customers_firstname']' '$customer['customers_lastname']); ?></td>.
Looks like this afterwords:.
(...) tep_output_string_protected($customer['customers_firstname']); ?></td>.
Also in product_review_write.php!..
I would like to have only the first name on the actual catalog/reviews.php page. The page that shows ALL reviews. I would like to know how to remove the last name and add more than one line on the actual review?? I've searched and can only find answer for the "review box" not the actual reviews. The only way I can remove the last name is to shorten the amount of letters allowed for the 1st and last name in the database. I limited it to 10 letters for the whole name so now it shows up like "John Montg" instread of "John Montgomery" I want it to be just "John".
The code submitted by bruyndoncx works great, but it will not change your existing reviews. It only works on the reviews posted after the change..
Thank you Bruyndoncx!!!!.
What "review page are we talking about??.
I'm referring to the catalog/review.php page...
Well I've tried all of those changes/mods to the code and it doesn't do anything. I'll try it again and see what happens...
I think the confusion is over the existing reviews..
After you apply the code, you will not have the full last name for the newly created reviews, however in your database, you still have the existing reviews with the full customer name recorded..
To get rid of these, most easy is to use phpmyadmin and edit them one by one, or if it's really a lot, you'd have to create a sql update script to do just that. (the fast route would be to update all of them to e.g. anonymous)..