Advanced search  

News:

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

Pages: 1 2 3 4 [5]   Go Down

Author Topic: Full-Size & Intermediate Photos Access Control  (Read 119829 times)

0 Members and 1 Guest are viewing this topic.

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Full-Size & Intermediate Photos Access Control
« Reply #80 on: August 07, 2007, 04:35:16 pm »

There should be an option for non image file

What do you want to control? -> everything
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Ingalb

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Full-Size & Intermediate Photos Access Control
« Reply #81 on: August 07, 2007, 11:50:01 pm »

There should be an option for non image file

What do you want to control? -> everything


Thanks Sami,

I haven't see that option  ::) :-\
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Full-Size & Intermediate Photos Access Control
« Reply #82 on: September 22, 2007, 10:14:03 am »

Hey,

Sorry if this has been asked b4. I am using a modded version of CPG, with stramms mod pack. I see that init.php and the lang file will need editited. What parts do i edit to make both work?

Also does this mod remove the alt attribute of the file location too?

Thanks.
Logged
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

greggan

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Full-Size & Intermediate Photos Access Control
« Reply #83 on: December 14, 2008, 05:21:50 pm »

Great plugin but it dont work when Lightbox is used for fullsize images.
Is it possible to get this plugin to restrict Lightbox popup to show for logged in users only?
It does not work just to disable full size view :0(

Ref: Lightbox [ http://forum.coppermine-gallery.net/index.php/topic,35539.0.html ]

Regards/ Stefan
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Full-Size & Intermediate Photos Access Control
« Reply #84 on: March 28, 2009, 09:50:36 am »

A few thoughts I had while writing this plugin:
  • If groupmgr.php had a plugin hook, I could add a "allow full-size access" setting there.
Why not add such a hook now to cpg1.5.x while you still can *hint*  ;)

Joachim
Logged

paul__cz

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Full-Size & Intermediate Photos Access Control
« Reply #85 on: March 31, 2009, 11:32:01 pm »

Hi all! I have this error massage after click to normal picture (600x400px). I can open original large picture.

Fatal error: Cannot redeclare loginform() (previously declared in .../include/themes.inc.php:2717) in ...theme.php on line 833

Thanks
Paul__cz
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Full-Size & Intermediate Photos Access Control
« Reply #86 on: April 01, 2009, 08:38:03 am »

The file include/themes.inc.php doesn't contain a function named loginform(). You must have introduced that in error. Undo it. Not related to this thread. Read up board rules, then start a thread of your own if you can't get this issue solved on your own.
Logged

Mimer

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 129
    • Fjotte
Re: Full-Size & Intermediate Photos Access Control
« Reply #87 on: May 31, 2009, 02:08:59 pm »

Danish language file updated for v. 1.4 based on english.php.
Revision 1.1

Mimer  8)
« Last Edit: June 01, 2009, 01:20:17 am by Mimer »
Logged

jolly

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Full-Size & Intermediate Photos Access Control
« Reply #88 on: June 19, 2009, 08:56:35 pm »

There is one problem ;(

I am using Enlargeit plugin as well, and unfortunetly that both plugins did not work togheter.

Even if I set that Guest can only see thumbnails, after click, Enlargeit shown pictture in full size.

Any chances make that plugins cooporate?
Logged

jolly

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Full-Size & Intermediate Photos Access Control
« Reply #89 on: June 19, 2009, 09:36:55 pm »

Ok, solved.
It did not notice I can set it in Enlargeit config.
Logged

jolly

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Full-Size & Intermediate Photos Access Control
« Reply #90 on: June 21, 2009, 10:26:54 pm »

It's me again.
This is great plugin Paver, really very usefull. But I wonder, is it possible to apply this plugin only for one album? For instatnt, album numer 5 ?
In other words: registered users have full size access for every albums, except album number 5. They can see only thumbnails picture.
What do you think ?
Logged

Bash

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Full-Size & Intermediate Photos Access Control
« Reply #91 on: November 26, 2009, 11:47:55 pm »

This mod is excellent has all the options I needed. Thanks!
Logged

durangod

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: Full-Size & Intermediate Photos Access Control
« Reply #92 on: January 02, 2010, 11:25:11 pm »

IM so very happy i ran into this, i was just sitting here thinking of a way to keep joe smoe public from downloading any photo they wanted and two seconds into that thought i ran into this mod, its installed and running PERFECTLY, really nice job... excellent by brain thanks you...
Logged

soluzioninrete

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Full-Size & Intermediate Photos Access Control
« Reply #93 on: October 28, 2010, 05:40:40 pm »

A user with 'intermediate' access level can view fullsize picture by directly accessing the right URL with the browser.
Patch proposed:

Index: codebase.php
===================================================================
@@ -137,7 +137,7 @@
 
   // Restrict access to DisplayImage.php if not allowed to view intermediate images
   if ($CONFIG['plugin_controlfullsize_controleverything'] && defined('DISPLAYIMAGE_PHP') && !GALLERY_ADMIN_MODE) {
-    $validuser = controlfullsize_validate('intermediate');
+    $validuser = controlfullsize_validate('fullsize') || (is_null($_REQUEST['fullsize']) && controlfullsize_validate('intermediate'));
     if (!$validuser) {
       load_template();
       pageheader($lang_error);
Logged
Pages: 1 2 3 4 [5]   Go Up
 

Page created in 0.019 seconds with 22 queries.