Disallow unregistered to see original size - Page 2 Disallow unregistered to see original size - 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

Disallow unregistered to see original size

Started by cyw16, July 05, 2004, 11:11:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Keanuette

ok, just read the previous thread and added that extra bit. Thanks anyho.  ;D

Coyote

This is great - but Is it possible to validate the usergroup with code similar to above? Im using the smf bridge (non api version)

I just want the above code to work for users in the group 'Newbie'. But I cant find how to validate it :(

Any ideas appreciated.

Thanks,

Tony,

legend_neo

hi .. i searched but cant find which mod u r talking about ...  or which php file that u r refering  ..

so in a simple way  ... if i ch mod full size images using ftp client like "cute ftp" and ch mood them to "660"  ... will it work ???

please explain me ... will it just prevent ppl from linking to the pic .. i mean the pic will be displayed on the gallery  ... aor it has any other effect as well .....

Ronski

been trying to figure out how to do this, great thread thanks for all the code posts everyone!

Cheers,
Kieron

LilAngel

I had this small hack on 1.3, and I would really like to use it again. I don't want to use the disable guest access function, cause I do allow people to browse the gallery.. just not see the HQs.

Xandrios

For the new 1.4.2 version of the gallery it works a bit different. You need to edit include/themes.inc.php, this is how it works:

find:
Quote
            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
         

and replace that with:
Quoteif(USER_ID) {
            $pic_html = "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
         }else{
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" onclick=\"alert('Please login to see the full size picture.')\"/><br />";      
         }

You can leave out the Alert-part if you want, but its a nice way to makes things clear for your visitors.

Paver

This it the wrong place to discuss the 1.4 version but since you did, let me say that you should *never* edit themes.inc.php.  Instead, copy the code you need from the sample theme's theme.php file into your theme's theme.php and modify at will.  The variables & functions in the sample theme show you all the display-related things you can modify without touching the core Coppermine code.

Another way in version 1.4 to do what this thread discusses is to use my plugin:
http://forum.coppermine-gallery.net/index.php?topic=25010.0.