Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

spooks

Pioneers
  • Posts

    6,946
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by spooks

  1. @mr_absinthe Yes there is a bug in phpMailer which appears to be decompressing the file nu-neccessarily, I`ll look at what options are to avoid. In the meantime you could try increasing the limit for the process by adding to mail_backups.php the line ini_set('memory_limit','128M'); near the beginning.
  2. I`ll look into it, however I didn't write phpMailer just the interface. Could you say if the file is compressed or not.
  3. Uploaded New Version 1.5 (Complete Package) Modified layout for 2.3.x, Moved & modified download function, Added download(display) plus deletion of log files if found in folder, Added ability to email backup files, Replaced any depreciated functions. A few other minor display modifications. This version is also compatible with osC 2.2 and lower Log files are produced by Auto Backup Database ( http://addons.oscommerce.com/info/8374 ) which will create automatic backups periodically that are compatible with Database Backup Manager.
  4. It could be modified for that, you would need to use arrays with $_POST in the same way that the multi buy now works on modified product listings.
  5. You may have seen my recent post in tips regarding session timeouts and I`m sure many have experienced occasions when they or their clients have had their edits lost due to session timeout, one of my clients suffered exactly that very recently. Although the post mentioned provides the option of extending the session life, there is a limit you can safely reach, so I`m looking at another option. I`m considering creating a contribution that would use AJAX to make regular saves of the current edit session such that if the users session does expire they would have the option of at least regaining most of their edits. Could the community please indicate if they would be interested in such and if so what features they feel it would need.
  6. Glad you have confirmed its working OK :thumbsup: I don't want to make the auto-backup file any bigger than it absolutely has to, it would be feasible to add an email option to Database Backup Manager
  7. I have it running on a number of servers without issue, did the setup confirm that everything was OK including the application_top change? How are you logging into the server, ie are you using sessions or cpanel Are there any existing backups, if so they will still be looked at to ascertain if any are due.
  8. @mr_absinthe Good, there shouldn't be any issues, I could have mentioned before this has been tested with a 30Mb+ database of over 500,000 rows (average backup time was just over 30 secs) The only case I`ve not setup for is if anyone has a very large database that would need a split backup and they don't use sessions for admin, but does anyone still do that?
  9. Auto Backup Database (Updated) V4 :) Code re-written, now faster & more efficient (un-compressed backups are upto 50% smaller) backups take approx 1.5 secs per Mb (un-compressed). Automatically backs up your database at regular intervals whilst you are logged into admin and create archive backups at a longer intervals. Backups can be GZipped to conserve server space. Backups can now be split or extended past max execution time if you have a very large dBase. Backups are compatible with Database Backup Manager so selective restores can be made. A cron job can also be set up to create timed daily backups, regardless of whether anyone logs in or not. Archived backups can now also be auto deleted after a set period, so server won't fill up. The 'sessions' and 'whos_online' tables are now automatically excluded from auto-backups, other exclusions can easily be added if needed. The backup status is now only checked once every 5 minutes instead of on every page load. As logfiles are created in the backup folder, modifications to Database Backup Manager are included to enable display/deletion of same. Now includes separate language file to ease alterations for non English speakers. Basic install is just 5 easy steps. Compatible with all osC versions 2.3.1 and below. Contribution found at http://addons.oscommerce.com/info/8374
  10. He would had got it from the jquery site, the file given with this is just a cut down of that, as are most others, see the doc for use.
  11. I already gave code for transfering images from More Pics 6 to the Simple Multi Image Add-on I`ll repeat it here though 1. Create a new file and paste the following into it: <?php /* $Id: pic_transfer.php osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Released under the GNU General Public License instructions BACKUP YOUR DATABASE 1. Save this file to your catalog folder 2. Goto the transfer page by pasting into the url something like [url="http://www.mysite.com/catalog/pic_transfer.php"]www.mysite.com/catalog/pic_transfer.php[/url] 3. The routine will say when complete & how many images have been transfered. If you wish to use this for a different image contrib alter the sql accordingly. */ require('includes/application_top.php'); $sess_id = (tep_not_null(SID)); $sql_raw = 'select products_id, products_image_array, products_image, products_subimage1, products_subimage2, products_subimage3, products_subimage4, products_subimage5, products_subimage6 from ' . TABLE_PRODUCTS; $product_query = tep_db_query($sql_raw);$n=0; while ($products = tep_db_fetch_array($product_query)) { $products_image_array = unserialize($products['products_image_array']); if (!is_array($products_image_array)) $products_image_array = array(); for ($i = 1; $i <= 6; ++$i) { $image = $products['products_subimage' . $i]; if (tep_not_null($image)) { $products_image_array[] = $image; $n++; } } $sql_data_array['products_image_array'] = serialize($products_image_array); tep_db_perform(TABLE_PRODUCTS, $sql_data_array, 'update', "products_id = '" . (int)$products['products_id'] . "'"); } die("<center><br><br><b>Completed image transfer process, transfered " . $n . " product images to Multi Image Add-On data array.</b></center><br><br>"); ?> 2. Save the file as pic_transfer.php and upload to your catalog directory. 3. BACKUP YOUR DATABASE 4. goto the transfer page by pasting into the url something like www.mysite.com/catalog/pic_transfer.php 5. The routine will say when complete & how many images have been transfered. If you wish to use this for a different image contrib alter the sql accordingly.
  12. Thats nothing to do with this, its a paypal issue, see the support threads for your paypal module for solutions.
  13. Cron job setups vary by server, if you have any issues there speak to your hosts, I`ve tested on a variety of servers & barring variations required by each, I`ve seen no issues.
  14. This does not touch html_output.php, but your correction there is valid. With this the only real diference for PWA is password creation & the possible redirect to CHECKOUT_SHIPPING, does that occur? this uses tep_href_link for redirects, so there should be no session issues, its nothing I`ve seen b4!
  15. Thats whats supposed to happen, if you want it to ignore the additional images, just disable the detection. ie change: $addimages = (is_readable(DIR_WS_CLASSES . 'displayimages.php')); // Additional Images Present to $addimages = false;
  16. Remember in ie the rounded corners are done with javascript, so those elements are created late on the page, try placing the Dynamenu script after the roundies code, so it can draw its elements later.
  17. If your not prepared to say precise details of your charset use & how your server supports unicode, I can't help you with your issue as my server setups show no issue with ö Just replying with 'I suppose the server supports unicode' tells me nothing!! Yes \p{L} means any letter, but some chars are made of multiple combinations typically a letter & mark combination, hence \p{L}\p{M} (thats how ö is usually constucted) Your change will work, but means only those & standard a-z are covered, ie most 'foreign' chars are removed.
  18. <br /><br /><br /> Likely you created an error when you placed that code, if you put it in the wrong place that would do that, try reading up on the fundementals of php then you may see where u went wrong.
  19. <br /><br /><br /> You need to look at the code in your upload class, that's what sets the permissions for uploaded images, the default setting is 777
  20. The simplest solution is just to add the ö to the exclude list in the function. I`ve tried to allow for most chars, but some can be made up differently (ie from multiple chars) Could you find what charset you are using & how your server supports unicode?
  21. How do I install a contribution http://www.oscommerce.com/forums/index.php?showtopic=343384
  22. You need to examine your template, the trouble with using templates is the writers hack the code & do daft things making them incompatible with add-ons. For the most part you only need to replace the product_listing.php module to install this, most of the other changes are superficial. Check you are using the latest from http://addons.oscommerce.com/info/6051 This only uses standard calls, mainly from the box class, examine that to see whats been changed by your template there.
  23. Sound like a corrupted file, try re-uploading, all the 'show all' does is put % into the search, which will match all products, ie put % in the box & click 'search' is same.
  24. Within the listing you have: <td width="1" class="bg6"><img src="images/spacer.gif" border="0" alt="" width="1" height="1"></td> but niether that class or that image appears anywhere in my code (thats whats makng those lines) you also have another class bg16, that again is not in my code!! perhaps you are using someone elses version of my code??
  25. Their note errors, they are notices, yes I am aware that there are a number, but to avoid the issue without at the same time adding a lot of bloat means the small benifit of dealing them is not worth the cost. ie tep_get_att_price is not a constant but a function, that only appears if you have other add-ons installed (you will be aware of the compatibility list) so either say add all those add-ons, or add a lot of extra code to ensure the checks for those add-on functions do not cause notices, or just ignore the notices. error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); will ensure you get no notice or depreciated messages.
×
×
  • Create New...