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]   Go Down

Author Topic: Full size images only avalible to Certain Groups ?  (Read 3550 times)

0 Members and 1 Guest are viewing this topic.

rostros

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Full size images only avalible to Certain Groups ?
« on: May 12, 2004, 03:35:34 pm »

Full size images only avalible to Certain Groups ?

I just want to say keep up the great work guys this is probabily the best image gallery in the world.

Back to the topic question. I have two groups , Registered and Special Members , I would like to know if it is possible to only make the Special Members group have the ability to view full size images. But I want both groups to be able to view the intermediate pictures ? Is this possible ? Any feedback would be apprieciated. thanks.
« Last Edit: May 27, 2007, 10:13:51 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Full size images only avalible to Certain Groups ?
« Reply #1 on: May 14, 2004, 08:55:07 am »

I'm not sure, but I think someone has posted a hack that will do that for you, but I don't remember where it was posted or what keywords to search for, so this may be a stupid comment from me...

A quick and dirty hack would be to edit displayimage.php and modify the line
Code: [Select]
if (isset($image_size['reduced'])) {to something like
Code: [Select]
if (isset($image_size['reduced']) && USER_GROUP == 'your_special_group_id') {(not tested though).

GauGau

Logged

Floob

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Full size images only avalible to Certain Groups ?
« Reply #2 on: May 26, 2007, 09:05:14 pm »

Can this line be modified to allow a certain user group to view the full images?

Code: [Select]
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
Logged

leslie1970

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Full size images only avalible to Certain Groups ?
« Reply #3 on: June 20, 2007, 10:49:41 pm »

Okay I didn't realize I had this enabled until someone used it.  I deleted their pics but I can't delete their album......
Logged

leslie1970

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Full size images only avalible to Certain Groups ?
« Reply #4 on: June 20, 2007, 10:51:53 pm »

okay delete that last post
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Full size images only avalible to Certain Groups ?
« Reply #5 on: June 25, 2007, 06:56:40 am »

We never delete postings, they remain as a reference. If you managed to resolve your issue, post what you did for the benefit of others and to enable moderators to mark your thread as "solved".
« Last Edit: June 25, 2007, 07:08:50 am by GauGau »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Full size images only avalible to Certain Groups ?
« Reply #6 on: June 25, 2007, 07:50:12 am »

You might also want to take a look at this plugin. http://forum.coppermine-gallery.net/index.php?topic=25010.0
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.