CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Allowing users to search in pict descriptions too
kapangaluis
post Dec 25 2006, 09:04 PM
Post #1


Full Member
Group Icon

Group: +Zenith User
Posts: 92
Joined: 6-February 06
From: Mendoza, Argentina
Member No.: 3,240

Argentina




Dear Friend.... ¡Merry Christmas!

One question:

- It is possible to make the search not only in titles of images, but also that it looks for in descriptions of the uploaded photos?

I hope that you help me.

Greetings and thank you very much!

LUIS
Go to the top of the page
 
+Quote Post
usr.c
post Dec 25 2006, 09:16 PM
Post #2


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Hey! See this: http://cyberiapc.com/forums/index.php?show...;hl=description

But try replacing userDefinedColumn with description


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
kapangaluis
post Dec 26 2006, 03:51 AM
Post #3


Full Member
Group Icon

Group: +Zenith User
Posts: 92
Joined: 6-February 06
From: Mendoza, Argentina
Member No.: 3,240

Argentina




Hi:

I try replacing this code:

CODE
//queryString
if(strlen($queryString) > 0) {
if($strength == 0) $queryString = "keywords LIKE '%$queryString%'";
elseif($strength == 1) $queryString = "keywords = '$queryString'";
}



with this:

CODE
//queryString
if(strlen($queryString) > 0) {
if($strength == 0) $queryString = "keywords LIKE '%$queryString%' OR description LIKE '%$queryString%'";
elseif($strength == 1) $queryString = "keywords = '$queryString' OR description = '$queryString'";
}



But the result is in the attached file to this message: Single it shows to me the first photo with the looked for thing and me it often repeats it, does not show the rest to me of coincidences.

As I can solve this error?


Greetings.

LUIS
Attached thumbnail(s)
Attached Image
 
Go to the top of the page
 
+Quote Post
usr.c
post Dec 31 2006, 07:21 PM
Post #4


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Sorry for the very late reply. Please see the post further down in that thread: http://cyberiapc.com/forums/index.php?s=&a...ost&p=41393

It should fix the problem for you. If not, let me know.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
kapangaluis
post Jan 1 2007, 06:07 AM
Post #5


Full Member
Group Icon

Group: +Zenith User
Posts: 92
Joined: 6-February 06
From: Mendoza, Argentina
Member No.: 3,240

Argentina




That's work! THANKS!!!!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th May 2013 - 12:24 AM