Advanced search  

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

Pages: [1]   Go Down

Author Topic: Viewing of private files on front page after logging in  (Read 3984 times)

0 Members and 1 Guest are viewing this topic.

grsphoto

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Viewing of private files on front page after logging in
« on: August 22, 2006, 03:26:15 am »

Hello

I am a new user, installing V1.4.8 ( stable)

I have set-up a private gallery, icon hidden, with password.  Everything works the way it should with the gallery.

The issue I have is that once the user comes out of the private gallery to the front page ( random, last upload) the images that are in the privatre gallery show up there as well. I know this will disturb some of my clients.

I assume that a cookie has been set that will show these private images only to the people that have been logged in.

Have I missed a config setting that will keep private files from being shown in the more public spaces?

Can I configure some setting so that the random & last upload will only show from some categories or albums?

Thanks

Glenn
Logged

Nibbler

  • Guest
Re: Viewing of private files on front page after logging in
« Reply #1 on: August 22, 2006, 03:56:28 am »

Can I configure some setting so that the random & last upload will only show from some categories or albums?

I think there's a plugin or mod that does that.
Logged

ianc

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Viewing of private files on front page after logging in
« Reply #2 on: August 22, 2006, 05:04:33 am »

I've noticed this private thumbnail thing too, so thought I'd check out the fix.

I've found http://forum.coppermine-gallery.net/index.php?topic=19077.0
and http://forum.coppermine-gallery.net/index.php?topic=19564.0
which might be useful.

34 pages on the first link 54 on the second - !!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Viewing of private files on front page after logging in
« Reply #3 on: August 22, 2006, 05:45:08 am »

cpmFetch can only be used on non-coppermine pages. Not the mods Nibbler refered to.
Logged

grsphoto

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Viewing of private files on front page after logging in
« Reply #4 on: August 22, 2006, 06:35:48 am »

I will look for the mod/ plug-in, though I am a little reluctent to "open the hood" this early in my dealing with this program.  If/ when I find it, I will post a link hear so that this thread can be closed.

Thanks for the cpmfetch links, It won't solve this issue but it will solve a couple of others.

Glenn
Logged

Lyndsie

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Viewing of private files on front page after logging in
« Reply #5 on: September 05, 2006, 02:06:18 am »

I have been researching this very thing for a while now, and have gotten it to work for albums, but not categories.  There's a mod posted for 1.3 (http://forum.coppermine-gallery.net/index.php?topic=13383.0) that I used as my basis, so you should take a look at it.  In 1.4 it's the same file, but line of code looks like this (this string from the 'lastup' section):

Code: [Select]
$query = "SELECT COUNT(*) from {$CONFIG['TABLE_PICTURES']} WHERE approved = 'YES' $META_ALBUM_SET";

If you change it to the following (x being your album number), it works fine.
Code: [Select]
$query = "SELECT COUNT(*) from {$CONFIG['TABLE_PICTURES']} WHERE aid = x AND approved = 'YES' $META_ALBUM_SET";

I just don't know what to replace aid with in order to make it work for categories.  I've tried different variations (cat, cid, catid), but it always gives me an error.  I'm pretty new to Coppermine so hopefully this makes sense.
« Last Edit: September 05, 2006, 02:18:35 am by Lyndsie »
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.