If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / New Product Images Add-on - HoverBox / Lightbox

New Product Images Add-on - HoverBox / Lightbox

Locked

Started by testuser on 15 Jul 2007, 11:40 AM · Views: 30,251

Results 101 to 120 of 158
This thread is locked. New replies are disabled.
13 Dec 2007, 5:31 PM
#101
hughesenergy avatar

hughesenergy

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

New Product Images Add-on - HoverBox / Lightbox

No deleted the 3 tables and the fourth that populates line 50 in configuration and reupped.Everything looks like it went up fine-i got errors before when upping the pasted .sql text with the initial install but after deleting that,it now has a green bar from the zencart admin but still no hoverbox effect.
Either my server has to update or lightbox is overriding hoverbox?Everything is now correctly installed.

sql is correct,the box is yes in all 3 columns in ZC admin and the other files are good as they show in script queries.What is up?

http://www.hughessolarenergy.com/zeus

14 Dec 2007, 7:49 PM
#102
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

hughesenergy:

No deleted the 3 tables and the fourth that populates line 50 in configuration and reupped.Everything looks like it went up fine-i got errors before when upping the pasted .sql text with the initial install but after deleting that,it now has a green bar from the zencart admin but still no hoverbox effect.
Either my server has to update or lightbox is overriding hoverbox?Everything is now correctly installed.

sql is correct,the box is yes in all 3 columns in ZC admin and the other files are good as they show in script queries.What is up?

http://www.hughessolarenergy.com/zeus

Did you upload the files included in the templates folder? It controls the output of the Product Info image. You should include it in your custom template directory. Which in your case you appear to be using the classic folder.

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

18 Dec 2007, 12:24 AM
#104
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

hughesenergy:

http://www.hughessolarenergy.com/zeus/includes/templates/classic/css/stylesheet_icimghover.css

http://www.hughessolarenergy.com/zeus/includes/modules/pages/product_info/jscript_icmain.js

list the others i need to check?

includes/templates/YOUR_TEMPLATE/templates/tpl_modules_main_product_image.php

This one?

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

18 Dec 2007, 9:10 AM
#105
hughesenergy avatar

hughesenergy

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

its a little weird..
includes/templates/classic/includes/templates/classic/templates/the FILE

18 Dec 2007, 10:00 PM
#106
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

hughesenergy:

its a little weird..
includes/templates/classic/includes/templates/classic/templates/the FILE

Should read ...

includes/templates/classic/templates/the FILE

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

19 Dec 2007, 9:04 AM
#107
hughesenergy avatar

hughesenergy

New Zenner

Join Date:
Jun 2007
Posts:
23
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

Structure is screwed up then includes/ templates/classic/includes/templates/classic/templates/the file

anyway i can change the code in php so this is called correctly with this structure?
How do i fix this without completely nuking everything?

19 Dec 2007, 9:55 PM
#108
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

hughesenergy:

Structure is screwed up then includes/ templates/classic/includes/templates/classic/templates/the file

anyway i can change the code in php so this is called correctly with this structure?
How do i fix this without completely nuking everything?

You've obviously installed it that deep in the directories.

I'd say you'd be safe deleting the includes folder within includes/templates/classic/includes and starting over with the installation leaving out the SQL installation.

The correct directory structure for you where you'd install the template files would be:

includes/templates/classic/

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

22 Dec 2007, 1:04 PM
#109
francocauter avatar

francocauter

Zen Follower

Join Date:
Jun 2007
Location:
Milton Keynes UK
Posts:
153
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

I have installed IH2 and Hoverbox in zc 1.3.7.1
When I insert the product image from the product page, it never shows up with the HB
I have to go into IH2 and insert the 1st image from there again.
Is that normal or have I got a problem? Can you help please?

I have also got some images uploaded from visitors/clients in the server only. I tried to give different paths to those images from the product page but I could not see the image so I had to put them in local first.
How do you give the right path to the images on the server? Can you Help?
Thanks
Franco

22 Dec 2007, 7:16 PM
#110
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

francocauter:

I have installed IH2 and Hoverbox in zc 1.3.7.1
When I insert the product image from the product page, it never shows up with the HB
I have to go into IH2 and insert the 1st image from there again.
Is that normal or have I got a problem? Can you help please?

I have also got some images uploaded from visitors/clients in the server only. I tried to give different paths to those images from the product page but I could not see the image so I had to put them in local first.
How do you give the right path to the images on the server? Can you Help?
Thanks
Franco

Have you installed HB 2.1? Previous versions of Hoverbox were not compatible with IH.

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

8 Jan 2008, 12:38 PM
#111
stickytree avatar

stickytree

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

hi,

i've got a small problem with HB.

I Have the latest version of image handler and the latest Zen Cart release.
The hover works fine i'm getting large images showing when the mouse goes over an image but when i click to the product page nothing is show up i've got the site but no product info page i've racked my brains over this but can't figure out why this is happening.It's not Image handler as i installed that before hover box and it worked fine, i don't have any mods installed as i'm testing it on a clean install.

i'm running PHP 4.4.7 on my remote server and my local server on my PC using easy PHP which runs 5.2.0 hte problem has happened on my remote and local servers...any ideas ??

Thanks

8 Jan 2008, 2:17 PM
#112
stickytree avatar

stickytree

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

hi i have found the answer to my problem it was in the tpl_modules_main_product_image.php the old code was:

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2007 iChoze Internet Solutions * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_modules_main_product_image.php 3208 2007-07-15 16:48:57Z tesuser $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <div id="productMainImage" class="centeredContent back"> <?php if(HOVERBOX_ENABLED == 'Yes'){ if(HOVERBOX_DISPLAY_TITLE == 'Yes'){ $title = zen_clean_html($products_name); }else{ $title=''; } if(HOVERBOX_DISPLAY_PRICE == 'Yes'){ if($specials_price){ $price = ' - ' . $specials_price; }else{ $price = ' - ' . $products_base_price; } }else{ $price=''; } echo '<a href="'. zen_hoverbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="hoverbox" title="' . $title . $price . '">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a><div class="lrgarea"><a href="'. zen_hoverbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) .'" rel="hoverbox" title="' . $title . $price . '"><img src="images/icpresent/vlrg-pinfo.gif" alt="View Larger" class="lrglink" /></a></div>'; }else{ ?> **<script language="javascript" type="text/javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>'); //--></script>**<noscript> <?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?> </noscript> **<? }?>** </div>

the first highlighted section i uncommented first ( if that made any difference i wasn't sure )BUT the main problem was the php tag online 42 so i changed the code to :

<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2007 iChoze Internet Solutions * @copyright Portions Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_modules_main_product_image.php 3208 2007-07-15 16:48:57Z tesuser $ */ ?> <?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> <div id="productMainImage" class="centeredContent back"> <?php if(HOVERBOX_ENABLED == 'Yes'){ if(HOVERBOX_DISPLAY_TITLE == 'Yes'){ $title = zen_clean_html($products_name); }else{ $title=''; } if(HOVERBOX_DISPLAY_PRICE == 'Yes'){ if($specials_price){ $price = ' - ' . $specials_price; }else{ $price = ' - ' . $products_base_price; } }else{ $price=''; } echo '<a href="'. zen_hoverbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="hoverbox" title="' . $title . $price . '">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a><div class="lrgarea"><a href="'. zen_hoverbox_IH2_url($products_image_large, addslashes($products_name), LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) .'" rel="hoverbox" title="' . $title . $price . '"><img src="images/icpresent/vlrg-pinfo.gif" alt="View Larger" class="lrglink" /></a></div>'; }else{ ?> <script language="javascript" type="text/javascript"> document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>'); </script> <noscript> <?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?> </noscript> **<?php }?>** </div>

that missing php tag was the cheese hope that helps as i realy liked this mod ! i can now install it on my main site !!

THANKS!

11 Jan 2008, 10:41 PM
#113
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

stickytree:

hi i have found the answer to my problem it was in the tpl_modules_main_product_image.php the old code was:

the first highlighted section i uncommented first ( if that made any difference i wasn't sure )BUT the main problem was the php tag online 42 so i changed the code to :

that missing php tag was the cheese hope that helps as i realy liked this mod ! i can now install it on my main site !!

THANKS!

Shorthand tag versus the full tag ... Thanks for pointing that out. Bad idea these days :)

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

15 Jan 2008, 3:32 AM
#114
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

**HoverBox Updated v2.2 Now Available!

Follow link in signature for download.
**

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

15 Jan 2008, 5:38 AM
#115
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

testuser:

**HoverBox Updated v2.2 Now Available!

Follow link in signature for download.
**

  • Now Compatible with all product types
  • Corrected 404 Errors being caused by HoverBox
  • Better Placement of HoverBox details for cross-browser compatibility
  • Additional Product images now group together

Colin @ iChoze Internet Solutions
Zen Cart Stuff powered by Zen Cart
http://zen-cart-templates.ichoze.net

31 Jan 2008, 1:41 PM
#116
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

Hi,

I tried installing HoverBox the latest version but received the following error while running the sql. Please advise what I should do. Thanks in advance.

1062 Duplicate entry '50' for key 1
in:
[INSERT INTO zen_configuration_group VALUES (50, 'HoverBox2', 'Settings for your HoverBox2', 4.50, 1);]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

31 Jan 2008, 1:45 PM
#117
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: New Product Images Add-on - HoverBox / Lightbox

dealbyethan.com:

Hi,

I tried installing HoverBox the latest version but received the following error while running the sql. Please advise what I should do. Thanks in advance.

1062 Duplicate entry '50' for key 1
in:
[INSERT INTO zen_configuration_group VALUES (50, 'HoverBox2', 'Settings for your HoverBox2', 4.50, 1);]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
This is telling you that you already have something in that slot. Have you installed HoverBox before? If so, you don't need to worry about this, as the coinfiguration group will already be defined in your database.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 Jan 2008, 1:50 PM
#118
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

That's quick. No this is fresh installation.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

31 Jan 2008, 2:08 PM
#119
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: New Product Images Add-on - HoverBox / Lightbox

dealbyethan.com:

this is fresh installation.Of hoverbox? Or of Zen Cart? Either way, it sounds as though you may have tripped over a slightly naughty feature of this SQL statement where it tries to pop itself into a specific slot in the configuration groups file, even though, as seems to be the case for your Zen Cart, it's already occupied.

You could try replacing the 50 with NULL and re-running it, or looking directly at the table and inserting a value that's not currently in use, or just entering all the values by hand through phpMyAdmin, leaving the first field blank and letting the database autoincrement it (which is what option 1 would do too).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 Jan 2008, 3:24 PM
#120
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: New Product Images Add-on - HoverBox / Lightbox

Yup, problem solved by changing the id from 50 to the next available one and re-running the sql again.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan