coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: DjMikeWatt on June 15, 2006, 04:46:49 AM

Title: Prevent certain category/albums from appearing in the "random" or "most recent"?
Post by: DjMikeWatt on June 15, 2006, 04:46:49 AM
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.)
Title: Re: Prevent certain category/albums from appearing in the "random" or "most rece
Post by: Paver on June 15, 2006, 05:25:04 AM
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 (http://forum.coppermine-gallery.net/index.php?topic=31592.0)
Hide albums from latest & random (http://forum.coppermine-gallery.net/index.php?topic=24350.0)
Enhanced hide from latest & random (http://forum.coppermine-gallery.net/index.php?topic=25566.0)

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.
Title: Re: Prevent certain category/albums from appearing in the "random" or "most recent"?
Post by: DjMikeWatt on June 16, 2006, 08:08:26 AM
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?
Title: Re: Prevent certain category/albums from appearing in the "random" or "most rece
Post by: Paver on June 16, 2006, 08:24:03 AM
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.
Title: Re: Prevent certain category/albums from appearing in the "random" or "most recent"?
Post by: DjMikeWatt on June 17, 2006, 03:58:24 AM
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)
Title: Re: Prevent certain category/albums from appearing in the "random" or "most rece
Post by: Paver on June 17, 2006, 04:45:03 AM
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.
Title: Re: Prevent certain category/albums from appearing in the "random" or "most rece
Post by: Joachim Müller on June 18, 2006, 11:23:39 AM
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.