Zen Cart Logo
Forums / All Other Contributions/Addons / Zen Lightbox addon [Support Thread]

Zen Lightbox addon [Support Thread]

Views: 953,124

Results 2,581 to 2,600 of 3,722
29 Mar 2011, 1:54 PM
#2581
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Zen Lightbox addon [Support Thread]

Page:

In [includes/configure.php], the line is:
define('DB_PREFIX', 'znc_');
So, I will go to the install SQL file and change hipdockc_znc1.configuration_group to
Hipdockc_znc_.configuration_group
I hope I have this right. Thank you Danel!

Had you tried to modify this install.sql file already? Why does it say hipdockc_znc1.configuration_group now?

30 Mar 2011, 12:21 AM
#2582
joe_davila avatar

joe_davila

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

Can you please explain the EZ Pages functionality?
I cannot get lightbox to work on https://www.mermagica.eu/index.php?main_page=mermaid_racing.

"EZ-Pages

By default the lightbox effect will be applied to all links that point to images on your EZ-Pages."

I am using the Define Pages Editor and linking it through an Easy Page... the define_mermaid_racing page has the following code: <a href="../images/mini_tail.jpg" rel="Mini Tail">Mini Tail</a>

I created an EZ Page (via define pages editor) with a link to a photo in the images directory, but it's not working. The jscript_zen_lightbox.php file is located in the following directory: /modules/pages/mermaid_racing

Any guidance is appreciated...
:frusty:

30 Mar 2011, 12:40 AM
#2583
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

joe.davila:

Can you please explain the EZ Pages functionality?
I cannot get lightbox to work on https://www.mermagica.eu/index.php?main_page=mermaid_racing.

"EZ-Pages

By default the lightbox effect will be applied to all links that point to images on your EZ-Pages."

I am using the Define Pages Editor and linking it through an Easy Page... the define_mermaid_racing page has the following code: <a href="../images/mini_tail.jpg" rel="Mini Tail">Mini Tail</a>

I created an EZ Page (via define pages editor) with a link to a photo in the images directory, but it's not working. The jscript_zen_lightbox.php file is located in the following directory: /modules/pages/mermaid_racing

Any guidance is appreciated...
:frusty:

Hi Joe, try setting the rel="Mini Tail" to rel="lightbox" and see if that helps you.

daniel

30 Mar 2011, 8:00 AM
#2584
joe_davila avatar

joe_davila

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

niestudio:

Hi Joe, try setting the rel="Mini Tail" to rel="lightbox" and see if that helps you.

daniel

Many thanks, that works like a charm!
:cool:

30 Mar 2011, 7:09 PM
#2585
page avatar

page

New Zenner

Join Date:
Jan 2011
Location:
Atlanta, GA The A-Town Down
Posts:
23
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

No, the only change you make is inside install.sql.
Did you find out what your prefix is as I described?

Yes. Here is a copy paste: ('DB_PREFIX', 'znc_')

30 Mar 2011, 7:25 PM
#2586
page avatar

page

New Zenner

Join Date:
Jan 2011
Location:
Atlanta, GA The A-Town Down
Posts:
23
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

No, the only change you make is inside install.sql.
Did you find out what your prefix is as I described?

niestudio:

Had you tried to modify this install.sql file already? Why does it say hipdockc_znc1.configuration_group now?

I made no changes at all to the install file. I viewed it and did a search for zc1. I thought I was supposed to change it to my prefix of zc. I read the entire page and didn't find "zc." I searched for "configuration." I didn't find hipdockc_znc1.configuration_group. Maybe I am looking at the wrong file altogether.
I unzipped the file and opened the folder.
I viewed the "install SQL 8KB" file.
Right now it is showing date last modified as 01/23/2011. I just downloaded lightbox a few days ago.
I am unsure of my next step but I think I need to open this file again and search for hipdockc_znc1.configuration_group. I think I need to change hipdockc_znc1.configuration_group to
Hipdockc_znc_.configuration_group because that is my prefix in the admin files.

  1. Do I change hipdockc_znc1.configuration_group to
    Hipdockc_znc_.configuration_group?
  2. There is a SQL install update file that I haven't touched. Are changes needed there?

Thanks so much for helping me!

Page

31 Mar 2011, 3:51 AM
#2587
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Fix for Potential Problem

If you are already using/loading jQuery then you might have problems with your other jQuery scripts. I know this because it happened to me.

Although this module has a nice touch in that it only loads jQuery when Zen Lightbox is to be used, that can create a "double loading of jQuery" and your other jQuery scripts may not work.

To solve that problem, edit this file:

includes/classes/zen_lightbox/slimbox.php

line #12
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.4.4.min.js"></script>';

change to:
//echo '<script type="text/javascript" src="' . $template->get_template_dir('.js', DIR_WS_TEMPLATE, $current_page_base, 'jscript') . '/jquery-1.4.4.min.js"></script>';

That prevents Zen Lightbox from loading jQuery again and all scripts will now work together nicely. :smile:

31 Mar 2011, 3:58 AM
#2588
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

Website Rob:

That prevents Zen Lightbox from loading jQuery again and all scripts will now work together nicely. :smile:

Thanks Rob,
I have it on my to-do list for the next version to add a check to see if jQuery is already loaded (from another plugin) and if so, then not to load the one for ZLB. That should resolve this issue too.

daniel

1 Apr 2011, 3:40 AM
#2589
pizza392 avatar

pizza392

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

hello, on product info page,
there's one product main image, several product additional images and several page links which use rel="lightbox", when i click on one link, i can click them one by one with the button next,
its nice for the main image, additional images and one page link, but i don't want the other page links display in the same lightbox with them, i want the others display seperately, click one link to open the lightbox (no next button), close it, then click another link to open the lightbox

what do i modify the codes to make it done? thanks

1 Apr 2011, 3:51 AM
#2590
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

pizza392:

hello, on product info page,
there's one product main image, several product additional images and several page links which use rel="lightbox", when i click on one link, i can click them one by one with the button next,
its nice for the main image, additional images and one page link, but i don't want the other page links display in the same lightbox with them, i want the others display seperately, click one link to open the lightbox (no next button), close it, then click another link to open the lightbox

what do i modify the codes to make it done? thanks

I can be dense at times so please explain this comment of your further. the way LB works on my shop is the product main image clicked on will get you the LB effect with the next/previous buttons for the additional pages.

this way you see the main one with the additional all at the same time. then the next product page is the same with its own LB effect.

now does yours do this too---yes???--then I misunderstood what you are asking and I am sorry

do you mean that you want lb in main one only then to have the nex/previous buttons NOT show so they can then go to the bottom of the page to see the additional images also each individually? as a customer that is one more step that may deter me from purchasing when I can see them all at once...just my thoughts only.

still not the right thing you ask...again sorry

as for links I had no idea a link could come up as a LB effect.

and if you have done it yet a url to your store would be nice.

1 Apr 2011, 4:01 AM
#2591
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

pizza392:

hello, on product info page,
there's one product main image, several product additional images and several page links which use rel="lightbox", when i click on one link, i can click them one by one with the button next,
its nice for the main image, additional images and one page link, but i don't want the other page links display in the same lightbox with them, i want the others display seperately, click one link to open the lightbox (no next button), close it, then click another link to open the lightbox

what do i modify the codes to make it done? thanks

A Link is always helpful for us to see exactly what you mean, but I [i]think[/] you just want to disable gallery mode in admin>config>Zen lightbox

daniel

1 Apr 2011, 11:11 AM
#2592
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

niestudio:

Thanks Rob,
I have it on my to-do list for the next version to add a check to see if jQuery is already loaded (from another plugin) and if so, then not to load the one for ZLB. That should resolve this issue too.

daniel
Not sure exactly how you plan to go about your checking but here is something to consider.

jQuery must load before any scripts to be used with it. As Linux will list alphabetically and thus, Zen Cart will load alphabetically, I've had to use a naming schema like: jscript_1jquery.js in order to have a correct a load sequence.

HTH

1 Apr 2011, 1:33 PM
#2593
psvialli avatar

psvialli

New Zenner

Join Date:
Mar 2011
Posts:
76
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I am very new to this, I have just installed light box and it is working great, but my issue is with the gallery

How do I link the images together so you can scroll through them?
Sorry if this has been asked before but could not find the answer

thanks

3 Apr 2011, 12:17 AM
#2594
joe_davila avatar

joe_davila

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

I've installed the module and run the sql query but the Lightbox menu in Admin -> Configuration is not showing up. Lightbox functionality is working on my site, but it's just not configurable in the admin panel. If anyone has run into this problem, please let me know how you fixed it.

I'm running version 1.3.9a

3 Apr 2011, 12:25 AM
#2595
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

joe.davila:

I've installed the module and run the sql query but the Lightbox menu in Admin -> Configuration is not showing up. Lightbox functionality is working on my site, but it's just not configurable in the admin panel. If anyone has run into this problem, please let me know how you fixed it.

I'm running version 1.3.9a

Never seen that before. On most of the installs I have done it shows as the last menu option in the configuration menu. Never tried it on 1.3.9a specifically, but 1.3.9h (the current) it works fine.

daniel

3 Apr 2011, 1:00 AM
#2596
joe_davila avatar

joe_davila

New Zenner

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

Re: Zen Lightbox addon [Support Thread]

I've checked the database tables configuration and configuration_group and they have all the references to zen_lightbox in them 1 additional row in configuration group and 21 additional rows in configuration. But it's still not showing on Admin panel.

Could it be because my installation of zen cart is in a directory other than the root? My installation is in https://www.mermagica.com/store... wouldn't think this would come into play, but I'm not sure.
:frusty:

3 Apr 2011, 1:18 AM
#2597
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

joe.davila:

I've checked the database tables configuration and configuration_group and they have all the references to zen_lightbox in them 1 additional row in configuration group and 21 additional rows in configuration. But it's still not showing on Admin panel.

Could it be because my installation of zen cart is in a directory other than the root? My installation is in https://www.mermagica.com/store... wouldn't think this would come into play, but I'm not sure.
:frusty:

Hi Joe,
I just made a test installation of 1.3.9a and installed ZLB and it shows in the menu just as it should.
Did you run the install in phpMyAdmin or in the ZC admin area?
You could run the uninstall.sql file (preferably in phpMyAdmin) and then re-run the install.sql (preferably in phpMyAdmin) file and see if that helps.
Not sure where the issue could be coming from as the sub directory shouldn't be a problem as far as I know.

Daniel

3 Apr 2011, 1:19 AM
#2598
niestudio avatar

niestudio

Zen Follower

Join Date:
Nov 2009
Posts:
285
Plugin Contributions:
2

Re: Zen Lightbox addon [Support Thread]

psvialli:

I am very new to this, I have just installed light box and it is working great, but my issue is with the gallery

How do I link the images together so you can scroll through them?
Sorry if this has been asked before but could not find the answer

thanks

Generally you just need gallery mode enabled in the ZLB admin area.
can you post a link to your site?

3 Apr 2011, 2:02 PM
#2599
divavocals avatar

divavocals

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

joe.davila:

I've checked the database tables configuration and configuration_group and they have all the references to zen_lightbox in them 1 additional row in configuration group and 21 additional rows in configuration. But it's still not showing on Admin panel.

Could it be because my installation of zen cart is in a directory other than the root? My installation is in www.mermagica.com/store... wouldn't think this would come into play, but I'm not sure.
:frusty:

niestudio:

Hi Joe,
I just made a test installation of 1.3.9a and installed ZLB and it shows in the menu just as it should.
Did you run the install in phpMyAdmin or in the ZC admin area?
You could run the uninstall.sql file (preferably in phpMyAdmin) and then re-run the install.sql (preferably in phpMyAdmin) file and see if that helps.
Not sure where the issue could be coming from as the sub directory shouldn't be a problem as far as I know.

DanielIn my experience if you run scripts to support any add-on in phpMyAdmin, the result is that things will not work correctly.. I ALWAYS run install, update, and uninstall scripts that come with any add-on from the Zen Cart SQL Query Executor in the admin area.

Running the ZLB script in phpMyAdmin instead of the SQL Query Executor, would insert the records into the DB without the table prefix (unless you manually modify the ZLB script to include the table prefix). This would mean that the ZLB configuration menu will be missing..

If you run the script from the Admin > Tools > Install SQL Packages then it will properly append the table prefix and the ZLB configuration setting will appear in Admin > Configuration.

If joe.davila did indeed install the ZLB script from phpMyAdmin, I suggest running the uninstall from phpMyAdmin (to remove the errant entries from his DB) and then go to **Admin > Tools > Install SQL Packages **and copy and past the contents of the ZLB install.sql file there and re-run the install script this way. ZLB should then show up in the Admin > Configuration menu.

3 Apr 2011, 2:52 PM
#2600
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Since I upgraded from 1.5 to 1.6 my lightbox no longer works on custom pages. Obviously somehting to do with my html. When I was using 1.5, this worked well:

<a href="http://www.silkblooms.co.uk/map%20coverage.jpg" rel="lightbox"

<img border="2" src="http://www.silkblooms.co.uk/map%20coverage.jpg" width="300" height="301"></a>

Now I'm just seeing a blank where the image used to be.... What should I change it to now?