Viewing of private files on front page after logging in Viewing of private files on front page after logging in
 

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

Viewing of private files on front page after logging in

Started by grsphoto, August 22, 2006, 03:26:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

grsphoto

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

Nibbler

Quote from: grsphoto on August 22, 2006, 03:26:15 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.

ianc

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 - !!

Joachim Müller

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

grsphoto

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

Lyndsie

#5
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):


$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.

$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.