Jump to content

clees4605

Members
  • Content count

    35
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    cath
  • Gender
    Male
  1. Hi guys probably a quickie for you, can anybody tell me how (if it is possible) I would change the position on the coupond/discount code box on the payment information page (checkout_payment.php) I would like it nearer the top, so that it shows above order comments box, if it possible. Many Thanks Cath
  2. Many thanks I have only just started to do these contributions, so its a minefield for me. I managed all the security ones, they were pretty easy, but i was losing the will to live with this one. I had tried it several times but to no avail. Anyway, walked away and came back, did it all again, printed everything out and had my laptop and pc, and HEY PRESTO, it works. (well for the time being anyway - till i mess something up again) so i have to say this is a brilliant contribution, its what i really needed. It was just be not doing it right. Hope you sort your out. Cath
  3. Hi wonder if you guys can help me. I have installed the new files and manually altered the existing files. It all seems to work fine in the admin section, looks a really good add on. I am having a problem though, can anyone help? When I put the prouct in my cart and press checkout i get: Warning: require_once(includes/classes/discount_coupon.php) [function.require-once]: failed to open stream: No such file or directory in /home/vivalab2/public_html/catalogue2/includes/classes/order.php on line 218 Fatal error: require_once() [function.require]: Failed opening required 'includes/classes/discount_coupon.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vivalab2/public_html/catalogue2/includes/classes/order.php on line 218 can anyone shed any light on this, which file is wrong. I am very new to this so can you please explain it quite simply. many thanks cath
  4. clees4605

    SiteMonitor

    Hi Jack forget my last post. All I had to do was press update after I had gone into configure on the admin file. Thanks for the cont I have already found 3 files I need to get rid off. can any of guys explain to me chmod means. thanks
  5. clees4605

    SiteMonitor

    Hi Jack I have just installed this add on, this is my first install of an add on, where i get to step 6: -------------------------------------------------------------------------- Step 6: Go to admin->Sitemonitor->Admin and click the top button. A message should be displayed saying that the file was ran for the first time. Then click on the second or third button to actually run a test. A "No mismatches found" message should be displayed. If not, something is wrong with the installation. its coming up with this: Warning: opendir(/home/username/public_html) [function.opendir]: failed to open dir: No such file or directory in /home/vivalab2/public_html/catalogue2/admin/includes/functions/sitemonitor_functions.php on line 162 Warning: readdir(): supplied argument is not a valid Directory resource in /home/vivalab2/public_html/catalogue2/admin/includes/functions/sitemonitor_functions.php on line 164 Reference file creation failed. what have i done wrong? many thanks cath
  6. ps this is what i have on my database.php <?php /* $Id: database.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 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($link = 'db_link') { global $$link; return mysql_insert_id($$link); } 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, $link = 'db_link') { global $$link; if (function_exists('mysql_real_escape_string')) { return mysql_real_escape_string($string, $$link); } elseif (function_exists('mysql_escape_string')) { return mysql_escape_string($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; } } ?> hope this helps. many thanks
  7. HELP PLEASE. I tried this addon. Put everything where it should be (I am almost certain), that was all ok. The gave mysql the 2 commands and this is whats happened: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'vivalab2_osc1'@'localhost' (using password: YES) in /home/vivalab2/public_html/catalogue/includes/functions/database.php on line 19 Unable to connect to database server! Help please, I have tried to restore but I can even get into my admin files. I have lost all of it and can't get to it. I am only fairly new to all this so maybe I shouldn't have tried it. Thanks Cath
  8. clees4605

    Invalid IPN Process error

    I have just had the same problem. Any help is appreciated. thanks cath
×