tim_ver Posted August 26, 2006 Posted August 26, 2006 I am trying to find out if there is a way to exclude words users can use(swear,etc) in reviews they write. Also I would like to be able to above the revies before they go live in the admin panel and also be able to delete the when ever. Is this posible is there a mod to do this? Thanks
tim_ver Posted August 26, 2006 Author Posted August 26, 2006 Thanks Vger works great, except I get an error after I click the submit review button: Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/v/public_html/Shop/includes/header.php:203) in /home/v/public_html/Shop/includes/boxes/categories.php on line 13 Both lines in the two files are the same code: function tep_show_category($counter) { How do I fix this? Thanks
Guest Posted August 27, 2006 Posted August 27, 2006 I think that is your problem, it has nothing to do with the review approval system, the tep_show_category is being called twice and the error says it cannot be declared twice. Try removing the code from your headers file, or alternatively search the forum for: Cannot redeclare tep_show_category
tim_ver Posted August 27, 2006 Author Posted August 27, 2006 Ok, thanks. I have removed the line for header.php but then I get an error on the main page: Fatal error: Call to undefined function: tep_show_category() in /home/v/public_html/Shop/includes/header.php on line 308 The code is: tep_show_category($first_element); Arghhhh, it displays no categories or new items or the footer on the main index.php page. :( Ideas?
tim_ver Posted August 28, 2006 Author Posted August 28, 2006 I commented out the line: function tep_show_category($counter) { from line 13 in categories.php. Now that I did this it gives me the review submited but I get this error: Parse error: syntax error, unexpected $end in /home/v/public_html/Shop/includes/column_right.php on line 41 That line is just a ?> The full code for this file(column_right.php) is: <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { } else { include(DIR_WS_BOXES . 'product_notifications.php'); } include(DIR_WS_BOXES . 'add_favorites.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> Also I have double category boxes on the left. Someone please help me out here?? Please. Thanks Much. :)
tim_ver Posted August 28, 2006 Author Posted August 28, 2006 Anyone please help me out with this? Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.