Jump to content

Demitry

Members
  • Content count

    288
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Demitry

  1. Demitry

    KissIT Image Thumnailer

    @raiwa hey Rainer, Could you please check & test the tep_destroy_thumbs_dir() function in /includes/functions/general.php? I think this is where my thumbs problem is coming from. The chmod in that function is not setting anything to 777, and when I reset the thumbs in Admin > Configuration > Images, it does not remove the thumbs directory or any of its contents as I think the function is supposed to do. Thanks.
  2. Demitry

    KissIT Image Thumnailer

    ok, I fixed it, but this is a bug with this addon, because the fix was to go into /images/thumbs/ and delete all folders of thumbs and then regenerate them by re-loading the home page again.
  3. Demitry

    KissIT Image Thumnailer

    I opened a 3rd browser (FF, Chrome, and now IE) that does not have any cache of this page and I cleared the cache before loading the product page for A Bug's life,... same problem. For some reason the thumbs cache reset is not clearing the cache for this initial product page I loaded. This is not a browser cache problem. Any suggestions please?
  4. Demitry

    KissIT Image Thumnailer

    @raiwa I did that and the problem persists in the 2 browsers I checked. However, there is a bit more to this issue. I initially did this on A Bug's Life sample prod and when I went to the home page and then checked the other product pages, they are fine and following the setting I made in the admin section for those images. However, when I go back to that product page for A Bug's Life, the watermark is there and the image is not upsized (as per my setting to allow upsizing).
  5. Demitry

    KissIT Image Thumnailer

    I read the instructions and setting the watermark size to 0 and resetting the thumbs cache afterwards did not work either.
  6. Demitry

    KissIT Image Thumnailer

    @raiwa hey Rainer, After installing this addon including the product_info.php mods on my new BS Edge, I went into Admin > Configure > Images and tried to find the control to remove the watermark. I removed the watermark file name and reset the thumbs, then cleared the store cache and did a hard refresh (F5) on the browser, but the watermark file is still covering the image on the product_info page. Also, I assume that the thumbs reset option is a regeneration of all thumbs and should only be set to "reset" for that purpose and then reversed back to "false".. is that correct? So, is there a better way to disable the watermark or should I try adding a 1px transparent file as the watermark?
  7. Demitry

    Get 1 Free

    Right,.. I saw that. Cheers to Jim as well. ...really great stuff!
  8. Demitry

    Get 1 Free

    @Tsimi Excellent! ..really great job on this addon! Thank you much. Demitry
  9. Demitry

    Get 1 Free

    @Tsimi Thank you Lambros. One last thing,.. there was a conditional statement you added based on status ..a post from March 3rd and 4th of 2015 (page 17). This one: if (($free_product['get_1_free_expires_date'] > date('Y-m-d H:i:s')) || ($free_product['status'] == 1)) { I don't see it in /includes/modules/content/get_1_free/cm_pi_get_1_free.php You said prior that it fixed an issue, so should it be added?
  10. Demitry

    Get 1 Free

    cool, thanks!
  11. Demitry

    Get 1 Free

    @Tsimi Wow! That was fast man! I uninstalled the other one and am installing this one. One thing,.. in the install.txt there is mention of a new file: catalog/includes/functions/get_1_free.php but it is not in the package.
  12. Demitry

    Get 1 Free

    @Tsimi hey Lambros, If you do an update release, please don't forget to include that product_info.php page bug fix that you and David (Roaddoctor) worked on. I only found it on this forum after installing the addon. It's on page 17. Thanks. Demitry
  13. Demitry

    Get 1 Free

    this one from Sept 20th, 2015: Hi tsimi, I have installed get 1 free on oscommerce bootstrap master. Now I have to do an adjustment in shoppingcart.php on line 102. $products_name .= '<br>' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'style="width: 45px;"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . tep_draw_hidden_field('free[]', $products[$i]['free']) . ' ' . tep_draw_button(NULL, 'glyphicon glyphicon-refresh', NULL, NULL, NULL, 'btn-info btn-xs') . ' ' . tep_draw_button(NULL, 'glyphicon glyphicon-remove', tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product'), NULL, NULL, 'btn-danger btn-xs'); it comes to glyphicon. it is removed in master ???? should it be adjusted or not ???? because it works properly I think. and there are also instructions for $HTTP_POST_VARS and $HTTP_GET_VARS, which don't exist in BS Edge. And another line that was re-coded for BS Edge, which does not match the instructions. I cannot remember what file it's in at the moment. Like I said, not a big deal, but would be for someone less technical.
  14. Demitry

    Get 1 Free

    @Tsimi Hey Lambros, I installed this addon and just wanted to let you know that the latest release has instructions that do not fit the BS Edge install. For one thing, there are no file name definitions, or a files for /admin/includes/filesnames.php or /includes/filenames.php And, there are code changes like what Will (dinopacha) mentioned above for shopping_cart.php, ..plus other instructions. That's not a big deal for me, because I can work my way around code, but it would be a for a non-technical user.
  15. Demitry

    KissIT Image Thumnailer

    @raiwa Thanks Rainer, ..great contribution!
  16. Demitry

    Multi_Vendor_Shipping new thread

    @kymation Jim, Do you have a code patch to make this BS Edge compatible? Thanks.
  17. Demitry

    Multi_Vendor_Shipping new thread

    @kymation hi Jim, Is there a version of this MVS addon for BS Edge?
  18. Demitry

    KissIT Image Thumnailer

    @raiwa Hi Rainer, I'm about to install the BootStrap version of this addon into a BS Edge set-up. I have not yet looked through the files in the package, but I did search this entire forum for the following. I noticed that BS Edge adds the img-responsive class to tep_image() and this BootStrap class has the height set to auto. The same thing with the thumbnail class. So, ..does this addon address this image responsive resizing?
  19. @kymation hey Jim, Thanks, ..I didn't know that. I actually thought that the following setting was responsible for the session not expiring. However, I did not move to test it because it would have to be the same setting for both the admin panel and the catalog sessions,.. and that was not the case. session.cookie_lifetime = 0 Instead, I took what Carl Nordstrom did improved on it, and made it into an addon that can controlled from Admin>Configuration>Sessions. I tested it and it works great. The screenshot is below. Please take a look and see if it can be improved. https://apps.oscommerce.com/Apps&2MAEV&session-expiration-control @burt hey Burt, You're probably right and this is not a bug with osC, but the point here is that if this problem occurs over various hosting set-ups, then shouldn't the store owner have control over it from the application side?
  20. @burt My hosting company right now is webhostinghub.com and I have the latest PHP version for this BS Edge install. I did however, look in the php.ini file after you said it is a configuration issue on my end. And I did find the following code in it. Though, if this is a configuration piece that can be controlled from the application admin area, then it probably should be, right? [Session] ; Handler used to store/retrieve data. session.save_handler = files ; Argument passed to save_handler. In the case of files, this is the path ; where data files are stored. Note: Windows users have to change this ; variable in order to use PHP's session functions. ; As of PHP 4.0.1, you can define the path as: ; session.save_path = "N;/path" ; where N is an integer. Instead of storing all the session files in ; /path, what this will do is use subdirectories N-levels deep, and ; store the session data in those directories. This is useful if you ; or your OS have problems with lots of files in one directory, and is ; a more efficient layout for servers that handle lots of sessions. ; NOTE 1: PHP will not create this directory structure automatically. ; You can use the script in the ext/session dir for that purpose. ; NOTE 2: See the section on garbage collection below if you choose to ; use subdirectories for session storage session.save_path = /tmp ; Whether to use cookies. session.use_cookies = 1 ; This option enables administrators to make their users invulnerable to ; attacks which involve passing session ids in URLs; defaults to 0. ; session.use_only_cookies = 1 ; Name of the session (used as cookie name). session.name = PHPSESSID ; Initialize session on request startup. session.auto_start = 0 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. session.cookie_lifetime = 0 ; The path for which the cookie is valid. session.cookie_path = / ; The domain for which the cookie is valid. session.cookie_domain = ; Handler used to serialize data. php is the standard serializer of PHP. session.serialize_handler = php ; Define the probability that the 'garbage collection' process is started ; on every session initialization. ; The probability is calculated by using gc_probability/gc_divisor, ; e.g. 1/100 means there is a 1% chance that the GC process starts ; on each request. session.gc_probability = 1 session.gc_divisor = 100 ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetime = 1440 ; NOTE: If you are using the subdirectory option for storing session files ; (see session.save_path above), then garbage collection does *not* ; happen automatically. You will need to do your own garbage ; collection through a shell script, cron entry, or some other method. ; For example, the following script would is the equivalent of ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes): ; cd /path/to/sessions; find -cmin +24 | xargs rm ; PHP 4.2 and less have an undocumented feature/bug that allows you to ; to initialize a session variable in the global scope, albeit register_globals ; is disabled. PHP 4.3 and later will warn you, if this feature is used. ; You can disable the feature and the warning separately. At this time, ; the warning is only displayed, if bug_compat_42 is enabled. session.bug_compat_42 = 1 session.bug_compat_warn = 1 ; Check HTTP Referer to invalidate externally stored URLs containing ids. ; HTTP_REFERER has to contain this substring for the session to be ; considered as valid. session.referer_check = ; How many bytes to read from the file. session.entropy_length = 0 ; Specified here to create the session id. session.entropy_file = ;session.entropy_length = 16 ;session.entropy_file = /dev/urandom ; Set to {nocache,private,public,} to determine HTTP caching aspects ; or leave this empty to avoid sending anti-caching headers. session.cache_limiter = nocache ; Document expires after n minutes. session.cache_expire = 180 ; trans sid support is disabled by default. ; Use of trans sid may risk your users security. ; Use this option with caution. ; - User may send URL contains active session ID ; to other person via. email/irc/etc. ; - URL that contains active session ID may be stored ; in publically accessible computer. ; - User may access your site with the same session ID ; always using URL stored in browser's history or bookmarks. session.use_trans_sid = 0
  21. ok, so I noticed something that I think needs to be addressed. While working on my site I am seeing that my own customer test-account session never ends. The one for my admin session seems to end sporadically and only after a few days. Today I searched for a fix and found one, though I have not implemented it yet. Possibly for a future release, this should be something the store owner could control and it should not be set to last forever as default. So, my question is,.. is the solution in the link above the best one or is there a different fix for this issue? Thanks.
  22. @Tsimi Lambros, thanks man! I actually did all that except for the conditional statement. I'll add that now, thanks again. Demitry
  23. @Tsimi ok, ..what is was is that I renamed a variable and then uploaded all files with the changed variable name. After that, the admin panel was displaying an inputbox instead of a the choice to enable the divider. So, I uninstalled and re-installed both modules and that fixed it. However, the dividers are still not displaying in the XS menu... not sure why.
  24. @Tsimi hang on, let me fix something first before you mess with it. I made a change that is now causing that divider option not to show up in the admin panel. So let me fix that before you spend any time on it. Sorry about that. I'll let you know once I fix that piece and if the divider is still not displaying.. thanks man
×