novationtech Posted February 25, 2006 Share Posted February 25, 2006 Hello, I am using oscommerce to design a site for a customer (www.tropicaloceanreef.com/store) and they have asked if it is possible to remove the "reviews" functions and to adjust the counter..(it's them not me...). As far as the counter, it's not critical, however they would really like the reviews function to disappear.. Any help would be appreciated.. Thanks in advance. Link to comment Share on other sites More sharing options...
rabbitseffort Posted February 25, 2006 Share Posted February 25, 2006 you can comment out the reviews and the counter can be made into a real counter if that is what you mean "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey" Link to comment Share on other sites More sharing options...
novationtech Posted February 25, 2006 Author Share Posted February 25, 2006 you can comment out the reviews and the counter can be made into a real counter if that is what you mean Thank you for the reply, what I mean is take out the whole option for the user to leave a review. And how would the counter be changed? Thank you. Link to comment Share on other sites More sharing options...
rabbitseffort Posted February 25, 2006 Share Posted February 25, 2006 I will have to think for a sec to understand how to remove the option for leave a review--I have a couple ideas--but for the counter, here is my includes/counter.php file--upload it over yours and that should make it a unique visitor counter instead of a per click counter which is what it is at a new install...make sure to save your old one in case something goes wrong but I do not see how it could, hope this helps! <?php /* $Id: counter.php,v 1.5 2003/02/10 22:30:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ $wo_session_id = tep_session_id(); $known_customer_query = tep_db_query("select count(*) as count from " . TABLE_WHOS_ONLINE . " where session_id = '" . $wo_session_id . "'"); $known_customer = tep_db_fetch_array($known_customer_query); $counter_query = tep_db_query("select startdate, counter from " . TABLE_COUNTER); if ($known_customer['count'] > 0) { // User already known, don't add 1... $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter']); } else { if (!tep_db_num_rows($counter_query)) { $date_now = date('Ymd'); tep_db_query("insert into " . TABLE_COUNTER . " (startdate, counter) values ('" . $date_now . "', '1')"); $counter_startdate = $date_now; $counter_now = 1; } else { $counter = tep_db_fetch_array($counter_query); $counter_startdate = $counter['startdate']; $counter_now = ($counter['counter'] + 1); tep_db_query("update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'"); } } $counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4))); ?> "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.