Keywords from images in private albums visible Keywords from images in private albums visible
 

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

Keywords from images in private albums visible

Started by musikalg, February 06, 2005, 02:24:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

musikalg

I have enabled clickable keywords in search. If I use the seach function without logging in I can  still see keywords from pictures in private albums. If I click on them I just get "No image to display".

Joachim Müller


Joachim Müller

#2
this is what I have come up with, although I don't think it is correct (notice the silly "WHERE" statement) - please review.
In include/keyword.in.php, I changed$result = mysql_query("select keywords from {$CONFIG['TABLE_PICTURES']}");to$result = mysql_query("select keywords FROM {$CONFIG['TABLE_PICTURES']} WHERE 1=1 $ALBUM_SET");It does what it is suppossed to do, but it doesn't look very elegant.

Joachim

Tranz


nol33t

Quoteit doesn't look very elegant
i think it does ;)
didn't check the rest of the code but imho that's how album_set / forbidden_set etc.. should also be called/used, it's not silly at all

Joachim Müller

OK, so I'm marking this as "fixed" then.

Joachim