Page 78 of 110 FirstFirst ... 2868767778798088 ... LastLast
Results 771 to 780 of 1096
  1. #771
    Join Date
    Jan 2012
    Location
    Montreal
    Posts
    84
    Plugin Contributions
    0

    Default Disable IHv3 for certain pages and sidebars

    Trying to disable the Image Handler v3 Hover effect for certain pages. I like how it is functional on the product page, however, I don't like the effect on the Home page under the Review and Featured Items is displayed.

    Thanks

  2. #772
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Disable IHv3 for certain pages and sidebars

    Quote Originally Posted by thebigkick View Post
    Trying to disable the Image Handler v3 Hover effect for certain pages. I like how it is functional on the product page, however, I don't like the effect on the Home page under the Review and Featured Items is displayed.

    Thanks
    I'm afraid this is an all or none feature.. If I recall correctly it would require a fair bit of coding work to disable it selectively as you would like.. Perhaps others can offer more insight on this..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #773
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 3 Support Thread

    So people will stop asking about Clydes "fix" for IH3 with Zen Cart v1.5. As I suspected getting IH3 to show up in the admin is only HALF the battle.. IH3 needs a RE-WRITE to work with v1.5..

    Quote Originally Posted by DrByte View Post
    But converting addons for v1.5 compatibility requires two primary things:
    a) rebuilding the menu options by inserting the required page associations into the database.
    b) rewriting all forms to use the POST method instead of GET whenever those forms trigger UPDATE statements of any sort into the database. GET parameters should only be used for things like filters, and even then they need to be sanitized. In fact, the other part of form rewriting is that ALL inputs need to be sanitized before use.

    If you don't do those things then your admin won't show the menu options, and even if they did they might be non-functional because if the forms aren't rewritten and sanitized then all updates will just redirect you to the admin home screen instead of doing the action required/expected..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #774
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 3 Support Thread

    I KNEW I was right about this when I made the statement earlier in this thread..

    Quote Originally Posted by DrByte View Post
    The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
    There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
    So, merely adding menu options isn't sufficient for all addons.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #775
    Join Date
    Jan 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Image Handler 3 Support Thread

    Hello, i have a problem with bmz_cache. It have too many files.
    I have a -sort-of-solution ---> lets do cron the job.
    But when i configure cron.php (code below) it do not work.
    I have this cron solution for -cache-admin-.log- problem. ^^ but that do not work for bmz_cache.

    Can you help me?
    --script---
    PHP Code:
    <?php
         
    function recursiveDelete($str){
             if(
    is_file($str)){
                 return @
    unlink($str);
             }
             elseif(
    is_dir($str)){
                 
    $scan glob(rtrim($str,'/data/web/juwelen.sk/web/bmz_cache/').'/*');
                 foreach(
    $scan as $index=>$path){
                     
    recursiveDelete($path);
                 }
                 return @
    rmdir($str);
             }
         }

    function 
    delete_folder($tmp_path){
    }
    ?>
    -my-sort-of-solution for -cache-admin-.log- problem----
    PHP Code:
    <?php
    if ('deletespecificfiles.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
         die (
    '<h2>Direct File Access Prohibited</h2>');
    }
    else {
    $foldertodelete  '/data/web/juwelen.sk/web/cache/';
    //DELETE LOG FILES
    $fileTypes1      '*.log';
    $expire_time1    3;
    foreach (
    glob($foldertodelete $fileTypes1) as $Filename1) {
    $FileCreationTime1 filectime($Filename1);
    $FileAge1 time() - $FileCreationTime1;
    if (
    $FileAge1 > ($expire_time1 60)){
    unlink($Filename1);
    }
    }
    }
    ?>

  6. #776
    Join Date
    Jan 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Image Handler 3 Support Thread

    OK. I find solution myself. For sake of those who have those errors, try this solution.

    **this solution needs Cron setup**

    *************
    Error n1.:
    HTML Code:
    charset `windows-1250' not supported, assuming iso-8859-1 in .../bmz_image_handler.class.php on line 690
    This kind of error i can repair. It is because of filename. Is in my language and i can not find a solution (i try many solutions -FAIL), only delete error log.


    cron setup -> time- * * * * * ,, cron script put in directory"../cron/"

    create a file cron1.php (and copy code)
    PHP Code:
    <?php
    if ('deletespecificfiles.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
         die (
    '<h2>Direct File Access Prohibited</h2>');
    }
    else {
    $foldertodelete  '  --your path to--/web/cache/  ';
    //DELETE Log FILES
    $fileTypes1      '*.log';
    $expire_time1    3;
    foreach (
    glob($foldertodelete $fileTypes1) as $Filename1) {
    $FileCreationTime1 filectime($Filename1);
    $FileAge1 time() - $FileCreationTime1;
    if (
    $FileAge1 > ($expire_time1 60)){
    unlink($Filename1);
    }
    }
    }
    ?>
    when cron start - in every 1minute - he delete only log files in /cache

    *************
    Error n2.:
    BIG //bmz_cache//.

    cron setup -> time- 0 12 * * 7 ,, cron script put in directory"../cron/"

    I setup cron to start every Sunday midnight (because, bmz_cache needs to be filled /for some time/ because if bmz_cache is clear, image handler must create new cache - that slows server (tested on localhost and live shop).

    create a file cron2.php (and copy code)
    PHP Code:
    <?php
    if ('deleteallfiles.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
    die (
    '<h2>Direct File Access Prohibited</h2>');
    }
    else {
    $foldertodelete  ' -- your path to -- web/bmz_cache/0/';
    $fileTypes1 '*.*';
    $expire_time13;
    foreach (
    glob($foldertodelete $fileTypes1) as $Filename1) {
    $FileCreationTime1 filectime($Filename1);
    $FileAge1 time() - $FileCreationTime1;
    if (
    $FileAge1 > ($expire_time1 60)){
    unlink($Filename1);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/1/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/2/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/3/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/4/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/5/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/6/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/7/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/8/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/9/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/a/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/b/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/c/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/d/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/e/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    $foldertodelete  ' -- your path to -- web/bmz_cache/f/';
    $fileTypes2      '*.*';
    $expire_time2    3;
    foreach (
    glob($foldertodelete $fileTypes2) as $Filename2) {
    $FileCreationTime2 filectime($Filename2);
    $FileAge2 time() - $FileCreationTime2;
    if (
    $FileAge2 > ($expire_time2 60)){
    unlink($Filename2);
    }
    }
    }
    ?>
    ----------------------
    Disclaimer

    *Use it wisely.
    *It is not, that my solution is the best. Is only solution which works well for me. If you have a better solution -- share it please with community.
    *I am not a Jenius - i only edit some PHP code from internet.
    (original page is here -http://www.devshed.com/c/a/Administr...cript-Example/)
    *cron setup is different on "different" server.
    *And the last -- sorry my english - i am not native U.S. I am only a student

  7. #777
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Image Handler 3 Support Thread

    [QUOTE=Querk;1095893]Hello, i have a problem with bmz_cache. It have too many files.
    I have a -sort-of-solution ---> lets do cron the job.
    But when i configure cron.php (code below) it do not work.
    I have this cron solution for -cache-admin-.log- problem. ^^ but that do not work for bmz_cache.

    Can you help me?

    How many files is "too many files"?
    What error are you receiving?
    or is it a hosting restriction?

  8. #778
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Image Handler 3 Support Thread

    Huh? I thought the point of Image Handler was that it cached the files. If you delete them then what is the point of having Image handler? If the store has any level of traffic whatsoever the cached images are just going to be re-created pretty much straight away and you just slow down the page load for some customers.

    A much better solution would be to have a server that has enough disk space to store all the images that are needed for your store.

  9. #779
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Image Handler 3 Support Thread

    Quote Originally Posted by niccol View Post
    Huh? I thought the point of Image Handler was that it cached the files. If you delete them then what is the point of having Image handler? If the store has any level of traffic whatsoever the cached images are just going to be re-created pretty much straight away and you just slow down the page load for some customers.

    A much better solution would be to have a server that has enough disk space to store all the images that are needed for your store.
    Nods in agreement..



    Quote Originally Posted by Querk View Post
    *Use it wisely.
    *It is not, that my solution is the best. Is only solution which works well for me. If you have a better solution -- share it please with community.
    *I am not a Jenius - i only edit some PHP code from internet.
    (original page is here -http://www.devshed.com/c/a/Administr...cript-Example/)
    *cron setup is different on "different" server.
    *And the last -- sorry my english - i am not native U.S. I am only a student
    I agree with niccol.. Your solution is NOT recommended for ANYONE.. The point of the cache folders is to help improve site performance. (A HUGE reason to use Image Handler) Your solution trashes this feature and in fact will probably slow performance down..

    My "better solution" (since you asked)?? As niccol points out, host your site on a server that will not put restrictions on your site that will prevent you from using Image Handler. Chances are these restrictions will eventually limit your ability to run any kind of decent website anyway..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #780
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Image Handler 3 Support Thread

    Hold on Querk, I think there's a confusion between bmz_cache and cache here. This charset problem produces thousands of log files in the cache folder. On the other hand, the bmz_cache folder holds cached images which are required and will be generated again when you delete them.

    I had the same problem with thousands (not just too many) files created in the cache folder every day. If you go back a few pages to post #676, you will see how I solved it based on a previous suggestion by niccol. No cron jobs or anything else: just a one-line change in a file. Read the post, see if this is really the issue and leave the bmz_cache alone.

 

 
Page 78 of 110 FirstFirst ... 2868767778798088 ... LastLast

Similar Threads

  1. v150 Image Handler 4 (for v1.5.x) Support Thread
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1687
    Last Post: 17 Nov 2024, 07:26 PM
  2. AJAX IMAGE Swapper support thread
    By jaycode in forum All Other Contributions/Addons
    Replies: 785
    Last Post: 13 Jan 2016, 11:48 PM
  3. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  4. Image Titles Support Thread
    By gjh42 in forum All Other Contributions/Addons
    Replies: 155
    Last Post: 9 Sep 2014, 04:51 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR