Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2 3   Go Down

Author Topic: Disable click setting stuck.  (Read 19397 times)

0 Members and 1 Guest are viewing this topic.

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Disable click setting stuck.
« on: October 15, 2003, 10:34:26 pm »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Edit: Right click issues w/ 1.2RC2
« Reply #1 on: October 15, 2003, 10:37:58 pm »

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

GauGau
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Edit: Right click issues w/ 1.2RC2
« Reply #2 on: October 15, 2003, 11:04:46 pm »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Edit: Right click issues w/ 1.2RC2
« Reply #3 on: October 15, 2003, 11:07:09 pm »

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

GauGau
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Edit: Right click issues w/ 1.2RC2
« Reply #4 on: October 16, 2003, 10:17:31 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Edit: Right click issues w/ 1.2RC2
« Reply #5 on: October 16, 2003, 11:10:41 am »

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
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Edit: Right click issues w/ 1.2RC2
« Reply #6 on: October 16, 2003, 11:23:46 am »

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

Code: [Select]
<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

Code: [Select]
<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

Code: [Select]
<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.
« Last Edit: September 26, 2004, 08:30:42 pm by GauGau »
Logged

rgroen

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Right click
« Reply #7 on: October 16, 2003, 01:59:32 pm »

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
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Edit: Right click issues w/ 1.2RC2
« Reply #8 on: October 16, 2003, 02:18:17 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Can't turne of Javascript and edit Albums even as admin!!
« Reply #9 on: October 19, 2003, 04:49:59 pm »

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!!!!
Logged

John

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Edit: Right click issues w/ 1.2RC2
« Reply #10 on: October 19, 2003, 04:53:45 pm »

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.
Logged

ThE_TreBoR

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Edit: Right click issues w/ 1.2RC2
« Reply #11 on: October 19, 2003, 05:22:48 pm »

Hi John

Thanx for your anwser but it diden't help.


//TreBoR
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Edit: Right click issues w/ 1.2RC2
« Reply #12 on: October 19, 2003, 09:35:00 pm »

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
Logged

John

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Edit: Right click issues w/ 1.2RC2
« Reply #13 on: October 19, 2003, 09:52:51 pm »

@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??
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Edit: Right click issues w/ 1.2RC2
« Reply #14 on: October 19, 2003, 10:01:27 pm »

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
Logged

pcfreak

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31
Edit: Right click issues w/ 1.2RC2
« Reply #15 on: October 19, 2003, 10:19:31 pm »

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
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Edit: Right click issues w/ 1.2RC2
« Reply #16 on: October 19, 2003, 10:21:01 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
no right click - how to allow right clicks
« Reply #17 on: October 22, 2003, 10:21:24 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Edit: Right click issues w/ 1.2RC2
« Reply #18 on: October 22, 2003, 10:28:58 pm »

the feature is buggy and will have to vanish - see http://forum.coppermine-gallery.net/index.php?topic=569 for a fix

GauGau
Logged

Gren

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
An unusual right click issue.
« Reply #19 on: October 23, 2003, 10:47:03 pm »

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!
Logged
Pages: [1] 2 3   Go Up
 

Page created in 0.042 seconds with 19 queries.