Using keyword Using keyword
 

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]

Main Menu

Using keyword

Started by balafre, February 09, 2007, 02:34:17 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

balafre

Hi Vuud,
I've read this old post :
http://forum.coppermine-gallery.net/index.php?topic=21336.0
then I read the doc of the last version of cpmfetch but I saw no way to use keyword while displaying random images.
Is it impossible or did I miss something ?
???
(thank you for your time and for your code)

vuud

Quote from: balafre on February 09, 2007, 02:34:17 PM
Hi Vuud,
I've read this old post :
http://forum.coppermine-gallery.net/index.php?topic=21336.0
then I read the doc of the last version of cpmfetch but I saw no way to use keyword while displaying random images.
Is it impossible or did I miss something ?
???
(thank you for your time and for your code)

Well, the 1.7 series never actually happened.  Basically I started working a 2.0 release, which completely redoes eveything.  So this code never actually made it in to the project.  I'd like it to be in soon, before 2.0 comes out.  Its not impossible, but not simple to do right.  It will be included, but not tonight.

But for now, its not in there...

Sorry about this.

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre

Ok Vuud,
thank you for your reply.
I'll keep an eye on the next versions.  ;)

vuud

Quote from: balafre on February 10, 2007, 01:54:29 PM
Ok Vuud,
thank you for your reply.
I'll keep an eye on the next versions.  ;)

Okay, THIS IS NOT POSTED YET AS A DEVELOPMENT VERSION, but it will be in the next public development release.  Keywords beyond your greatest expectations - will amaze young and old alike, etc, etc...

Here is the except from the release notes - tell me if there is anything you think that is reasonable and missing :D

Quote
* Added two new parameters to the $source entry.
   keyword=a,b,c,d
   text=a,b,c,d

Both take a comma delimited list of words.  words in keywords match any picture who's keyword field has any of those words.  Words in text match the keyword field, the title field and the caption field.  You can use them together.

The behavior in this function is sort wierd.  Searches for cat, album OR'd together.  The keywords and text searches are OR'd together.  The owner is grouped by itself but the three groups are AND'ed together.

So

$source = "cat=5,3:album=10,12:owner=vuud:keyword=alice,bob:text=bicycle"

Get pictures that are

category 5 or category 3 or album 10 or album 12 AND owner vuud AND (keywords like alice or keywords like bob or titles like bicycle or keywords like bicycle or descriptions like bicycle)

Get it?

Here is is in english:  Show any pictures from categories 5 or 3 or albums 10 or 12 that are owner by Vuud and that have the keywords alice or bob or titles with bicycle or descriptions like bicycle.


Its not completely tested, with so many things taking the source parameter it could be tough.

At the rate I am pushing out new versions, should not be more than a day or two!


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre

That's all right Mama ! :)
This is just fine. I can't wait the next public development release !!!
Thanks for your work.
Olé !

vuud

Quote from: balafre on February 22, 2007, 03:30:27 PM
That's all right Mama ! :)
This is just fine. I can't wait the next public development release !!!
Thanks for your work.
Olé !

If I release it soon, would you be willing to really test it through a bunch of the ....from(  )  functions? 

Vuud
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre

Excuse my english, I'm not really sure to understand your message above but if you want me to test it, no problem !

vuud

Quote from: balafre on February 22, 2007, 05:31:29 PM
Excuse my english, I'm not really sure to understand your message above but if you want me to test it, no problem !

Ok.

There are many functions that you can use that end in "From".  For example,

getLastAddedMediaFrom

getRandomMediaFrom

All of these need to be checked with the new keyword and text.

I greatly appreciate it and will post it tonight.

Thanks!
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre

Fine Vuud !
I'll do it monday (must leave this week end).
Thanks for all.
:)

balafre


vuud

Quote from: balafre on February 27, 2007, 02:16:29 PM
Really...  ;D

Heh, sorry.  I've had a nasty flu for the past three days.  I've not done much more than moan and suffer.

Anyway, I will try to post it today.

Thanks

Vuud
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Quote from: vuud on February 27, 2007, 03:28:51 PM
Heh, sorry.  I've had a nasty flu for the past three days.  I've not done much more than moan and suffer.

Turns out it is pnemonia - so the moaning and suffering has continued, but its documentat moaning and suffering.

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre

Testing the 1.9.11 version and... right now I'm stuck.  ::)
My install page doesn't display the tumbnails :
this string is empty :
<img src=""
but the links to display.php are good.

I keep on searching (doc & forum) how to tweak it and be back here as soon as I get it.  :P

Thanks for your job.

(and mind your health, pneumonia is not excatly the best way to become the most popular guy of the highschool)  ;D

vuud

#14
Quote from: balafre on March 01, 2007, 12:00:37 PM
Testing the 1.9.11 version and... right now I'm stuck.  ::)
My install page doesn't display the tumbnails :
this string is empty :
<img src=""
but the links to display.php are good.

I keep on searching (doc & forum) how to tweak it and be back here as soon as I get it.  :P

Thanks for your job.

(and mind your health, pneumonia is not excatly the best way to become the most popular guy of the highschool)  ;D

PM me a link to your install.php file.

Also, is the cpmfetch folder installed into your gallery folder?

Thanks!

PS.  (at my age) I am pretty sure local officials would frown on my hanging around high schools - healthy or not :p

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre


vuud

Quote from: balafre on March 05, 2007, 09:07:31 PM
PM sent.
thank you.

It looks like you did not keep the cpmfetch folder name.  This is confusing the installer.  You can work around it, but it will be much easier, long and short term, to just upload the entire cpmfetch folder (keep the name).

Let me know how that works out for you
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

balafre

You're right : it works if I don't rename the directory.
Another PM sent...  ::)

vuud

#18
Quote from: balafre on March 06, 2007, 06:42:57 PM
You're right : it works if I don't rename the directory.
Another PM sent...  ::)

Okay, I got your PM about

Quote"Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/www/ ....  /cpmfetch/cpmfetch_dao.php on line 959"

I see why it would happen in the code.  I have a few things to finish - perhaps tonight - and I will post 1.9.12 (which will fix this issue).

Vuud
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

Quote from: vuud on March 06, 2007, 11:32:42 PM
Okay, I got your PM about

I see why it would happen in the code.  I have a few things to finish - perhaps tonight - and I will post 1.9.12 (which will fix this issue).

Vuud


Open up cpmfetch_dao.php in an editor

Add this in around line 876

$textlist = array();

So that area should now look like this:


$ownerlist = array();
$keywordlist = array();
$textlist = array();


Or wait until 1.9.12 comes out.  Be a few days though for that.

Let me know if that helps
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco