Disable click setting stuck. Disable click setting stuck.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Disable click setting stuck.

Started by ElkySS, October 15, 2003, 10:34:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rodinou

I go to Admin ...

I turn to Yes to DISABLE the Script ... Right click works
I turn to No ... Right Click always works !

So ... if I choose YES or NO, in 2 cases, no right click :(

Ouinnnn ...

Joachim Müller

check your database with phpMyAdmin, what does the config table say about disable_popup_rightclick and disable_gallery_rightclick ?

GauGau

Rodinou

Actually my config is "Disable Right click > Yes"

And I have this on PhpMyAdmin

Modifier Effacer  disable_popup_rightclick   1  
Modifier Effacer  disable_gallery_rightclick   1

Joachim Müller

to switch it off, set the vars in phpMyAdmin both to "0"

GauGau

Rodinou

I have tested, changed in phpMyAdmin : same result : no right click !!!

Anyway, the code is very old (only compatible with IE, with Mozilla you can have right content)

If I remove from the code, no pb with admin ?


It would be more interesting, in future, to do

<div style=width=100% height=100% style="background-image:blank.gif; z-index:2>
<img src=img.jpg>
</div>

... But have you any problem ?!

Joachim Müller

for the moment (as a fix), you can edit script.js and comment out the no-right-click stuff.
The issue with a blank gif in front of the actual picture has been discussed on the dev board and will probably be in the next version.

GauGau

Rodinou

#6
Ok I do This :)

Take the code for the future version ...

Don't forget if you put a blank.gif ON a clickable pic ... how to click to have the big pic hehe ? :)

Solution is simple. Since Mozilla & IE5.x, ALL can be clickable ... here's the code.

I have taken one of my page to have a "real" code.

http://www.sortons.net/photos/displayimage.php?album=177&pos=1

So ...

Actually the code is

<table align="center" width="600" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td align="center" class="tableb" height="100" style="white-space: nowrap; padding: 0px;">
                        <table cellspacing="2" cellpadding="0" style="border: 1px solid #000000; background-color: #5B5B5B; margin-top: 30px; margin-bottom: 30px;">
                                <tr>
                                        <td>
                                                <a href="javascript:;" onClick="MM_openBrWindow('displayimage.php?pid=5279&fullsize=1','8261626483f8e61d5c7e24','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=496,height=656')"><img src="albums/userpics/10001/normal_02.jpg" class="image" border="0" alt="Cliquez pour voir l'image en taille réelle" /><br /></a>

                                                <div align="center" class="admin_menu"><a href="delete.php?id=5279&what=picture"  class="adm_menu" onclick="return confirm('Voulez vous vraiment SUPPRIMER cette image?\nLes commentaires seront également supprimés.');">SUPPRIMER CETTE IMAGE</a></div>

                                        </td>
                                </tr>
                        </table>



Replace

<a href="javascript:;" onClick="MM_openBrWindow('displayimage.php?pid=5279&fullsize=1','8261626483f8e61d5c7e24','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=496,height=656')">
<img src="albums/userpics/10001/normal_02.jpg" class="image" border="0" alt="Cliquez pour voir l'image en taille réelle" /><br /></a>


by

<div title="Cliquez pour voir l'image en taille réelle" style="width:100%; height:100%; cursor:hand; z-index:2; background-image:url(blank.gif)" onClick="MM_openBrWindow('displayimage.php?pid=5279&fullsize=1','8261626483f8e61d5c7e24','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=496,height=656')">

<img src="albums/userpics/10001/normal_02.jpg" class="image" border="0" />

</div>


In fact, the image stops to be linked : it's the Div which is in Z-INDEX becoming clickable : your pic is protected.

Why ? Right click and you have ... "save the background image as ..." and you can have only the ... "blank.gif" :)

The top would be that ...

albums/userpics/10001/normal_02.jpg =
image.php?id=44

so ...

<img src=image.php?id=44>

(possible 'cause the paths are in the database) and the protection will be granted.

rgroen

Can anyone tell me why the right click doesnt work in de 1.2 version.

I only want that people can right click the biggest original photo.


Thnx

Rodinou

Before post ...
1. see if you are in the good forum ... it's about a bug, a request ... so ... SUPPORT FORUM is the good.

2. see if a similar post doesn't exist or ... in this case
http://forum.coppermine-gallery.net/index.php?topic=569

More easy for all :)

ThE_TreBoR

Hi All


Java:

In the Config page you can turne right click on or off, but it doesent work!
It doesent matter if it's on or off, right click can't be enabeld.


Admin mode:

wy can't you edit/delete/ any Album properties as Admin unless the Album rights is set to Members of the group Administrators?

Thanx on beforhand!!!!

John

The java right click problem has been proposed on here before! did you search? AFAIR the solution was to set it back to the default val. in your sql database.

ThE_TreBoR

Hi John

Thanx for your anwser but it diden't help.


//TreBoR

Joachim Müller

moved/merged some right-click postings into this thread. No right click is crap and will be removed from Coppermine, as it brings more problems than it solves.
For the moment, just disable the settings in the database as described above.

GauGau

John

@gaugau : I dont know if it should be completely removed??? yes it is crap, would recommend remove function completely from cpg BUT also allow add-on to completely disable right click (like its doing now) so at least there is some choice in the matter??

Joachim Müller

I will remove the JavaScript completely and instead there'll be some blank gif in front of the actual picture, so a "right-click,save picture as" will only save the blank gif. This will of course be an admin option (like it is now) and an add-on in the mods section.

GauGau

pcfreak

Quote from: "gaugau"I will remove the JavaScript completely and instead there'll be some blank gif in front of the actual picture, so a "right-click,save picture as" will only save the blank gif. This will of course be an admin option (like it is now) and an add-on in the mods section.

GauGau

Has no use, spend time to beter things

Rodinou

I'm OK :)

The "No right click option" or "blank.gif" is loss of time :)

If you don't want people copy your pictures ... don't put them on the net : the BEST NO SAVING PIC OPTION :)

simplythi

how do i turn off the no right click option? Which file is the no right click code located in? I want my users to be able to right click and save images as they wish.

Joachim Müller


Gren

The ability to right click was disabled by default, for some reason. However, the ability to right click was toggled on in the control pannel. Switching the settggns around doesn't work.

Normally, this wouldn't be an issue, but Dekstop wallpaper is among my galleries content. Any clues to what this is caused by? Even better, possible fixes?

Edit: Oh, good gravy! This was for Coppermine Photo Gallery 1.2.0 - RC2, not 1.1.1! Terribly sorry!