Full size images only avalible to Certain Groups ? Full size images only avalible to Certain Groups ?
 

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]

Main Menu

Full size images only avalible to Certain Groups ?

Started by rostros, May 12, 2004, 03:35:34 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

rostros

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.

Joachim Müller

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


Floob

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__);

leslie1970

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

leslie1970


Joachim Müller

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".

Hein Traag