Forums / Customization from the Admin / Twitch Admin Product Thumbnails (TAP Thumb)

Twitch Admin Product Thumbnails (TAP Thumb)

Views: 27,418

Results 21 to 40 of 41
10 Feb 2020, 10:01 PM
#21
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Twitch Admin Product Thumbnails (TAP Thumb)

k8ee:

First off, thank you so much for this update! This is such a useful addon.

I had been having an issue using this in conjunction with Image Handler 5. Specifically on the admin side resulting in a fatal php error. For anyone else having this issue, I tracked the issue down to the language file. My solution, while probably somewhat crude, was to open the admin/includes/languages/english/extra_definitions/TAP_thumb.php and commented out the bottom two lines of code so that my file only looked like this:

<?php // ----- //Twitch admin images // define('TABLE_HEADING_TAPTHUMB_IMG', 'Image'); ``` > > I also renamed the file to thumb.php, as for some reason earlier in my troubleshooting I had commented out the entire file and it had not resolved my issue. Anyway, things have been working fine as far as I can tell, will report back if I encounter any anomalies. Hope this is helpful to someone. I am going to cross post in the IH5 thread as well. Could you elaborate on the page you were receiving this error? It's unusual that this language file would cause a fatal error. Renaming it will simply load the same information - the define as text '**Image**' as it was - having the original name relative to how the language file is being called.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

11 Feb 2020, 9:23 PM
#22
k8ee avatar

k8ee

New Zenner

Join Date:
Sep 2009
Location:
Ontario, Canada
Posts:
23
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Ok, yes, I actually came back to post a better hotfix, but I will also explain the error more clearly.

The conflict seems to be with IH5 not wanting to play nice. At first, I resolved the error by removing the language file, just by process of elimination - but this wasn't a long term solution. So then I tried commenting out various lines, which doesn't help because, of course, those titles are sort of needed. So what I ended up doing was copying the three lines of code from TAP_thumb directly into the IH5 file, image_handler_extra_definitions, and removing the other file completely. Why this works is beyond me... website management is an unofficial job title of mine, so I have no useful answers.

The error itself only showed up when an attempt was made in the admin to make a change to the database. So navigating turned up no fatal error, but if you attempted to edit a product or change a setting, hitting save would result in a blank page. The log file showed the following:

#1 header() called at [//admin/includes/init_includes/init_templates.php:28]
#2 require(/
/admin/includes/init_includes/init_templates.php) called at [/public_html/includes/autoload_func.php:48]
#3 require(/public_html/includes/autoload_func.php) called at [//admin/includes/application_top.php:171]
#4 require(/
/admin/includes/application_top.php) called at [//admin/product.php:9]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /
/admin/includes/languages/english/extra_definitions/thumb.php:1) in /****/admin/includes/init_includes/init_templates.php on line 28.

[11-Feb-2020 14:50:48 America/Chicago] Request URI://admin/product.php?cPath=3&pID=346&action=update_product, IP address: 97.107.224.230
#1 header() called at [/
/admin/includes/functions/general.php:26]
#2 zen_redirect() called at [//admin/includes/modules/update_product.php:120]
#3 require(/
/admin/includes/modules/update_product.php) called at [//admin/product.php:34]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /
/admin/includes/languages/english/extra_definitions/thumb.php:1) in /****/admin/includes/functions/general.php on line 26.

I had the error on a fresh install as well, one that only had IH5 and Admin images plugin installed. I don't understand why removing the language file and adding the info into the IH5 language file fixed this for me. I am having to upgrade 4 different websites, and I have had the same issue with the first two, so I am fairly certain it's not me... although I really can't say that with 100% certainty.

Edit: I should clarify this error log shows my edited version of your file: thumb.php is just the edited name of TAB_Thumb.php :blush:

14 Feb 2020, 5:36 AM
#23
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

k8ee I have installed** IH V5.18** alone in a Zen Cart 1.56c with TAP_Thumb for 1.56c and I can confirm there have been no errors, white screens or language files interfering with either module functioning as they should.

You may have another file misaligned or missing from the installation fileset perhaps?

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

20 Feb 2020, 4:08 AM
#24
thymine avatar

thymine

New Zenner

Join Date:
Jun 2016
Posts:
20
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Hi all,

I input all the files into a fresh new zencart 1.56c and the admin page stopped working.

Error log
[:error] [pid 397374:tid 140169654585088] [client 60.54.85.82:52531] Failed loading /opt/ioncube/ioncube_loader_lin_7.1.so: /opt/ioncube/ioncube_loader_lin_7.1.so: undefined symbol: _zval_ptr_dtor

Anyone have any idea how do i solve this?

I tried a few different version of php 5.6, 7.1, 7.3, all dont work ><

20 Feb 2020, 1:51 PM
#25
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

thymine:

Hi all,

I input all the files into a fresh new zencart 1.56c and the admin page stopped working.

Error log
[:error] [pid 397374:tid 140169654585088] [client 60.54.85.82:52531] Failed loading /opt/ioncube/ioncube_loader_lin_7.1.so: /opt/ioncube/ioncube_loader_lin_7.1.so: undefined symbol: _zval_ptr_dtor

Anyone have any idea how do i solve this?

I tried a few different version of php 5.6, 7.1, 7.3, all dont work ><

Please check that you have merged your fileset and uploaded each new file correctly. TAP Thumb for 1.56c will install cleanly out of the box on a vanilla Zen Cart 1.56c on multiple servers/hosts as this was cleared during pre-release testing.

Also have a look at your host cPanel Cron settings as a quick Google search of your error provides results unrelated to this module:

https://forums.cpanel.net/threads/ioncube-failed-loading-error.597507/

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

20 Feb 2020, 3:01 PM
#26
k8ee avatar

k8ee

New Zenner

Join Date:
Sep 2009
Location:
Ontario, Canada
Posts:
23
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

twitchtoo:

k8ee I have installed** IH V5.18** alone in a Zen Cart 1.56c with TAP_Thumb for 1.56c and I can confirm there have been no errors, white screens or language files interfering with either module functioning as they should.

You may have another file misaligned or missing from the installation fileset perhaps?

Yes, it's very likely just me. I had downloaded a previous version of your plugin in Oct, before the Jan update, so it's possible I've mixed some things in. I have one more website update to do, so I'm going to play it safe and download both plugins again and install. Aside from that, thanks again for an amazing addon. :D

21 Feb 2020, 2:50 AM
#27
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

k8ee:

Yes, it's very likely just me. I had downloaded a previous version of your plugin in Oct, before the Jan update, so it's possible I've mixed some things in. I have one more website update to do, so I'm going to play it safe and download both plugins again and install. Aside from that, thanks again for an amazing addon. :D

Thanks :) and you're welcome :D

I could zip the present working vanilla Zen Cart 1.56c with TAP Thumb and IH5 installed if you'd like to save some time? Email or pm me if you'd like.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

21 Feb 2020, 3:00 AM
#28
thymine avatar

thymine

New Zenner

Join Date:
Jun 2016
Posts:
20
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Hi Twitch,

I retried, and i am still getting blank page at the admin login. However, i found the error log, could you look at it please?

[20-Feb-2020 20:55:46 America/Chicago] Request URI: /kiTty-fIh-Stink/, IP address: 60.54.85.82
#1 header() called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_templates.php:28]
#2 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_templates.php) called at [/home1/thymine/public_html/includes/autoload_func.php:48]
#3 require(/home1/thymine/public_html/includes/autoload_func.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php:171]
#4 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/index.php:10]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/thymine/public_html/kiTty-fIh-Stink/includes/languages/english/extra_definitions/TAP_Thumb.php:1) in /home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_templates.php on line 28.

[20-Feb-2020 20:55:46 America/Chicago] Request URI: /kiTty-fIh-Stink/, IP address: 60.54.85.82
#1 header() called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/functions/general.php:26]
#2 zen_redirect() called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_admin_auth.php:61]
#3 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_admin_auth.php) called at [/home1/thymine/public_html/includes/autoload_func.php:48]
#4 require(/home1/thymine/public_html/includes/autoload_func.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php:171]
#5 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/index.php:10]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/thymine/public_html/kiTty-fIh-Stink/includes/languages/english/extra_definitions/TAP_Thumb.php:1) in /home1/thymine/public_html/kiTty-fIh-Stink/includes/functions/general.php on line 26.

Error only pops on hostgator hosting and not on wamp. I contacted the help and they claimed all php& ioncube loader are working perfectly.
Hoping that you could shred some light.

21 Feb 2020, 3:14 AM
#29
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

thymine:

Hi Twitch,

I retried, and i am still getting blank page at the admin login. However, i found the error log, could you look at it please?

[20-Feb-2020 20:55:46 America/Chicago] Request URI: /kiTty-fIh-Stink/, IP address: 60.54.85.82
#1 header() called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_templates.php:28]
#2 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_templates.php) called at [/home1/thymine/public_html/includes/autoload_func.php:48]
#3 require(/home1/thymine/public_html/includes/autoload_func.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php:171]
#4 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/index.php:10]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/thymine/public_html/kiTty-fIh-Stink/includes/languages/english/extra_definitions/TAP_Thumb.php:1) in /home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_templates.php on line 28.

[20-Feb-2020 20:55:46 America/Chicago] Request URI: /kiTty-fIh-Stink/, IP address: 60.54.85.82
#1 header() called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/functions/general.php:26]
#2 zen_redirect() called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_admin_auth.php:61]
#3 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/init_includes/init_admin_auth.php) called at [/home1/thymine/public_html/includes/autoload_func.php:48]
#4 require(/home1/thymine/public_html/includes/autoload_func.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php:171]
#5 require(/home1/thymine/public_html/kiTty-fIh-Stink/includes/application_top.php) called at [/home1/thymine/public_html/kiTty-fIh-Stink/index.php:10]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/thymine/public_html/kiTty-fIh-Stink/includes/languages/english/extra_definitions/TAP_Thumb.php:1) in /home1/thymine/public_html/kiTty-fIh-Stink/includes/functions/general.php on line 26.

Error only pops on hostgator hosting and not on wamp. I contacted the help and they claimed all php& ioncube loader are working perfectly.
Hoping that you could shred some light.

There is a good chance this file: **admin/includes/languages/english/extra_definitions/TAP_Thumb.php

**Has not been created with the correct format/content
File contents should be saved as php:

<?php /** * @package Twitch TAP Thumb * @copyright Copyright 2020 Twitchtoo Media * @version $Id: Author: Twitch. */ define('TABLE_HEADING_TAPTHUMB_IMG', 'Image'); define('BUTTON_ADDITITONAL_ACTIONS', 'Additional Actions'); define('TAPTHUMB_ATTRIBUTE_BUTTON', 'Product Attribute');

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

21 Feb 2020, 3:23 AM
#30
thymine avatar

thymine

New Zenner

Join Date:
Jun 2016
Posts:
20
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Greeting Twitch,

Oh.. you are correct sir! I can now load the page correctly. This actually took me "the newb" 3 days trying to fix the problem.

A million thank you Twitch, and this is a great module that i cannot miss!

21 Feb 2020, 4:54 AM
#31
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

thymine:

Greeting Twitch,

Oh.. you are correct sir! I can now load the page correctly. This actually took me "the newb" 3 days trying to fix the problem.

A million thank you Twitch, and this is a great module that i cannot miss!

Great to hear!

You're welcome to contact me anytime... before you pull your hair out :frusty: - I enjoy the donations and feedback that helps the group!

:cheers:

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

30 Mar 2021, 6:36 AM
#32
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Will this work for v1.5.7? If not, are there plans to make it compatible in the near future?

30 Mar 2021, 7:25 PM
#33
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Joseph M:

Will this work for v1.5.7? If not, are there plans to make it compatible in the near future?

Yes all Twitch modules will be rewritten (and need to be) for 1.57c as they are nearing completion for 1.56c and I'm about ready to change over :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

4 Apr 2021, 1:26 AM
#34
joseph_m avatar

joseph_m

Zen Follower

Join Date:
Apr 2008
Posts:
150
Plugin Contributions:
0

Re: Twitch Admin Product Thumbnails (TAP Thumb)

twitchtoo:

Yes all Twitch modules will be rewritten (and need to be) for 1.57c as they are nearing completion for 1.56c and I'm about ready to change over :)

That is great to hear. This feature is incredibly useful for large inventories (especially when the products have very similar names). I'd be happy to see it become a ZC standard feature since it parallels e-commerce platforms thumbnail display of inventory for their sellers. Thank you for a great plugin. I look forward to using it again.

4 Jun 2021, 11:24 PM
#35
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

TAP Thumb for 1.57c now includes **Twitch Admin - Show Current Value **(in split view - right sidebox)

Thought I would share as anyone could use this bit for their cart (works in previous Zen versions) as it should be a standard part of Zen...

Zen Cart 1.57c
YOUR_ADMIN/configuration.php

Add the four bold lines of code below:

                        if (ADMIN_CONFIGURATION_KEY_ON == 1) {
            $contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br>');
          }

** // Twitch Admin - Show Current Value (in split view - right sidebox)
$contents[] = array('text' => '<strong>Current Value: ' . $cInfo->configuration_value . '</strong><br>');**
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br><strong>' . $cInfo->configuration_title . '</strong><br>' . $cInfo->configuration_description . '<br>' . $value_field);
$contents[] = array('align' => 'text-center', 'text' => '<br>' . '<button type="submit" name="submit' . $cInfo->configuration_key . '" class="btn btn-primary">' . IMAGE_UPDATE . '</button>' . ' <a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '" class="btn btn-default" role="button">' . IMAGE_CANCEL . '</a>');
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<h4>' . $cInfo->configuration_title . '</h4>');
if (ADMIN_CONFIGURATION_KEY_ON == 1) {
$contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br>');
}
** // Twitch Admin - Show Current Value (in split view - right sidebox)
$contents[] = array('text' => '<strong>Current Value: ' . $cInfo->configuration_value . '</strong><br>');**

            $contents[] = array('align' => 'text-center', 'text' => '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '" class="btn btn-primary" role="button"> ' . IMAGE_EDIT . '</a>');
            $contents[] = array('text' => '<br>' . $cInfo->configuration_description);
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($cInfo->date_added));
            if (zen_not_null($cInfo->last_modified))
              $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($cInfo->last_modified));
          }
          break;

***And you will see the value:


Finishing up the new TAP Thumb now public release on the way :clap:

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

20 Jun 2021, 9:30 PM
#36
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

Submitted to forum plugins for review:

Twitch Admin Product Thumbnails (TAP Thumb)
Version 21a for Zen Cart 1.57c
June 20.2021

Updated for 1.57c, now includes admin switches, built-in image checker and other useful features. This module will display category images, product images, attribute images and additional images (legacy) in several locations within your admin. If no image exists the default no_picture.gif will display.

  • This module is not immediately backwards compatible with 1.56c or previous.
  • Image/_MED/_LRG Display (legacy) - not supported.
  • Alternate Product Types Display Thumbnails - available in future release

Includes Admin 1.57c fileset and simplified install instructions with detailed feature list.

If my work has helped you today in any way, show your appreciation with things like positive feedback or donations.
Find me at https://www.twitchtoo.com

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

20 Jun 2021, 9:43 PM
#37
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

New admin product - preview_info.php output:

View of product content as customer could see it (without formatting) as well it summarizes admin features/switch positions for display - hidden when not in use to conserve space. Plus - page buttons float just like collect_info.php.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

29 Jun 2021, 6:34 PM
#38
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

I broke the array with this little bug in the **TAP Thumb for 1.57c **version only:

**YOUR_ADMIN > includes > modules > **copy_product.php
old code...
if (SHOW_TAP_THUMB == 'Show') { // product level copy
echo ($pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . '&nbsp' ) : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . '&nbsp' ));
}
**replace with this:
**if (SHOW_TAP_THUMB == 'Show') { // product level copy
$pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ') : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ');
}

**YOUR_ADMIN > includes > modules > **delete_product.php
old code...
if (SHOW_TAP_THUMB == 'Show') { // product level delete
echo ($pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . '&nbsp' ) : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . '&nbsp' ));
}

replace with this:
if (SHOW_TAP_THUMB == 'Show') { // product level delete
$pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ') : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ');
}

YOUR_ADMIN > includes > modules > move_product.php
old code...
if (SHOW_TAP_THUMB == 'Show') { // product level move
echo ($pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . '&nbsp' ) : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . '&nbsp' ));
}

replace with this:
if (SHOW_TAP_THUMB == 'Show') { // product level move
$pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ') : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ');
}

For anyone using Tap Thumb for 1.56c version only (same files as above) please change instances of this:

'&nbsp'

to this:

' '

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

1 Jul 2021, 4:40 AM
#39
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Admin Product Thumbnails (TAP Thumb)

:oops: Let's add some clarity...

YOUR_ADMIN/includes/languages/english/extra_definitions/**TAP_Thumb.php
**
change this:
define('TAP_IMAGE_DELETE_CAT_TEXT', 'Note: Removes image from category (image is NOT deleted/removed from server)');

to this:
define('TAP_IMAGE_DELETE_CAT_TEXT', 'Note: Removes image from category (image is NOT deleted/removed from server)');
define('TAP_IMAGE_DELETE_PRODUCT_TEXT', 'Note: Removes image from product (image is NOT deleted/removed from server)');

YOUR_ADMIN/includes/modules/product/**collect_info.php

change this:**
<label class="radio-inline"><?php echo TAP_IMAGE_DELETE_CAT_TEXT; ?></label>

to this:
<label class="radio-inline"><?php echo TAP_IMAGE_DELETE_PRODUCT_TEXT; ?></label>

...it's the little details :lookaroun

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

4 Jul 2021, 7:13 PM
#40
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,844
Plugin Contributions:
17

Re: Twitch Admin Product Thumbnails (TAP Thumb)

In YOUR_ADMIN/includes/css/a_twitch_modules.css, any particular reason for the empty rule for .tapButton_LIVE? I don't find it used in any file.
thanx

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com