coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Eric Chadwick on November 12, 2007, 02:19:25 AM

Title: Category link = empty list?
Post by: Eric Chadwick on November 12, 2007, 02:19:25 AM
http://www.ericchadwick.com/galleries/index.php

When I'm not logged in (aka unregistered), if I click on either the Category name "Private Photos" the link sends me to an empty page. The albums in this category have permissions limited to a specific registered user group.

Is it possible to have that link prompt the Login screen if the user isn't logged in?

Also is it possible to have a custom notice for someone who is logged in but is not in the permitted user group?

Thanks!
Title: Re: Category link = empty list?
Post by: Joachim Müller on November 12, 2007, 08:02:53 AM
Make sure that you have catlist and alblist in "The content of the main page (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing)"
Title: Re: Category link = empty list?
Post by: Eric Chadwick on November 12, 2007, 03:56:22 PM
Thanks, I think I do have those on, unless I typed something wrong here:
breadcrumb/catlist/alblist

I think it's showing nothing simply because all the albums in the category are hidden from un-logged viewers.
Maybe this belongs in "feature requests".

BTW, cpg is great software, really enjoying it as I'm learning how to use it. My thanks to you and the other devs.
Title: Re: Category link = empty list?
Post by: Eric Chadwick on November 14, 2007, 03:47:41 AM
Browsing through the demo themes, I found more examples.

Clicking on the Category: Password Protection (http://coppermine-gallery.net/demo/cpg14x/index.php?cat=3) shows a page with empty fields. I'd rather it report a message to the user saying "This category contains no public albums" or something similar.

Clicking on a link to an Album in the Category (http://coppermine-gallery.net/demo/cpg14x/thumbnails.php?album=13) sends me to the Password page for the album. That's good.

However when there's no album password, like when I set "Album can be viewed by" to a specific user group, then I get that same type of page saying "No image to display". Here's an example on my site (http://www.ericchadwick.com/galleries/thumbnails.php?album=1).

Is there a way I could fix the Category and Album links, so they present a custom message like "Sorry, you must be registered to access this album/category", or better yet prompt the Login screen?
Title: Re: Category link = empty list?
Post by: Joachim Müller on November 14, 2007, 08:18:06 AM
Turn "Show private album Icon to unlogged user" on in Coppermine's config.
Title: Re: Category link = empty list?
Post by: Eric Chadwick on November 14, 2007, 03:11:09 PM
OK, that's better. Thanks GauGau.