Salvo Posted December 10, 2002 Posted December 10, 2002 Hi all, Long title because I like to do something nice, good and useful... I would like to use the products_reviews_right.php as follow: anybody (not need to be customer or user to post a review about a product).. I did this for that.. I commented the customer_id session to allow all to post... now I need: 1- to take the posters IP address (just in case) (to be stored in a new field) 2- to allow them to enter name (field already in table) 3- to allow them to enter email (field to be created) I thank you all for help.. I hope I made myself understood... Salvo
Christian Lescuyer Posted December 13, 2002 Posted December 13, 2002 IP address is available either in $_SERVER['REMOTE_ADDR'] (or maybe somewhere else if there is a proxy). Add a hidden field to the form with tep_draw_hidden_field(). For the fields, duplicate the 'textarea' line: <tr> <td><?php echo tep_draw_textarea_field('review', 'soft', 60, 15);?></td> </tr> And change tep_draw_textarea_field() to tep_draw_input_field(). You'll find parameters in html_output.php. Christian Lescuyer
Guest Posted December 13, 2002 Posted December 13, 2002 Uh, perhaps it has changed in the post November releases but, I have the ability to allow guests to post reviews in the Admin. Admin->Configuration->My Store->Allow Guest to Write Reviews, true or false.
Salvo Posted December 14, 2002 Author Posted December 14, 2002 Uh, perhaps it has changed in the post November releases but, I have the ability to allow guests to post reviews in the Admin. Admin->Configuration->My Store->Allow Guest to Write Reviews, true or false. I don't have it in admin. can someone explain how to add it? Thanks Salvo
mattice Posted December 14, 2002 Posted December 14, 2002 http://www.oscommerce.com/downloads.php/co...ions,108/type,3 "Politics is the art of preventing people from taking part in affairs which properly concern them"
Guest Posted December 14, 2002 Posted December 14, 2002 Salvo, I highly recommend the contribution. I forgot it was a contribution.....Sorry.
mattice Posted December 14, 2002 Posted December 14, 2002 I think it either is in the latest CVS or will get included soon. It was mentioned in one of the reports... Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them"
Guest Posted February 9, 2003 Posted February 9, 2003 Downloaded and installed this contrib. I did everything it said and I don't see anything in admin. Did I skip something perhaps?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.