Allow right click & save picture, but gets a file of one pixel? - Page 2 Allow right click & save picture, but gets a file of one pixel? - Page 2
 

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

Allow right click & save picture, but gets a file of one pixel?

Started by theK, October 07, 2004, 06:12:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theK

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

Zeitgeist

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
I love GauGau!

kiig

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.
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

Zeitgeist

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

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

kiig

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... :-)
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

internetgeek

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

Thanks

kiig

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)
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

internetgeek


kiig

Here's my change in displayimage.php

in function display_fullsize_pic() :

/* 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.
Kim Igel
http://igel.it (Personal playground) or http://foto.igel.it (Paypal shop-site)

theK

Quote from: internetgeek 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

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.

internetgeek

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

Thanks

ansalex

Kiig, thek,

it works fine.

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

thanks for your contribution.

Alex