Prevent certain category/albums from appearing in the "random" or "most recent"? Prevent certain category/albums from appearing in the "random" or "most recent"?
 

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

Prevent certain category/albums from appearing in the "random" or "most recent"?

Started by DjMikeWatt, June 15, 2006, 04:46:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DjMikeWatt

Some categories/albums may contain slightly objectionable content... I want to know if anyone's got an easy way to prevent certain categories or albums from displaying on the main page ("random" or "most recent", etc.)

Paver

There might be some mods as well - I know of 3 plugins that are relevant to your question (all on the plugin contributions board):
Random block - select album
Hide albums from latest & random
Enhanced hide from latest & random

Or you can password-protect or group-protect (by permissions) those albums and they won't show up to people not allowed to see them.

DjMikeWatt

Okay, this is probably something very simple... and I promise I looked for the answer before I decided to ask... but, I can't see how to group protect a category or album, and I would like to... I'd like to block access to the adult themed categories to registered members only.  Actually, I would really like to limit access to people who have specifically stated that they would like access to these categories, but I imagine that's probably asking a lot... so at least restricting to registered users would be a great start...

Any thoughts?

Paver

Permissions are only possible for albums, not categories, although it would be pretty easy to write a plugin or add-on to batch-apply permissions to categories, I think.

You can review permissions from the Groups Manager (and create new groups to handle the various permissions needs you have - users can belong to many secondary groups):
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#group_cp

And you can set permissions for each album on the album properties page:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#album_prop

I'm not sure how you missed this in the documentation.  The documentation is quite useful, you know.

DjMikeWatt

I guess what I'm missing is this...

I still don't see how I can prevent non-registered users from viewing certain albums. 
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcoppermine-gallery.net%2Fdemo%2Fcpg14x%2Fdocs%2Fpics%2Fedit_album.gif&hash=d68f037869f9b176256a0534c57e96b1e1014753)


This screenshot has "Album can be viewed by..."

My gallery does not offer this field... the first field in "permissions" is the password field.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mikewattsplayground.net%2Fmyspace%2Fpictures%2Fpic.gif&hash=2bcb9cfd2811a4cdf45639d93bd05307f38125ef)

Paver

Under "Files & thumbnails advanced settings", set "Albums can be private" to YES.

When you set this to NO, there is no reason to give you the option to restrict an album.

Joachim Müller

Erm, there is an enormous emaount of thread drift in this thread. Please post if Paver's suggestion worked for you or not. Don't ask further questions on this thread - we have a "one question per thread" policy you agreed to respect when signing up.