Advanced search  

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

Pages: 1 [2]   Go Down

Author Topic: Allow right click & save picture, but gets a file of one pixel?  (Read 21805 times)

0 Members and 3 Guests are viewing this topic.

theK

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #20 on: October 22, 2004, 05:33:46 am »

@zeitgeist: My gallery consists of pictures of different sizes as well. But the mod works with my installation. Are you sure you did the rest of the settings in 'Config' (See one of my previous posts)?
Logged

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #21 on: October 22, 2004, 06:14:13 pm »

okay, well yes ive done all those steps but it appears there is a white blank spot underneath all of my images, example: http://www.topdrunks.com/gallery/displayimage.php?album=13&pos=4

is that normal?

thanks
Logged
I love GauGau!

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #22 on: October 22, 2004, 09:26:24 pm »

if you mean the newly added 5 mm. white gap underneath the pictures :
remove the <br> at end of the 'new' code, - both places. I beleave the <div>...</div> automatically does a linebreak, - and therefore the <br> introduces one more linebreak. I wondered about the same thing this morning and tried different things...

Kim Igel.
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

Zeitgeist

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 71
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #23 on: October 22, 2004, 09:38:16 pm »

thanks, i should of noticed that...  :o

It does effect in admin mode by cutting off some of the buttons but easily livable
Logged
I love GauGau!

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #24 on: October 22, 2004, 09:44:43 pm »

you're right, - I didn't see that... anyway, - with my theme (which is Rainy_day) the bottons come close, - but doesnt get cut off... but the pictures looks better without the white gap... :-)
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

internetgeek

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #25 on: October 23, 2004, 10:23:37 pm »

Did anyone figure out how to apply "right click, one pixel save" to the slideshow and full size yet?

Thanks
Logged

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #26 on: October 24, 2004, 07:28:13 pm »

I've done it with fullsize...

try http://foto.igel.it and see if that's what you want, - and if you want it i'll post the changes in a couple of hours (can't right now)
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

internetgeek

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #27 on: October 24, 2004, 08:11:57 pm »

That's exactly what I'm looking for. Much appreciated.
Logged

kiig

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 141
    • Igel's Journaler
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #28 on: October 24, 2004, 10:38:56 pm »

Here's my change in displayimage.php

in function display_fullsize_pic() :

Code: [Select]
/* Org. code */
/*
echo "<a href=\"javascript: window.close()\"><img src=\"" . $pic_url . "\" $geom class=\"image\" border=\"0\" alt=\"\" title=\"" . htmlspecialchars($row['filename']) . "\n" . $lang_fullsize_popup['click_to_close'] . "\"></a><br />\n";
*/

 /* Masked with empty gif, - disallowing 'save image' */
echo "<a href=\"javascript: window.close()\"><div style=\"width:1px; height:1px; background: url(".$pic_url."); background-repeat:no-repeat; padding:0px;\" title=\"" . htmlspecialchars($row['filename']) . "\n" . $lang_fullsize_popup['click_to_close'] . "\"><img src=\"images/spacer.gif\" $geom  border=\"0\" alt=\"\" /></div>\n";




So, find the echo "<a href=\"javascript: window.close... line, - the first I outcommented (is it called that ?! :-) ) and basicallly change it for my piece of code. You need to put an empty spacer.gif in the images folder though.

Kim Igel.
Logged
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

theK

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #29 on: October 27, 2004, 11:31:09 am »

Did anyone figure out how to apply "right click, one pixel save" to the slideshow and full size yet?
Thanks

Nope, I haven't figured out how to apply it _perfectly_ to slideshow yet. I managed to 'cover/layer' the first picture with the spacer.gif during slideshow, but it caused the slideshow to not advancing to the 2nd picture and the rest of the pics.

I don't create intermediate/normal pics, hence I didn't implement the 'layering' on the full-size images. Thanks for your contribution anyway, kiig.
Logged

internetgeek

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #30 on: October 27, 2004, 09:13:26 pm »

Could you post your solution for slideshow so that we may work on it?

Thanks
Logged

ansalex

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Allow right click & save picture, but gets a file of one pixel?
« Reply #31 on: November 01, 2004, 11:18:44 pm »

Kiig, thek,

it works fine.

if you have any solution for the slideshow it should be great.

thanks for your contribution.

Alex
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.019 seconds with 19 queries.