coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: rostros on May 12, 2004, 03:35:34 PM

Title: Full size images only avalible to Certain Groups ?
Post by: rostros 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.
Title: Re: Full size images only avalible to Certain Groups ?
Post by: Joachim Müller 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 lineif (isset($image_size['reduced'])) {to something likeif (isset($image_size['reduced']) && USER_GROUP == 'your_special_group_id') {(not tested though).

GauGau

Title: Re: Full size images only avalible to Certain Groups ?
Post by: Floob on May 26, 2007, 09:05:14 PM
Can this line be modified to allow a certain user group to view the full images?

if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
Title: Re: Full size images only avalible to Certain Groups ?
Post by: leslie1970 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......
Title: Re: Full size images only avalible to Certain Groups ?
Post by: leslie1970 on June 20, 2007, 10:51:53 PM
okay delete that last post
Title: Re: Full size images only avalible to Certain Groups ?
Post by: Joachim Müller 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".
Title: Re: Full size images only avalible to Certain Groups ?
Post by: Hein Traag 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 (http://forum.coppermine-gallery.net/index.php?topic=25010.0)