Results 1 to 10 of 1688

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Re: Image Handler 4 Support Thread

    Hi,
    have installed ih4 on a fresh install and everything went smooth, i think it has problem with product status icon in admin after install.

    after installing my product status icon wont switch product on and off

    admin/includes/modules/category_product_listing.php

    PHP Code:
    if ($products->fields['products_status'] == '1') {
            echo 
    '<a href="' zen_href_link(FILENAME_CATEGORIES'action=setflag&flag=0&pID=' $products->fields['products_id'] . '&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image(DIR_WS_IMAGES 'icon_green_on.gif'IMAGE_ICON_STATUS_ON) . '</a>';
          } else {
            echo 
    '<a href="' zen_href_link(FILENAME_CATEGORIES'action=setflag&flag=1&pID=' $products->fields['products_id'] . '&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '')) . '">' zen_image(DIR_WS_IMAGES 'icon_red_on.gif'IMAGE_ICON_STATUS_OFF) . '</a>';
          }
          if (
    zen_get_product_is_linked($products->fields['products_id']) == 'true') {
            echo 
    '&nbsp;&nbsp;' zen_image(DIR_WS_IMAGES 'icon_yellow_on.gif'IMAGE_ICON_LINKED) . '<br>';
          } 
    and replaced with this code from backup file created automatically during install

    PHP Code:
    if ($products->fields['products_status'] == '1') {
            echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
            <input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_green_on.gif" title="<?php echo IMAGE_ICON_STATUS_ON?>" />
            <input type="hidden" name="flag" value="0" />
            </form>
    <?php
          
    } else {
            echo 
    zen_draw_form('setflag_products'FILENAME_CATEGORIES'action=setflag&pID=' $products->fields['products_id'] . '&cPath=' $cPath . (isset($_GET['page']) ? '&page=' $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' $_GET['search'] : ''));?>
            <input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_red_on.gif" title="<?php echo IMAGE_ICON_STATUS_OFF?>"/>
            <input type="hidden" name="flag" value="1" />
            </form>
    <?php
          
    }
          if (
    zen_get_product_is_linked($products->fields['products_id']) == 'true') {
            echo 
    '&nbsp;&nbsp;' zen_image(DIR_WS_IMAGES 'icon_yellow_on.gif'IMAGE_ICON_LINKED) . '<br>';
          }
    hope this makes sense and maybe my solution could be checked or maybe the problem is to do with my install,

    thanks for great add on
    bryan

  2. #2
    Join Date
    Dec 2007
    Posts
    74
    Plugin Contributions
    0

    Default Re: Image Handler 4 Support Thread

    Quote Originally Posted by bn17311 View Post
    ...or maybe the problem is to do with my install.
    It's not your install. Just checked two shops I'm working on and you're right. Can't turn them on or off. Thanks for posting this, your 'fix' also worked for me.

    (Although the readme already told us to check on this file, but since they were the original files I did not not compare them after the install)

 

 

Similar Threads

  1. v158 Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 749
    Last Post: 20 May 2026, 03:47 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. 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
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

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