If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Started by timkroeger on 17 May 2006, 11:27 AM · Views: 2,513,746

Results 6,961 to 6,980 of 7,094
24 Oct 2011, 10:26 AM
#6961
pookiehair avatar

pookiehair

New Zenner

Join Date:
May 2010
Location:
UK
Posts:
86
Plugin Contributions:
0

Post #6961 by pookiehair

nigelt74:

Ok Corrected version - sorry was having issues with browser caching

This isn't an image handler thing, it is to do with Zencarts support for accessibility

But any way, it appears IE8 supports the alt tag correctly (a mod couldn't dlete my last to posts please), by not showing an image hover.

Find your \includes\functions\html_output.php file make a backup of the file

around line 197

// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

if (zen_not_null($alt)) {
  $image .= ' title=" ' . zen_output_string($alt) . ' "';
}
> 
> and replace it with this
> 
> ```
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
    $image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';

    if (zen_not_null($alt)) {
      $image .= ' title=""';
    }

The above should work in all browsers except IE6, and it doesn't really effect the accessibility because the alt tag is still in place

Please can you tell me if this is still the best way to fix this problem?
I am using ZC version 1.3.9h and Image Handler 2, also since yesterday have installed Categories Dressing.
Im sure the problem wasnt there yesterday but today I have the alt tag coming right over the image on hover which looks awful.
Hover over these images and you will see the problem.
http://towerhousedolls.co.uk/demo/index.php?main_page=index&cPath=47
Any help would be appretiated :smile:

11 Nov 2011, 9:14 PM
#6962
dedicationgraphics avatar

dedicationgraphics

New Zenner

Join Date:
Nov 2011
Posts:
3
Plugin Contributions:
0

Post #6962 by dedicationgraphics

Hey everyone,

This is my first time posting. I haven't been able to pinpoint any specific threads with my question. Please help me out if you can.

Zencart 1.3.9h

I installed the zen light box addon 1.6.2 and it was working fine on my site. After which I installed IH2 and now it's running correctly but for some reason it stopped the lightbox from working.

I need the onclick of additional images to run through the lightbox. Can anyone point me in the right direction?

site: https://www.shoppetra.com

Thanks,

11 Nov 2011, 10:50 PM
#6963
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Post #6963 by scriptjunkie

Hi There :smile:

Is there any particular reason you're using IH2 instead of IH3?

IH3 was built specifically for Zencart 1.3.9 and includes significant changes and upgrades.

Having said that, the answer to your question applies to both IH2 and IH3, and can be found in the "Misc" tab of the IH3 Read_Me documentation (but not in the Read_Me for the earlier IH2 version). The answer can also be found on this thread by searching the keywords "Zen Lightbox" or "ZLB".

The short answer to your question is that IH and ZLB share a common file. When you install both IH and ZLB, you must do one of two things. Either:

Install IH 1st and ZLB 2nd
or
If you installed IH 2nd, then you must overwrite the shared file using the one from the ZLB download pack.

This is because all of the necessary IH code is already included in the ZLB version of the shared/common file, but the necessary ZLB code is not included in the IH version of the shared/common file. (So if you install IH after you install ZLB, the IH version of the shared/common file overwrites all the ZLB code and ZLB won't work).

The shared/common file I refer to is: includes/modules/YOUR_TEMPLATE/additional_images.php. Simply take this file from the ZLB download pack and upload it to your server. When asked if you want to overwrite the existing file, say "yes".

Note: Even if you decide to upgrade from IH2 to IH3 (which is strongly recommended), you'll need to follow the solution mentioned above since ZLB was installed 1st.

Good luck and happy Zenning :smile:

dedicationgraphics:

Hey everyone,

This is my first time posting. I haven't been able to pinpoint any specific threads with my question. Please help me out if you can.

Zencart 1.3.9h

I installed the zen light box addon 1.6.2 and it was working fine on my site. After which I installed IH2 and now it's running correctly but for some reason it stopped the lightbox from working.

I need the onclick of additional images to run through the lightbox. Can anyone point me in the right direction?

site: https://www.shoppetra.com

Thanks,

*Go that extra mile, you never know what's at the end of the road

* Empowerment Sanctuary

13 Nov 2011, 2:31 AM
#6964
dedicationgraphics avatar

dedicationgraphics

New Zenner

Join Date:
Nov 2011
Posts:
3
Plugin Contributions:
0

Post #6964 by dedicationgraphics

additional_images.php

Thanks so much ScriptJunkie!

13 Nov 2011, 4:29 AM
#6965
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Post #6965 by scriptjunkie

You're very welcome :smile:

dedicationgraphics:

additional_images.php

Thanks so much ScriptJunkie!

*Go that extra mile, you never know what's at the end of the road

* Empowerment Sanctuary

14 Nov 2011, 9:53 AM
#6966
lynkan avatar

lynkan

New Zenner

Join Date:
Nov 2011
Posts:
2
Plugin Contributions:
0

Post #6966 by lynkan

Hello,
Please, please, please help me!!.
I attempted to download IH yesterday to my zencart without success so then went and deleted all the effected files and re-installed the original ones which I had backed up. Everything was working as normal again until I 'accidently' overwrote my index.php file in my public html and now I am unable to access my admin.
I've downloaded an index.php file from a new zencart but it is still not working because I've no idea how to link it to my site.

I'm not technical minded at all, hence my stupid mistake and problem!.....
SQL language is double-dutch to me so if there is anyone that could advise me where I need to make amendments I would truly appreciate it and hopefully that will fix my mistake?!?
My Site Name is: LynKan.com
The only changes I've made to the zencart is the template - I changed it to pinkywinky.

If this doesn't work, is my only other option to start from scratch again with a new zencart?
If I then upload the files I had backed up (images, includes, cache & admin) would it all be working properly again??

Sorry for babbling on......
I look forward to any guidance to help me out.
Thanks

14 Nov 2011, 1:53 PM
#6967
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6967 by darkangel

LynKan:

Hello,
Please, please, please help me!!.
I attempted to download IH yesterday to my zencart without success so then went and deleted all the effected files and re-installed the original ones which I had backed up. Everything was working as normal again until I 'accidently' overwrote my index.php file in my public html and now I am unable to access my admin.
I've downloaded an index.php file from a new zencart but it is still not working because I've no idea how to link it to my site.

I'm not technical minded at all, hence my stupid mistake and problem!.....
SQL language is double-dutch to me so if there is anyone that could advise me where I need to make amendments I would truly appreciate it and hopefully that will fix my mistake?!?
My Site Name is: LynKan.com
The only changes I've made to the zencart is the template - I changed it to pinkywinky.

If this doesn't work, is my only other option to start from scratch again with a new zencart?
If I then upload the files I had backed up (images, includes, cache & admin) would it all be working properly again??

Sorry for babbling on......
I look forward to any guidance to help me out.
Thanks

ok, I may be wrong but if you uploaded the index.php to the root of your store and admin still won't play nice then that is not the file.

Are you sure you did not delete the admin folder/includes/configure.php file I think that one is the one that lets you into admin section as well as having renamed it from the original admin

do you get an error message when attempting to go to admin?

14 Nov 2011, 2:59 PM
#6968
gueston avatar

gueston

Zen Follower

Join Date:
Apr 2009
Posts:
118
Plugin Contributions:
0

Post #6968 by gueston

Hello all,
I installed Image Handler2,but have a problem for me.
I used godaddy hosting,but they have some limite as can't have more than 1024 files in per folder,so i must clear the bmz_cache folder every day,it's tried for me,so i need use cron job to clear the bmz_cache folder every day,and because i have no to do it in some days,then the godaddy workers closed my hosting.

1.but i don't know how to set it in godaddy cron job manager,please let me know the command.

2.If you can help us more,i hope you can fix this problem for godaddy hosting user: let the different cache picture to differrent folders,as bmz_cache/Large_cache/ and bmz_cache/M_cache/ ..., limite files number for per folders,and when the pictures files over the number,then it auto to creat files to other folders.if the script will be so cool,then godaddys user will be happy more.

Now i limite the files less than 1024 in per folders and set faile for Image Handler2,but have many new products and many old products must use oriange picture,and the picture too big,so the site very very slowly now. it will cost about 10s to open full.

http://www.gueston.com Gueston wholesale plaza--wholesale cheap brand apparel

14 Nov 2011, 3:43 PM
#6969
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6969 by darkangel

gueston:

Hello all,
I installed Image Handler2,but have a problem for me.
I used godaddy hosting,but they have some limite as can't have more than 1024 files in per folder,so i must clear the bmz_cache folder every day,it's tried for me,so i need use cron job to clear the bmz_cache folder every day,and because i have no to do it in some days,then the godaddy workers closed my hosting.

1.but i don't know how to set it in godaddy cron job manager,please let me know the command.

2.If you can help us more,i hope you can fix this problem for godaddy hosting user: let the different cache picture to differrent folders,as bmz_cache/Large_cache/ and bmz_cache/M_cache/ ..., limite files number for per folders,and when the pictures files over the number,then it auto to creat files to other folders.if the script will be so cool,then godaddys user will be happy more.

Now i limite the files less than 1024 in per folders and set faile for Image Handler2,but have many new products and many old products must use oriange picture,and the picture too big,so the site very very slowly now. it will cost about 10s to open full.

If I were you I would get new host.

godaddy should be the ones to tell you how to set the cron job. that way they can't complain if it is done wrong even with their instructions

14 Nov 2011, 4:21 PM
#6970
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #6970 by divavocals

A coupla comments to add here..

At the risk of being accused (again) of being the forum police, the issue here seems to have LESS to do with an Image Handler install issue than it appears to be a Zen Cart configuration/installation issue..

Suggest that the OP correct the issue she has with her Zen Cart installation, and come back to the Image Handler support thread only if there are issues with the Image Handler installation.. Any discussions surrounding troubleshooting Zen Cart installation/configuration should not be conducted here in this support thread as it is waaaay off topic..

Secondly, The OP should be using the LATEST version of Image Handler (Image Handler 3) and not Image Handler 2. This means IF there really is an Image Handler 3 issue that discussion should take place on the Image Handler 3 support thread..

DarkAngel:

ok, I may be wrong but if you uploaded the index.php to the root of your store and admin still won't play nice then that is not the file.

Are you sure you did not delete the admin folder/includes/configure.php file I think that one is the one that lets you into admin section as well as having renamed it from the original admin

do you get an error message when attempting to go to admin?

LynKan:

Hello,
Please, please, please help me!!.
I attempted to download IH yesterday to my zencart without success so then went and deleted all the effected files and re-installed the original ones which I had backed up. Everything was working as normal again until I 'accidently' overwrote my index.php file in my public html and now I am unable to access my admin.
I've downloaded an index.php file from a new zencart but it is still not working because I've no idea how to link it to my site.

I'm not technical minded at all, hence my stupid mistake and problem!.....
SQL language is double-dutch to me so if there is anyone that could advise me where I need to make amendments I would truly appreciate it and hopefully that will fix my mistake?!?
My Site Name is: LynKan.com
The only changes I've made to the zencart is the template - I changed it to pinkywinky.

If this doesn't work, is my only other option to start from scratch again with a new zencart?
If I then upload the files I had backed up (images, includes, cache & admin) would it all be working properly again??

Sorry for babbling on......
I look forward to any guidance to help me out.
Thanks

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.

14 Nov 2011, 4:26 PM
#6971
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Post #6971 by divavocals

duplicate

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.

15 Nov 2011, 9:11 AM
#6972
lynkan avatar

lynkan

New Zenner

Join Date:
Nov 2011
Posts:
2
Plugin Contributions:
0

Post #6972 by lynkan

DarkAngel:

ok, I may be wrong but if you uploaded the index.php to the root of your store and admin still won't play nice then that is not the file.

Are you sure you did not delete the admin folder/includes/configure.php file I think that one is the one that lets you into admin section as well as having renamed it from the original admin

do you get an error message when attempting to go to admin?

Thank you so much DarkAngel for your reply.
I went back and re-installed my backed up files again and it worked. "Patience is a virtue" as they say!!
Thanks a million again for your guidance.

Sorry DivaVocal, won't post here incorrectly again!

16 Nov 2011, 1:53 AM
#6973
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6973 by darkangel

DivaVocals:

At the risk of being accused (again) of being the forum police

But Diva...we need the police to keep us safe and in line...hugz2u

LynKanThank you so much DarkAngel for your reply.
I went back and re-installed my backed up files again and it worked. "Patience is a virtue" as they say!!
Thanks a million again for your guidance.

Sorry DivaVocal, won't post here incorrectly again!

you are welcome and glad it was only that that misbehaved.

16 Nov 2011, 5:43 PM
#6974
wagnerguy avatar

wagnerguy

Zen Follower

Join Date:
Aug 2008
Posts:
334
Plugin Contributions:
0

Post #6974 by wagnerguy

hello all, I have been using image handler for a while now.

I just switch themes and now it does not work. did I miss something during install

I moved the "popup_image_additional" folder over to my new theme, but no luck

any help is appreciated.

Whats weird is when I swich back to my old theme, it works perfectly

Thank you.

my site is prokarateshop.com

16 Nov 2011, 9:26 PM
#6975
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6975 by darkangel

wagnerguy:

hello all, I have been using image handler for a while now.

I just switch themes and now it does not work. did I miss something during install

I moved the "popup_image_additional" folder over to my new theme, but no luck

any help is appreciated.

Whats weird is when I swich back to my old theme, it works perfectly

Thank you.

my site is prokarateshop.com

if you have the files sitting in the main folders of the store (original folders ) it should work, but if you put them into folders with your other templates name then you broke it.

when changing themes you need to put the files to any mod into the new template s folder as well as any override folders you have.

17 Nov 2011, 7:47 PM
#6976
Join Date:
Nov 2011
Posts:
1
Plugin Contributions:
0

Post #6976 by whyisthissodifficult

Hello!

I apologize in advance if this is the incorrect area to post this question and problem.

I am also suddenly having an issue with the images appearing on my products. Old products working fine, new products not so much!

I am running Zen Cart 1.3.8a
Database Patch Level: 1.3.8
v1.3.8 [2009-06-03 18:14:52] (Fresh Installation)
v1.3.8 [2009-06-03 18:14:52] (Fresh Installation)
GoDaddy Linux/Shared Hosting
PHP 4.x
MSQL

The site has not been updated since initially installed.

I assume I need to figure out what version of the image handler I am using first?

How and where do I go to see what version of the IH I am using?

Again, I apologize for being in the wrong place, technologically impaired, and short on caffeine to further muck up the works.

Cheers

17 Nov 2011, 9:41 PM
#6977
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6977 by darkangel

Whyisthissodifficult:

Hello!

I apologize in advance if this is the incorrect area to post this question and problem.

I am also suddenly having an issue with the images appearing on my products. Old products working fine, new products not so much!

I am running Zen Cart 1.3.8a
Database Patch Level: 1.3.8
v1.3.8 [2009-06-03 18:14:52] (Fresh Installation)
v1.3.8 [2009-06-03 18:14:52] (Fresh Installation)
GoDaddy Linux/Shared Hosting
PHP 4.x
MSQL

The site has not been updated since initially installed.

I assume I need to figure out what version of the image handler I am using first?

How and where do I go to see what version of the IH I am using?

Again, I apologize for being in the wrong place, technologically impaired, and short on caffeine to further muck up the works.

Cheers

  1. post link to store for better help

  2. if not too involved in mods and all---upgrade to zencart 1.3.9h-- far more stable and secure than the one you have. I have had to go bail out people that their hosts shut them down due to hacks that were made to their stores.

  3. assuming you have not added IH recently then most likely you are using v2...also upgarade to 1.3.9h store then to IH3 which is also improved to go with new store coding.

  4. possibly expect problems with go daddy--others have when it comes to their stores and that ridiculous host.

  5. in admin area: admin/tools in that drop down menu you will see the link to IH and it should say what version you have in the name

17 Nov 2011, 11:11 PM
#6978
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Post #6978 by kevinmc3

ver 1.3.9h

THis is a very sporadic issue so not easy to duplicate. But, today for about the fifth time in past few months I tried to replace and even remove an image, but it will NOT budge. When I tried to add a new image with the product editor , the image would go into as an "added" image instead of the primary image. As in this product below:

http://www.cvtreasures.com/hollywood-legends-gallery-john-wayne-memorabilia-c-101_156/she-wore-a-yellow-ribbon-john-wayne-window-card-1949-very-rare-p-2310

Note the secondary image, I am trying to make the primary image (it is same image but brighter than the current primary image

18 Nov 2011, 2:50 AM
#6979
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6979 by darkangel

kevinmc3:

ver 1.3.9h

THis is a very sporadic issue so not easy to duplicate. But, today for about the fifth time in past few months I tried to replace and even remove an image, but it will NOT budge. When I tried to add a new image with the product editor , the image would go into as an "added" image instead of the primary image. As in this product below:

http://www.cvtreasures.com/hollywood-legends-gallery-john-wayne-memorabilia-c-101_156/she-wore-a-yellow-ribbon-john-wayne-window-card-1949-very-rare-p-2310

Note the secondary image, I am trying to make the primary image (it is same image but brighter than the current primary image

when you go to replace the image are you going into IH control or through the description for the product?

are you -- when using image handler controls--

do you click new file button --- this will add it as an additional image at times

  1. click the space between the little i inside the circle to get the right spot then click delete to get rid of the image

then upload the new one you want to replace it

or manually go to server where the image is and upload new one with exact same name to overwrite the one there that should work to replace the picture

12 Dec 2011, 12:54 PM
#6980
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Post #6980 by athens_collectibles

Hi everyone,

I installed IH2 last night (I didn't go to IH3 because I was put off by the too many files but I will probably do so once I get more familiar). I run 1.3.9h on a test environment and therefore I can not provide a link but I have some screen shots to describe a small issue I face.

Before going to the issue, I will share my experience in case it proves useful to other users. I must confess that I didn't read all posts in this thread (almost 700 pages) and tried to work on the basis of the readme file.

I listed two test products and created a thumbnail (named thumbsize.jpg), a medium size (named mediumsize.jpg) and a large size (named largesize.jpg) image for each. I added the images for each product from the IH2 manager, only to find out that the images of the second product were overwriting those of the first product because of the identical file names which were saved in the /image folder. Adding the proper path in the box provided (see the red arrow in screenshot1 below, solved the problem. It took me some time to understand the reason, but it seems that the brain of a 64-year old doesn't work very fast in our days.


Now, I have New Products and Featured Products listed at the bottom of main page. See the values as entered in the Configuration > Index Listing in the screenshot2 and how it actually appears in screenshot3 below. The heading New Products is actually a modified "New Products for ... (month)" of the standard ZC.


As you can see in screenshot 4, the hover effect works fine with Featured Products but it doesn't with the New Products section and this is the reason for my post. Can anyone understand what could be wrong and either suggest a solution or give me a clue as to where I should search?


I read in post #6868:

When you hover your mouse over an image, look at the info bar at the bottom of your browser to see what the file path is. If it does not say "bmz_cache" followed by a combo of a bunch of letters and/or numbers, then the image files are not being served from the bmz_cache folder.

Hovering over the image of Second Test Product it only shows the /index.php?main_page=product_info&cPath=7_16_23&products_id=12 in both New and Featured products, while if I right click on Chrome and then click Inspect Element, I get:

<img src="images/products/movies/documentary/history/test2/thumbsize.jpg" alt="Second test product" title=" Second test product " width="120" height="96"> in the New Products and

<img src="images/products/movies/documentary/history/test2/thumbsize.jpg" alt="Second test product" title=" Second test product " width="120" height="96" style="position:relative" onmouseover="showtrail('bmz_cache/6/68a5c18a0ab6cc9ffa54908bc8b8ca26.image.250x250.jpg','Second test product',120,96,250,250,this,0,0,120,96);" onmouseout="hidetrail();"> in Featured Products.

The hover effect works with New Products in page /index.php?main_page=products_new and the Inspect Element shows:

<img src="images/products/movies/documentary/history/test2/thumbsize.jpg" alt="Second test product" title=" Second test product " width="120" height="96" style="position:relative" onmouseover="showtrail('bmz_cache/6/68a5c18a0ab6cc9ffa54908bc8b8ca26.image.250x250.jpg','Second test product',120,96,250,250,this,0,0,120,96);" onmouseout="hidetrail();">

The hover effect works also fine in pages /index.php?main_page=featured_products and /index.php?main_page=products_all.

Sorry for the long post which is probably tiring to read. I hope that someone out there will come up with an explanation for which my thanks are advanced.