It probably wouldn't work automatically with IH3, but should be able to be applied by adding the title code to an IH3 file.
It probably wouldn't work automatically with IH3, but should be able to be applied by adding the title code to an IH3 file.
I found my custom copy of additional_images.php containing:
102. // eof Zen Lightbox 2008-12-11 aclarke
103. $thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
104. $large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
So how can I correctly put the following code?
$link = add_img_title('A', $base_image) . $link . add_img_title('B', $base_image);//add text above and/or below image if defined
That's not the place where the image title code goes in the standard file - it is several lines below there. I don't know what the rest of your file looks like so can't advise without more information.
Your readme telling at about line 103.
-----------------------------------------------------------
If you already have a custom copy of additional_images.php, you can add this line around line 103 (may be different in your copy):
$link = add_img_title('A', $base_image) . $link . add_img_title('B', $base_image);//add text above and/or below image if defined
----------------------------------------------------------
Let me find harder. Since I have many items containing additional images, If you have any suggestions would be appreciated.
It is line 103 in my copy of the file, but not in yours. Look at the surrounding lines in both versions of the file, and put it in the same relative location.around line 103 (may be different in your copy)
Found it. Thank you!
Another question, to define the file additional_image_titles_defines.php, Can I use images in folder of bmz_cache/ ? the image file name like (3d46e638e4d6909a8b9192cd3c7d6e3d.image.100x96.jpg), instead of images/xxxx.jpg (original file name).
Since I use IH3 to upload/handle additional images so images go to
bmz_cache folder with uncertain number file name.
That might require some recoding to refer to the bmz_cache folder location. The stock file automatically goes to the defined images folder, and if IH3 sets that and uses it, it might work automatically. Have you tried it yet? You would need to find out the cache filename and use the converted version of it, e.g. for
3d46e638e4d6909a8b9192cd3c7d6e3d.image.100x96.jpg
use
define ('ADDIMGA_3D46E638E4D6909A8B9192CD3C7D6E3D_IMAGE_100X96_JPG','Your Text');
which would be quite a pain...
Last edited by gjh42; 16 Jul 2011 at 05:13 PM. Reason: getting all those lowercase letters to upper is a job:)
Hi gjh42,
I should post here When I use original image file name, it works perfectly for what I want. Thank you!
Great! That's good to know.