Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Category link = empty list?  (Read 3407 times)

0 Members and 1 Guest are viewing this topic.

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Category link = empty list?
« 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!
« Last Edit: November 15, 2007, 08:01:50 am by Stramm »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category link = empty list?
« Reply #1 on: November 12, 2007, 08:02:53 am »

Make sure that you have catlist and alblist in "The content of the main page"
Logged

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Category link = empty list?
« Reply #2 on: November 12, 2007, 03:56:22 pm »

Thanks, I think I do have those on, unless I typed something wrong here:
Code: [Select]
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.
Logged

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Category link = empty list?
« Reply #3 on: November 14, 2007, 03:47:41 am »

Browsing through the demo themes, I found more examples.

Clicking on the Category: Password Protection 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 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.

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category link = empty list?
« Reply #4 on: November 14, 2007, 08:18:06 am »

Turn "Show private album Icon to unlogged user" on in Coppermine's config.
Logged

Eric Chadwick

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Category link = empty list?
« Reply #5 on: November 14, 2007, 03:11:09 pm »

OK, that's better. Thanks GauGau.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.