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

Zen Lightbox addon [Support Thread]

Views: 953,167

Results 2,521 to 2,540 of 3,722
24 Mar 2011, 9:04 PM
#2521
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Zen Lightbox addon [Support Thread]

I've seen this questions asked but not answered.....here I go:

I have a js file to disable the right click function, displaying a copyright warning.

Where would I edit the zen lightbox files to get that js function to work on the lightbox image?

I know, I know....anyone really wanting it can get it...but it helps makes our case when images are blatantly taken.

thanks for any help. Great mod..thanks for all your hard work...

24 Mar 2011, 9:36 PM
#2522
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]

athena:

I know, I know....anyone really wanting it can get it...

Then let me add this.. Watermarks are MUCH more effective way to protect your images and provide REAL protection.. Right click scripts only deflect and deter only those who are not particularly web/computer savvy.. Non web/computer savvy folks are UNLIKELY perpetrators of image theft.

25 Mar 2011, 6:55 PM
#2523
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

thank you...yes, i guess i need to add yet another new skill to my image processing.

25 Mar 2011, 7:27 PM
#2524
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]

athena:

thank you...yes, i guess i need to add yet another new skill to my image processing.Not really.. :laugh:IH2 can automatically add watermarks to your images.. and guess what??

it works WITH Zen Lightbox!:shocking::D

25 Mar 2011, 7:38 PM
#2525
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

I've just been looking and find that my server does not have ImageMagick...so that's a deal breaker, right?

25 Mar 2011, 7:41 PM
#2526
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]

athena:

I've just been looking and find that my server does not have ImageMagick...so that's a deal breaker, right?You need "GD libraries or ImageMagick" If your host doesn't have either on installed (hard to believe that a contemporary host would NOT have one or the other of these tools installed) ask them about getting it installed for you..

25 Mar 2011, 8:57 PM
#2527
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

spent the afternoon researching this and I would feel better if I could just make the js right click disable work for the lightbox image. THe copyright pop up message is the goal here.

In our industry I think most competitors try to respect our work...the problem is they assume that we got our images from the supplier and so they are fair game. To our astonishment we found one image in particular......a very hard one to shoot....was taken by the manufacturer of the parts and being distributed to our competitors without them realizing it was ours.

not ready to pay an image tracking service yet.

So, how would I implement my js file to affect the lightbox image?

25 Mar 2011, 9:16 PM
#2528
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

athena:

spent the afternoon researching this and I would feel better if I could just make the js right click disable work for the lightbox image. THe copyright pop up message is the goal here.

In our industry I think most competitors try to respect our work...the problem is they assume that we got our images from the supplier and so they are fair game. To our astonishment we found one image in particular......a very hard one to shoot....was taken by the manufacturer of the parts and being distributed to our competitors without them realizing it was ours.

not ready to pay an image tracking service yet.

So, how would I implement my js file to affect the lightbox image?

can you post a link to your site so we can see how you are implementing IH2 and ZLB right now?

25 Mar 2011, 9:25 PM
#2529
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

my server does not offer :

You need "GD libraries or ImageMagick" If your host doesn't have either on installed (hard to believe that a contemporary host would NOT have one or the other of these tools installed) ask them about getting it installed for you..

I do have photoshop cs and will just work on learning how to watermark the images. I should have been doing this all along but we do it all, photography and formatting. 800 product images... 1 down 799 to go ...shouldn't be too hard eh?

still want to know how to get my js file to work....thanks for any help...and yes, i do see that there are batch options on ps...will learn over the weekend...

25 Mar 2011, 10:58 PM
#2530
darkangel avatar

darkangel

Totally Zenned

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

Re: Zen Lightbox addon [Support Thread]

athena:

my server does not offer :

I do have photoshop cs and will just work on learning how to watermark the images. I should have been doing this all along but we do it all, photography and formatting. 800 product images... 1 down 799 to go ...shouldn't be too hard eh?

still want to know how to get my js file to work....thanks for any help...and yes, i do see that there are batch options on ps...will learn over the weekend...

sometimes the longest way is fine but in this case---since you did not provide a link to your site so the creator could look and maybe give you the solution....the best and simplest way for you to get the watermarks is to install ih2---I do not have image magic either and it works.

26 Mar 2011, 12:16 AM
#2531
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]

DarkAngel:

sometimes the longest way is fine but in this case---since you did not provide a link to your site so the creator could look and maybe give you the solution....Yep.. because without a link, it is a GUESS on the creators part on how to add the code you are seeking (since you already have it on your current site, it would help him answer your question to take a gander at what you've got going on already).. Unless athena is instead asking niestudio to come up with a custom solution.. Then.. well.. it's a matter of if niestudio is so inclined.. has the time.. etc...

DarkAngel:

** do not have image magic either and it works**.Indeed it does!:smile: It's likely you have GD LIbraries installed instead.. EITHER ONE will work with IH2 :smile:

26 Mar 2011, 12:03 PM
#2532
commdiver avatar

commdiver

Zen Follower

Join Date:
May 2010
Posts:
222
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Lightbox was working for me up until a short while ago. Now when I click on a product's image, I just get this:

Could someone please let me know what is causing this? The only thing I can remember doing since Lightbox was working is installing the Reward Points Full Suite module.

26 Mar 2011, 1:36 PM
#2533
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

thanks, you guys...i have the solution and am not asking for any special programming...just how to get a javascript file, which normally automatically loads on every page in zencart, to load on the lightbox presentation page. You know, like the css file does. So I'll look for how the css links to the lightbox event and try that.

I don't post my link here because in the past my sight has been overwhelmed and the bandwidth through the roof.

here is the js code..it is a common old script. thanks for your time:

/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

var clickmessage="Images Copyrighted. Please do not copy."

function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}

function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}

if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
26 Mar 2011, 2:11 PM
#2534
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

well...it's no wonder you guys were puzzled...although I still want to know how to get a js file to load here....

I found that I had not uploaded the lightbox file in the main store directory...just the images and includes folders....somehow overlooked the main php file; it worked without it but now when I right click it is a different menu, less blatantly "please steal this image" in both ie and firefox.

I'll try installing ih2 and see what happens.

26 Mar 2011, 4:09 PM
#2535
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]

athena:

well...it's no wonder you guys were puzzled...although I still want to know how to get a js file to load here....

I found that I had not uploaded the lightbox file in the main store directory...just the images and includes folders....somehow overlooked the main php file; it worked without it but now when I right click it is a different menu, less blatantly "please steal this image" in both ie and firefox.

I'll try installing ih2 and see what happens.FYI you can post your link without it becoming "clickable" pretty easily just by adding spaces to the appropriate places.. People do it all the time here..

For example: http:// yoursite . com OR http:// yoursite dot com.

or

you can enclose your URL inside CODE shortcodes like this:```
http://www.yoursite.com


The reason folks ask for the site  link is that for nearly all modules, it is DIFFICULT and near impossible to help with troubleshooting issues without a link to the site.. This way the people you are asking for help can see what you see.. It's a much more efficient way to help..

For me, given that I work in software dev, I've learned over the years that a written description of the problem is not always in and of itself enough to KNOW and SEE what is happening.. I have to see what you see so that I can get right to the issue versus guessing at what it MIGHT be.. So I personally won't even try an lob guesses at a problem I can't "see" (others may feel differently)..
26 Mar 2011, 4:17 PM
#2536
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

DivaVocals:

For me, given that I work in software dev, I've learned over the years that a written description of the problem is not always in and of itself enough to KNOW and SEE what is happening.. I have to see what you see so that I can get right to the issue versus guessing at what it MIGHT be.. So I personally won't even try an lob guesses at a problem I can't "see" (others may feel differently)..

Totally agree DivaVocals,
I'm waiting to see a link before I chime in on where the 'fix' might be able to be placed. Half of the time even a link isn't enough, so its almost impossible without.

@athena, you could always PM a few of us the link if you are that afraid of the bandwidth.

daniel

26 Mar 2011, 4:18 PM
#2537
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

mretzloff:

Lightbox was working for me up until a short while ago. Now when I click on a product's image, I just get this:

Could someone please let me know what is causing this? The only thing I can remember doing since Lightbox was working is installing the Reward Points Full Suite module.

Please update to ZLB 1.6 and this issue should be resolved

daniel

26 Mar 2011, 6:09 PM
#2538
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Re: Zen Lightbox addon [Support Thread]

Sorry to double post....went to wrong thread...long weekend:

thanks for the tips...zen lightbox crew...

Got image handler working ! Great Mod! Don't know how I missed this...but our server said they did not support it.....news to them!

Just to recount:

Zencart automatically loads in jscript files in the My_Template > jscript folder

Right?

My disable right-click jscript works just find in zencart...but not in the lightbox. Why doesn't it load in the lightbox?

js code is in above post....

my test site...very raw so don't expect to be impressed:

 www.geoodyssey.com/Products/
26 Mar 2011, 6:31 PM
#2539
niestudio avatar

niestudio

Zen Follower

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

Re: Zen Lightbox addon [Support Thread]

athena:

My disable right-click jscript works just find in zencart...but not in the lightbox. Why doesn't it load in the lightbox?

js code is in above post....

Hi Athena,
first of all, you should note that on a mac your current right click blocker is not working at all in chrome or safari. Even on the regular images that show before ZLB comes into play. So I would suggest you look for a more current solution since this is so important to you.
Even on a PC you can just drag them to the desktop without using a right click menu.

Now for ZLB, do you plan to use additional images on your site, or just the one main image?
If you DO NOT plan to use additional images I have a simple hack you can make to the slimbox code that will prevent the right click menu that does pop up from showing a save image as option.

If you DO plan to use additional images, you might have to look for a pretty customized solution. I have done some google searches for adding this functionality to slimbox and most seem to say its not possible. Here on the zen cart forum the people on the faul slimbox thread have been talking about this option since 2008 and they get the same response: just use watermarks because you can really block them anyway.

let me know if you want to try the hack and i'll tell you what to modify.

daniel

26 Mar 2011, 6:44 PM
#2540
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]

So now that your images are watermarked why the continued concern about image theft and outdated right click scripts??

athena:

Sorry to double post....went to wrong thread...long weekend:

thanks for the tips...zen lightbox crew...

Got image handler working ! Great Mod! Don't know how I missed this...but our server said they did not support it.....news to them!

Just to recount:

Zencart automatically loads in jscript files in the My_Template > jscript folder

Right?

My disable right-click jscript works just find in zencart...but not in the lightbox. Why doesn't it load in the lightbox?

js code is in above post....

my test site...very raw so don't expect to be impressed:

www.geoodyssey.com/Products/