This is a discussion on Alright check out my new store within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi Everyone, Alright I have my new OSCMAX v1.7 site go LIVE today. Please take a look at it at ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi Everyone, Alright I have my new OSCMAX v1.7 site go LIVE today. Please take a look at it at www.GiftsUniqueShop.com and tell me what you think. But please Keep in mind that this is a LIVE SHOP so please DO NOT place any orders unless you intend to buy something. A couple of things that I have found that I am having touble with that I'm hoping for some help with is: 1) If you notice on the homepage on tne Navhead tab on top of the categories box, the "Specials For Month" and on "New Products For Month" I have some extra corner gif that I can not find where to turn these off. Does anyone know how I can turn these off? I look at the php file for these boxes and I couldn't get it off without turning off the whole tab. 2) If you click on any of the main Categories that have sub-categories I get the following error message and not the sub-category pictures; Fatal error: Cannot redeclare tep_db_connect() in /home/giftttny/public_html/includes/functions/database.php on line 13 This is my database.php; <?php /* $Id: database.php,v 1.21 2003/06/09 21:21:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); } function tep_db_error($query, $errno, $error) { die('<font color="#000000"><b>' . $errno . ' - ' . $error . '<br><br>' . $query . '<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font>'); } function tep_db_query($query, $link = 'db_link') { global $$link; if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); } $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error()); if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) { $result_error = mysql_error(); error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); } return $result; } function tep_db_perform($table, $data, $action = 'insert', $parameters = '', $link = 'db_link') { reset($data); if ($action == 'insert') { $query = 'insert into ' . $table . ' ('; while (list($columns, ) = each($data)) { $query .= $columns . ', '; } $query = substr($query, 0, -2) . ') values ('; reset($data); while (list(, $value) = each($data)) { switch ((string)$value) { case 'now()': $query .= 'now(), '; break; case 'null': $query .= 'null, '; break; default: $query .= '\'' . tep_db_input($value) . '\', '; break; } } $query = substr($query, 0, -2) . ')'; } elseif ($action == 'update') { $query = 'update ' . $table . ' set '; while (list($columns, $value) = each($data)) { switch ((string)$value) { case 'now()': $query .= $columns . ' = now(), '; break; case 'null': $query .= $columns .= ' = null, '; break; default: $query .= $columns . ' = \'' . tep_db_input($value) . '\', '; break; } } $query = substr($query, 0, -2) . ' where ' . $parameters; } return tep_db_query($query, $link); } function tep_db_fetch_array($db_query) { return mysql_fetch_array($db_query, MYSQL_ASSOC); } function tep_db_num_rows($db_query) { return mysql_num_rows($db_query); } function tep_db_data_seek($db_query, $row_number) { return mysql_data_seek($db_query, $row_number); } function tep_db_insert_id() { return mysql_insert_id(); } function tep_db_free_result($db_query) { return mysql_free_result($db_query); } function tep_db_fetch_fields($db_query) { return mysql_fetch_field($db_query); } function tep_db_output($string) { return htmlspecialchars($string); } function tep_db_input($string) { return addslashes($string); } function tep_db_prepare_input($string) { if (is_string($string)) { return trim(tep_sanitize_string(stripslashes($string))); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } ?> Does anyone know what might be causing this error and how can I fix this so that I will get my sub-category pictures? 3) Now on this one please be carefull not to order anything if you do not intend to buy. But when you add something to the shopping cart and process to check out you will notice that the item(s) in the shopping cart box look funny and I also get the extra corner gif problem that I have on line 1 above. Does anyone know how I can fix these problem? Will that's all that I could find for right now. If anyone finds any other problems could you please let me know or if you know how I can fix any of the above problems I would really appreciate the help. Let me know what you think about my site. Thank You, Jose www.GiftsUniqueShop.com |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Alright!!!!!!! I finally figure out problem #1 above. I got the corner gif problem fix by going to my catalog/includes/classes/boxes.php and just putting in a couple of // where it called for the corner gif. I don't know how many times I had looked at this and miss it Know If I can just get the other 2 problems fix? Any suggestions???? Juudoka |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help me ...after check... | Thang422 | osCMax v2 Installation issues | 0 | 08-02-2005 05:36 PM |
| How to Setup a Test Store using your Web Store Code | mnpolock | osCMax v1.7 Installation | 1 | 05-24-2005 06:05 AM |
| Missing Images/Store Data on New Install? Check here | zenaphex | osCMax v1.7 Installation | 0 | 10-18-2004 11:58 AM |