coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: ausdlk on April 30, 2007, 03:16:33 PM

Title: must disable Javascript in Firefox in order to type in text boxes
Post by: ausdlk on April 30, 2007, 03:16:33 PM
Click http://www.david-keenan.com/thumbnails.php?album=39 (http://www.david-keenan.com/thumbnails.php?album=39) for an example.

If Javascript in Firefox is enabled, I cannot enter text into this password field. This has been reported by several users as well so it is not machine specific.

If I disable Javascript, the password (and all text fields in admin mode) work okay.

This problem does not appear at all when using IE.
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Joachim Müller on April 30, 2007, 03:28:17 PM
Upgrade - you're using cpg1.4.8, while the most recent stable release is currently cpg1.4.10. We're reluctant to look into things that may be caused by using outdated versions.
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Nibbler on April 30, 2007, 05:03:36 PM
This is caused by adding poorly coded anti-right-click scripts. Remove it and your problem will go away.
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: ausdlk on May 01, 2007, 08:04:26 AM
>This is caused by adding poorly coded anti-right-click scripts.

Is there such a thing a "well coded anti-right-click scripts". I want this functionality on my site.

>Upgrade - you're using cpg1.4.8

Yes, I am -- but upgrading is not an option.
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Stramm on May 01, 2007, 08:36:22 AM
Quote from: ausdlk on May 01, 2007, 08:04:26 AM
but upgrading is not an option.
if you want some kiddie to take over you server, OK
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Hein Traag on May 01, 2007, 08:45:26 AM
You might want to read this thread: http://forum.coppermine-gallery.net/index.php?topic=33377.0 (http://forum.coppermine-gallery.net/index.php?topic=33377.0)
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Joachim Müller on May 01, 2007, 10:53:48 AM
No Right-Click scripts are silly in the first place though. We're aware that there are many users who want it, but you should really take your time and read why no-right-click doesn't make sense.
Some threads:

Quote from: ausdlk on May 01, 2007, 08:04:26 AMYes, I am -- but upgrading is not an option.
Can't see why: as Stramm suggested, it's mandatory to upgrade for security reasons. Your coppermine gallery doesn't seem to be heavily modified in terms of core functionality, so this is just laziness imo.
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: ausdlk on May 02, 2007, 03:42:32 PM
Okay, okay.

I'm not convinced that disabling right-clicks is as dumb an idea as y'all say it is -- I mean, yes, there are ways around it. There are ways around just about everything if you're smart enough. My goal was to protect against the casual abuser, not the determined hacker.

But now I want to remove it and replace it with the "overlay.gif" solution.

But the embarrassing part is that I have long since forgotten where this "disable right-click" code was inserted. No amount of text searching has revealed where this code might be hiding. Maybe my local copy doesn't match the server...

Can someone smarter then me tell where to look... *blush*
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Nibbler on May 02, 2007, 03:49:15 PM
themes/project_vii/template.html
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: ausdlk on May 02, 2007, 04:10:54 PM
>themes/project_vii/template.html

Nibbler -- Thanks for the lightning response. Right-click re-enabled -- and "overlay.gif" working fine.

Now to consider the upgrade suggestion... I fear that I have 'hacked" enough of the original theme code that an upgrade would be a VERY painful process. I don't think that it is fair to call this "laziness". It just comes down to a matter of time and priorities.

But thanks again to all for your assistance.
Title: Re: must disable Javascript in Firefox in order to type in text boxes
Post by: Joachim Müller on May 02, 2007, 07:11:31 PM
Your custom theme isn't affected by upgrading if you're doing exactly as suggested in the upgrading docs. That's why there is a theme system that allows you to modify stuff without hacking the core files.
Your initial issue is solved. We have a strict "one question per thread" policy. Marking thread as "solved". Start a new one if you have issues upgrading.