[Solved]: Only registered users can see photos! [Solved]: Only registered users can see photos!
 

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

[Solved]: Only registered users can see photos!

Started by Bart, March 09, 2004, 11:16:24 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Bart

How I can make to anonymous users could not see any photos in gallery. Only registered users can see photos?
Bart

Casper

Hi,

in admin mode, first go into config, and make sure 'users can have private albums' and 'show private album icon to unlogged user' are both set at YES.  
Now go to the category page, and you will see the 'properties' button next to the album.  Click on it, and change the 'album can be viewed by' in there.

note, in the next version, you won't have to show the icon.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Bart

I didn't see in the category page 'properties' button  :cry:
Bart

Casper

You must be in 'admin mode', and logged in with your admin account.
All albums, except user albums, have the 'delete', 'properties', and 'edit pics' buttons next to the album thumbnail.

for the 'user galleries' albums, you have to follow the link to the user sub-category page (one further link) before you see these buttons.

If you follow the above, and still cannot see the buttons, please post back here.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

I have read your first post agai, and think I may have mis-understood.

If you want to stop ANY unlogged user from seeing ANY pics, look at this thread. http://forum.coppermine-gallery.net/index.php?topic=3503
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Bart

I don't know what You mean. If You can make screen shot and show me how I must do it. It is strange for me why You don't add option in config 'show photos only for registed user'
Bart

Joachim Müller

sure, all you have to do for a feature to make it work is adding an entry in the coppermine options - no additional coding necessary :wink:

GauGau

Bart

I want only to log in users could look photos. You do not let me concrete solution my problem or it is not working!!!
Bart

Bart

Quote from: "casper"I have read your first post agai, and think I may have mis-understood.

If you want to stop ANY unlogged user from seeing ANY pics, look at this thread. http://forum.coppermine-gallery.net/index.php?topic=3503

Basai  :D
Bart

matteast

So there is no way of making other Categories (albums within them) private then.

Because i have tested it the way you wanted and it worked. But would like to do it with Albums that i have added as an Admin.

Is this possible?

Matt E

Casper

Yes, to make individual albums not visible, first you have to set 'users can have private galleries' to YES in config.
Now, when you go to the album properties, by clicking on the 'properties' button next to the album thumb, you will see a box which says 'album can be viewed by', and a selection box.  You can choose here who can see this album and the pics in it.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

matteast

Thanks casper...

It now works, just when i enabled users to have private albums first up that option wasnt visible...

but when i relogged on an hour later it was...

But thanks for your quick help.


Matt E

Casper

Quote from: "matteast"It now works, just when i enabled users to have private albums first up that option wasnt visible...

but when i relogged on an hour later it was...

Almost certainly because your browser wasn't refreshing the page, just returning to the cached version.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here